Home
last modified time | relevance | path

Searched refs:cons_next (Results 1 – 1 of 1) sorted by relevance

/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dbuf_ring.h120 uint32_t cons_head, cons_next; in buf_ring_dequeue_mc() local
126 cons_next = (cons_head + 1) & br->br_cons_mask; in buf_ring_dequeue_mc()
132 } while (!atomic_cmpset_acq_int(&br->br_cons_head, cons_head, cons_next)); in buf_ring_dequeue_mc()
146 atomic_store_rel_int(&br->br_cons_tail, cons_next); in buf_ring_dequeue_mc()
160 uint32_t cons_head, cons_next; in buf_ring_dequeue_sc() local
199 cons_next = (cons_head + 1) & br->br_cons_mask; in buf_ring_dequeue_sc()
208 if (cons_next != prod_tail) { in buf_ring_dequeue_sc()
209 prefetch(br->br_ring[cons_next]); in buf_ring_dequeue_sc()
214 br->br_cons_head = cons_next; in buf_ring_dequeue_sc()
225 br->br_cons_tail = cons_next; in buf_ring_dequeue_sc()
[all …]