Lines Matching refs:tail
67 unsigned int tail; member
77 return (q->tail - q->head) & q->tab_mask; in choke_len()
97 if (q->head == q->tail) in choke_zap_head_holes()
106 q->tail = (q->tail - 1) & q->tab_mask; in choke_zap_tail_holes()
107 if (q->head == q->tail) in choke_zap_tail_holes()
109 } while (q->tab[q->tail] == NULL); in choke_zap_tail_holes()
123 if (idx == q->tail) in choke_drop_by_idx()
205 if (q->head == q->tail) in choke_match_random()
268 q->tab[q->tail] = skb; in choke_enqueue()
269 q->tail = (q->tail + 1) & q->tab_mask; in choke_enqueue()
288 if (q->head == q->tail) { in choke_dequeue()
308 while (q->head != q->tail) { in choke_reset()
319 q->head = q->tail = 0; in choke_reset()
380 unsigned int oqlen = sch->q.qlen, tail = 0; in choke_change() local
383 while (q->head != q->tail) { in choke_change()
389 if (tail < mask) { in choke_change()
390 ntab[tail++] = skb; in choke_change()
400 q->tail = tail; in choke_change()
417 if (q->head == q->tail) in choke_change()
483 return (q->head != q->tail) ? q->tab[q->head] : NULL; in choke_peek_head()