Lines Matching refs:seqnum
129 queue_insert(queue *q, int after, uint64_t seqnum)
144 QELEM(q,after+1) = seqnum;
160 g_order_init(void **vqueue, uint64_t seqnum,
180 q->firstnum = seqnum;
188 g_order_check(void **vqueue, uint64_t seqnum)
201 seqnum -= q->firstnum;
206 seqnum &= q->mask;
211 if (seqnum == expected) {
212 queue_insert(q, q->start+q->length-1, seqnum);
219 if (after(seqnum, expected, q->mask)) {
220 queue_insert(q, q->start+q->length-1, seqnum);
227 /* rule 3: seqnum < seqnum(first) */
230 if (after(QELEM(q,q->start), seqnum, q->mask)) {
237 /* rule 4+5: seqnum in [seqnum(first),seqnum(last)] */
240 if (seqnum == QELEM(q,q->start+q->length-1))
244 if (seqnum == QELEM(q,i))
247 if (after(seqnum, QELEM(q,i), q->mask) &&
248 after(QELEM(q,i+1), seqnum, q->mask)) {
249 queue_insert(q, i, seqnum);