Lines Matching defs:tail
150 return (ch->recv->head - ch->recv->tail) & ch->fifo_mask;
157 ((ch->send->head - ch->send->tail) & ch->fifo_mask);
188 unsigned tail = ch->recv->tail;
189 *ptr = (void *) (ch->recv_data + tail);
191 if (tail <= head)
192 return head - tail;
194 return ch->fifo_size - tail;
201 ch->recv->tail = (ch->recv->tail + count) & ch->fifo_mask;
262 unsigned tail = ch->send->tail;
265 if (head < tail) {
266 return tail - head - 1;
268 if (tail == 0)
319 ch->recv->tail = 0;