Lines Matching refs:tail
186 unsigned int tail = pipe->tail;
200 while (!pipe_full(head, tail, pipe->max_usage)) {
233 unsigned int tail = pipe->tail;
240 } else if (pipe_full(head, tail, pipe->max_usage)) {
361 pipe_occupancy(pipe->head, pipe->tail) > 1)
400 unsigned int tail = pipe->tail;
404 while (!pipe_empty(head, tail)) {
405 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
432 tail++;
433 pipe->tail = tail;
448 unsigned int tail = pipe->tail;
450 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
454 pipe->tail = tail+1;
481 while (pipe_empty(pipe->head, pipe->tail)) {
640 unsigned int head, tail, mask;
660 tail = pipe->tail;
665 for (n = 0; !pipe_empty(head, tail) && left && n < nbufs; tail++, n++) {
666 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
695 tail = pipe->tail;
697 struct pipe_buffer *buf = &pipe->bufs[tail & mask];
702 tail++;
703 pipe->tail = tail;
856 WARN_ON_ONCE(!pipe_empty(pipe->head, pipe->tail));
865 pipe_occupancy(pipe->head, pipe->tail);
905 pipe->tail = pipe->head = 0;
991 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage))
1090 p_space = opipe->max_usage - pipe_occupancy(opipe->head, opipe->tail);
1364 if (!pipe_empty(pipe->head, pipe->tail))
1370 while (pipe_empty(pipe->head, pipe->tail)) {
1400 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage))
1406 while (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) {
1458 i_tail = ipipe->tail;
1474 o_tail = opipe->tail;
1514 ipipe->tail = i_tail;
1584 i_tail = ipipe->tail;
1598 o_tail = opipe->tail;