Lines Matching refs:tail
31 * removed from tail. head and tail are free-running uint32_t indices and we
33 * number of bytes in the queue is always head - tail, even in case of
44 vector->tail = 0;
58 if (vector->head - vector->tail == vector->size) {
63 src_tail = vector->tail & (vector->size - 1);
64 dst_tail = vector->tail & (size - 1);
76 split = u_align_u32(vector->tail, vector->size);
77 assert(vector->tail <= split && split < vector->head);
79 split - vector->tail);
88 assert(vector->head - vector->tail < vector->size);
101 if (vector->head == vector->tail)
104 assert(vector->head - vector->tail <= vector->size);
106 offset = vector->tail & (vector->size - 1);
107 vector->tail += vector->element_size;