Searched refs:cons_head (Results 1 - 2 of 2) sorted by relevance

/freebsd-12-stable/sys/sys/
H A Dbuf_ring.h122 uint32_t cons_head, cons_next; local
127 cons_head = br->br_cons_head;
128 cons_next = (cons_head + 1) & br->br_cons_mask;
130 if (cons_head == br->br_prod_tail) {
134 } while (!atomic_cmpset_acq_int(&br->br_cons_head, cons_head, cons_next));
136 buf = br->br_ring[cons_head];
138 br->br_ring[cons_head] = NULL;
145 while (br->br_cons_tail != cons_head)
162 uint32_t cons_head, cons_next; local
182 * cons_head
239 uint32_t cons_head, cons_next; local
[all...]
/freebsd-12-stable/tools/tools/netmap/
H A Dnmreplay.c617 uint64_t cons_head; /* cached copy */ member in struct:_qs
861 q->cons_head = q->_head;
864 struct q_pkt *p = pkt_at(q, q->cons_head);
868 if (q->cons_head == q->cons_tail) { //reset record
875 q->cons_head = 0; //restart from beginning of the queue
904 q->cons_head = p->next;

Completed in 104 milliseconds