Lines Matching refs:tail

201 	unsigned int tail = pipe->tail;
215 while (!pipe_full(head, tail, pipe->max_usage)) {
248 unsigned int tail = pipe->tail;
255 } else if (pipe_full(head, tail, pipe->max_usage)) {
333 used = pipe_occupancy(pipe->head, pipe->tail);
448 unsigned int tail = pipe->tail;
452 while (!pipe_empty(head, tail)) {
453 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
480 tail++;
481 pipe->tail = tail;
496 unsigned int tail = pipe->tail;
498 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
502 pipe->tail = tail+1;
529 while (pipe_empty(pipe->head, pipe->tail)) {
688 unsigned int head, tail, mask;
708 tail = pipe->tail;
713 for (n = 0; !pipe_empty(head, tail) && left && n < nbufs; tail++) {
714 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
745 tail = pipe->tail;
747 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
752 tail++;
753 pipe->tail = tail;
804 unsigned int head, tail, mask, bc = 0;
815 while (pipe_empty(pipe->head, pipe->tail)) {
840 tail = pipe->tail;
843 while (!pipe_empty(head, tail)) {
844 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
848 tail++;
865 tail++;
874 if (remain && pipe_occupancy(pipe->head, tail) > 0)
887 tail = pipe->tail;
889 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
898 tail++;
902 if (tail != pipe->tail) {
903 pipe->tail = tail;
975 p_space = pipe->max_usage - pipe_occupancy(pipe->head, pipe->tail);
1063 WARN_ON_ONCE(!pipe_empty(pipe->head, pipe->tail));
1105 pipe->tail = pipe->head = 0;
1209 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage))
1607 if (!pipe_empty(pipe->head, pipe->tail))
1613 while (pipe_empty(pipe->head, pipe->tail)) {
1643 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage))
1649 while (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) {
1701 i_tail = ipipe->tail;
1717 o_tail = opipe->tail;
1757 ipipe->tail = i_tail;
1827 i_tail = ipipe->tail;
1841 o_tail = opipe->tail;