Home
last modified time | relevance | path

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

/f-stack/freebsd/sys/
H A Dbuf_ring.h122 uint32_t cons_head, cons_next; in buf_ring_dequeue_mc() local
127 cons_head = br->br_cons_head; in buf_ring_dequeue_mc()
136 buf = br->br_ring[cons_head]; in buf_ring_dequeue_mc()
138 br->br_ring[cons_head] = NULL; in buf_ring_dequeue_mc()
162 uint32_t cons_head, cons_next; in buf_ring_dequeue_sc() local
197 cons_head = br->br_cons_head; in buf_ring_dequeue_sc()
206 if (cons_head == prod_tail) in buf_ring_dequeue_sc()
217 buf = br->br_ring[cons_head]; in buf_ring_dequeue_sc()
220 br->br_ring[cons_head] = NULL; in buf_ring_dequeue_sc()
242 cons_head = br->br_cons_head; in buf_ring_advance_sc()
[all …]
/f-stack/dpdk/lib/librte_ring/
H A Drte_ring_elem.h348 __rte_ring_dequeue_elems(struct rte_ring *r, uint32_t cons_head, in __rte_ring_dequeue_elems() argument
355 __rte_ring_dequeue_elems_64(r, cons_head, obj_table, num); in __rte_ring_dequeue_elems()
357 __rte_ring_dequeue_elems_128(r, cons_head, obj_table, num); in __rte_ring_dequeue_elems()
364 idx = cons_head & r->mask; in __rte_ring_dequeue_elems()
463 uint32_t cons_head, cons_next; in __rte_ring_do_dequeue_elem() local
467 &cons_head, &cons_next, &entries); in __rte_ring_do_dequeue_elem()
471 __rte_ring_dequeue_elems(r, cons_head, obj_table, esize, n); in __rte_ring_do_dequeue_elem()
473 update_tail(&r->cons, cons_head, cons_next, is_sc, 0); in __rte_ring_do_dequeue_elem()
/f-stack/dpdk/doc/guides/prog_guide/
H A Dring_lib.rst94 The figures of the following sections refer to them as prod_head, prod_tail, cons_head and cons_tai…
158 In this example, only the consumer head and tail (cons_head and cons_tail) are modified and there i…
160 The initial state is to have a cons_head and cons_tail pointing at the same location.
165 First, ring->cons_head and ring->prod_tail are copied in local variables.
181 The second step is to modify ring->cons_head in the ring structure to point to the same location as…
196 …ring->cons_tail in the ring structure is modified to point to the same location as ring->cons_head.
301 In the preceding figures, the prod_head, prod_tail, cons_head and cons_tail indexes are represented…
349 uint32_t entries = (prod_tail - cons_head);