Home | History | Annotate | Download | only in at91

Lines Matching defs:f_length

57 	int		f_length;	/* number of bytes in fifo	*/
67 return fifo->f_length == 0;
72 return fifo->f_length >= fifo->f_buf_size;
77 return fifo->f_buf_size - fifo->f_length;
88 fifo->f_ndx = fifo->f_length = 0;
162 fifo->f_length += cc;
173 fifo->f_length += cc;
180 if (fifo->f_length <= 0) {
184 if (contig_bytes > fifo->f_length)
185 contig_bytes = fifo->f_length;
192 if (bytes_read > fifo->f_length)
193 bytes_read = fifo->f_length;
195 fifo->f_length -= bytes_read;
213 int max_len = fifo->f_length - (fifo->f_buf_size - fifo->f_pdc_space);
219 panic("%s: len %d > pdc_space (f_length=%d space=%d size=%d)",
220 __FUNCTION__, len, fifo->f_length, fifo->f_pdc_space, fifo->f_buf_size);
224 panic("%s: len < 0 (f_length=%d space=%d size=%d)",
225 __FUNCTION__, fifo->f_length, fifo->f_pdc_space, fifo->f_buf_size);
257 fifo->f_length -= cc;
268 fifo->f_length -= cc;
276 int space = fifo->f_buf_size - fifo->f_length;
288 if (bytes_written > (fifo->f_buf_size - fifo->f_length))
289 bytes_written = (fifo->f_buf_size - fifo->f_length);
291 fifo->f_length += bytes_written;