Home
last modified time | relevance | path

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

/f-stack/freebsd/sys/
H A Dbuf_ring.h166 uint32_t prod_tail; in buf_ring_dequeue_sc() local
199 prod_tail = atomic_load_acq_32(&br->br_prod_tail); in buf_ring_dequeue_sc()
206 if (cons_head == prod_tail) in buf_ring_dequeue_sc()
210 if (cons_next != prod_tail) { in buf_ring_dequeue_sc()
212 if (cons_next_next != prod_tail) in buf_ring_dequeue_sc()
240 uint32_t prod_tail; in buf_ring_advance_sc() local
243 prod_tail = br->br_prod_tail; in buf_ring_advance_sc()
246 if (cons_head == prod_tail) in buf_ring_advance_sc()
/f-stack/dpdk/lib/librte_ring/
H A Drte_ring_c11_mem.h136 uint32_t prod_tail; in __rte_ring_move_cons_head() local
151 prod_tail = __atomic_load_n(&r->prod.tail, in __rte_ring_move_cons_head()
159 *entries = (prod_tail - *old_head); in __rte_ring_move_cons_head()
H A Drte_ring.h491 uint32_t prod_tail = r->prod.tail; in rte_ring_count() local
493 uint32_t count = (prod_tail - cons_tail) & r->mask; in rte_ring_count()
538 uint32_t prod_tail = r->prod.tail; in rte_ring_empty() local
540 return cons_tail == prod_tail; in rte_ring_empty()
/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…
104 In this example, only the producer head and tail (prod_head and prod_tail) are modified,
107 The initial state is to have a prod_head and prod_tail pointing at the same location.
165 First, ring->cons_head and ring->prod_tail are copied in local variables.
168 If there are not enough objects in the ring (this is detected by checking prod_tail), it returns an…
211 In this example, only the producer head and tail (prod_head and prod_tail) are modified.
213 The initial state is to have a prod_head and prod_tail pointing at the same location.
272 Each core now wants to update ring->prod_tail.
273 A core can only update it if ring->prod_tail is equal to the prod_head local variable.
287 Once ring->prod_tail is updated by core 1, core 2 is allowed to update it too.
[all …]