Lines Matching defs:tail
64 u32 tail;
118 * Note that it is safe to drop the lock after changing rq->tail
123 tail = wq->tail;
124 /* Validate tail before using it since it is user writable. */
125 if (tail >= rq->size)
126 tail = 0;
127 if (unlikely(tail == wq->head)) {
132 wqe = get_rwqe_ptr(rq, tail);
145 if (++tail >= rq->size)
146 tail = 0;
147 wq->tail = tail;
159 if (n < tail)
160 n += rq->size - tail;
162 n -= tail;