Lines Matching defs:tail
682 unsigned tail, head, n;
694 tail = inbuf->tail;
697 head, tail, count);
699 if (head <= tail) {
701 n = min_t(unsigned, count, RBUFSIZE - tail);
702 memcpy(inbuf->data + tail, buf, n);
703 tail = (tail + n) % RBUFSIZE;
709 /* tail < head and some data left */
710 n = head - tail - 1;
717 memcpy(inbuf->data + tail, buf, count);
718 tail += count;
721 gig_dbg(DEBUG_INTR, "setting tail to %u", tail);
722 inbuf->tail = tail;