Lines Matching refs:tail

186 	unsigned int tail = pipe->tail;  in splice_to_pipe()  local
200 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe()
233 unsigned int tail = pipe->tail; in add_to_pipe() local
240 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe()
361 pipe_occupancy(pipe->head, pipe->tail) > 1) in pipe_to_sendpage()
400 unsigned int tail = pipe->tail; in splice_from_pipe_feed() local
404 while (!pipe_empty(head, tail)) { in splice_from_pipe_feed()
405 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in splice_from_pipe_feed()
432 tail++; in splice_from_pipe_feed()
433 pipe->tail = tail; in splice_from_pipe_feed()
448 unsigned int tail = pipe->tail; in eat_empty_buffer() local
450 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in eat_empty_buffer()
454 pipe->tail = tail+1; in eat_empty_buffer()
481 while (pipe_empty(pipe->head, pipe->tail)) { in splice_from_pipe_next()
640 unsigned int head, tail, mask; in iter_file_splice_write() local
660 tail = pipe->tail; in iter_file_splice_write()
665 for (n = 0; !pipe_empty(head, tail) && left && n < nbufs; tail++) { in iter_file_splice_write()
666 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in iter_file_splice_write()
698 tail = pipe->tail; in iter_file_splice_write()
700 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in iter_file_splice_write()
705 tail++; in iter_file_splice_write()
706 pipe->tail = tail; in iter_file_splice_write()
784 p_space = pipe->max_usage - pipe_occupancy(pipe->head, pipe->tail); in do_splice_to()
864 WARN_ON_ONCE(!pipe_empty(pipe->head, pipe->tail)); in splice_direct_to_actor()
908 pipe->tail = pipe->head = 0; in splice_direct_to_actor()
994 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in wait_for_space()
1371 if (!pipe_empty(pipe->head, pipe->tail)) in ipipe_prep()
1377 while (pipe_empty(pipe->head, pipe->tail)) { in ipipe_prep()
1407 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in opipe_prep()
1413 while (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) { in opipe_prep()
1465 i_tail = ipipe->tail; in splice_pipe_to_pipe()
1481 o_tail = opipe->tail; in splice_pipe_to_pipe()
1521 ipipe->tail = i_tail; in splice_pipe_to_pipe()
1591 i_tail = ipipe->tail; in link_pipe()
1605 o_tail = opipe->tail; in link_pipe()