Lines Matching refs:tail
45 #define tail sp->_fifotail
53 if (head == tail) \
54 head = -1, tail = 0; \
60 if (head == tail) \
61 tail = -1; \
64 (tail >= FIFO_SIZE-1) \
65 ? tail = 0 \
66 : tail++; \
67 if (tail == head) \
68 tail = -1; \
71 (tail <= 0) \
72 ? tail = FIFO_SIZE-1 \
73 : tail--; \
74 if (head == tail) \
84 #define raw_key_in_fifo() ((head >= 0) && (peek != tail))