Lines Matching refs:tail
235 return !pipe_empty(idx.head, idx.tail) || !writers; in pipe_readable()
240 unsigned int tail) in pipe_update_tail() argument
255 pipe->tail = ++tail; in pipe_update_tail()
257 return tail; in pipe_update_tail()
264 pipe->tail = ++tail; in pipe_update_tail()
265 return tail; in pipe_update_tail()
295 unsigned int tail = pipe->tail; in anon_pipe_read() local
321 if (!pipe_empty(head, tail)) { in anon_pipe_read()
322 struct pipe_buffer *buf = pipe_buf(pipe, tail); in anon_pipe_read()
360 wake_writer |= pipe_full(head, tail, pipe->max_usage); in anon_pipe_read()
361 tail = pipe_update_tail(pipe, buf, tail); in anon_pipe_read()
366 if (!pipe_empty(head, tail)) /* More to do? */ in anon_pipe_read()
426 return !pipe_full(idx.head, idx.tail, max_usage) || in pipe_writable()
475 was_empty = pipe_empty(head, pipe->tail); in anon_pipe_write()
508 if (!pipe_full(head, pipe->tail, pipe->max_usage)) { in anon_pipe_write()
620 unsigned int count, head, tail; in pipe_ioctl() local
627 tail = pipe->tail; in pipe_ioctl()
629 while (!pipe_empty(head, tail)) { in pipe_ioctl()
630 count += pipe_buf(pipe, tail)->len; in pipe_ioctl()
631 tail++; in pipe_ioctl()
687 if (!pipe_empty(idx.head, idx.tail)) in pipe_poll()
694 if (!pipe_full(idx.head, idx.tail, pipe->max_usage)) in pipe_poll()
1292 unsigned int head, tail, mask, n; in pipe_resize_ring() local
1306 tail = pipe->tail; in pipe_resize_ring()
1308 n = pipe_occupancy(head, tail); in pipe_resize_ring()
1321 unsigned int t = tail & mask; in pipe_resize_ring()
1336 tail = 0; in pipe_resize_ring()
1343 pipe->tail = tail; in pipe_resize_ring()