Home
last modified time | relevance | path

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

/openbmc/linux/net/xdp/
H A Dxsk_queue.h43 u32 cached_prod; member
130 if (q->cached_cons != q->cached_prod) { in xskq_cons_read_addr_unchecked()
209 if (q->cached_cons != q->cached_prod) { in xskq_cons_read_desc()
313 if (q->cached_prod == q->cached_cons) in xskq_cons_peek_addr_unchecked()
322 if (q->cached_prod == q->cached_cons) in xskq_cons_peek_desc()
370 q->cached_prod -= cnt; in xskq_prod_cancel_n()
379 q->cached_prod++; in xskq_prod_reserve()
399 u32 i, cached_prod; in xskq_prod_write_addr_batch() local
402 cached_prod = q->cached_prod; in xskq_prod_write_addr_batch()
405 q->cached_prod = cached_prod; in xskq_prod_write_addr_batch()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxsk.h29 __u32 cached_prod; \
88 __u32 free_entries = r->cached_cons - r->cached_prod; in xsk_prod_nb_free()
103 return r->cached_cons - r->cached_prod; in xsk_prod_nb_free()
108 __u32 entries = r->cached_prod - r->cached_cons; in xsk_cons_nb_avail()
111 r->cached_prod = __atomic_load_n(r->producer, __ATOMIC_ACQUIRE); in xsk_cons_nb_avail()
112 entries = r->cached_prod - r->cached_cons; in xsk_cons_nb_avail()
123 *idx = prod->cached_prod; in xsk_ring_prod__reserve()
124 prod->cached_prod += nb; in xsk_ring_prod__reserve()
139 prod->cached_prod -= nb; in xsk_ring_prod__cancel()
H A Dxsk.c638 rx->cached_prod = *rx->producer; in xsk_socket__create_shared()
659 tx->cached_prod = *tx->producer; in xsk_socket__create_shared()