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++, n++) { in iter_file_splice_write()
666 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in iter_file_splice_write()
695 tail = pipe->tail; in iter_file_splice_write()
697 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in iter_file_splice_write()
702 tail++; in iter_file_splice_write()
703 pipe->tail = tail; in iter_file_splice_write()
856 WARN_ON_ONCE(!pipe_empty(pipe->head, pipe->tail)); in splice_direct_to_actor()
865 pipe_occupancy(pipe->head, pipe->tail); in splice_direct_to_actor()
905 pipe->tail = pipe->head = 0; in splice_direct_to_actor()
991 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in wait_for_space()
1090 p_space = opipe->max_usage - pipe_occupancy(opipe->head, opipe->tail); in do_splice()
1364 if (!pipe_empty(pipe->head, pipe->tail)) in ipipe_prep()
1370 while (pipe_empty(pipe->head, pipe->tail)) { in ipipe_prep()
1400 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in opipe_prep()
1406 while (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) { in opipe_prep()
1458 i_tail = ipipe->tail; in splice_pipe_to_pipe()
1474 o_tail = opipe->tail; in splice_pipe_to_pipe()
1514 ipipe->tail = i_tail; in splice_pipe_to_pipe()
1584 i_tail = ipipe->tail; in link_pipe()
1598 o_tail = opipe->tail; in link_pipe()