Lines Matching refs:head
187 unsigned int head = pipe->head; in splice_to_pipe() local
200 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe()
201 struct pipe_buffer *buf = &pipe->bufs[head & mask]; in splice_to_pipe()
210 head++; in splice_to_pipe()
211 pipe->head = head; in splice_to_pipe()
232 unsigned int head = pipe->head; in add_to_pipe() local
240 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe()
243 pipe->bufs[head & mask] = *buf; in add_to_pipe()
244 pipe->head = head + 1; in add_to_pipe()
308 i_head = to.head; in generic_file_splice_read()
316 to.head = i_head; in generic_file_splice_read()
361 pipe_occupancy(pipe->head, pipe->tail) > 1) in pipe_to_sendpage()
399 unsigned int head = pipe->head; in splice_from_pipe_feed() local
404 while (!pipe_empty(head, tail)) { in splice_from_pipe_feed()
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
659 head = pipe->head; in iter_file_splice_write()
665 for (n = 0; !pipe_empty(head, tail) && left && n < nbufs; tail++, n++) { 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()
1460 o_head = opipe->head; in splice_pipe_to_pipe()
1473 i_head = ipipe->head; in splice_pipe_to_pipe()
1518 opipe->head = o_head; in splice_pipe_to_pipe()
1543 opipe->head = o_head; in splice_pipe_to_pipe()
1586 o_head = opipe->head; in link_pipe()
1597 i_head = ipipe->head; in link_pipe()
1636 opipe->head = o_head; in link_pipe()