Home
last modified time | relevance | path

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

/openbmc/linux/net/xdp/
H A Dxsk_queue.h237 u32 cached_cons = q->cached_cons, nb_entries = 0; in xskq_cons_read_desc_batch() local
244 while (cached_cons != q->cached_prod && nb_entries < max) { in xskq_cons_read_desc_batch()
249 descs[nb_entries] = ring->desc[idx]; in xskq_cons_read_desc_batch()
251 parse_desc(q, pool, &descs[nb_entries], &parsed); in xskq_cons_read_desc_batch()
265 nb_entries++; in xskq_cons_read_desc_batch()
396 u32 nb_entries) in xskq_prod_write_addr_batch() argument
403 for (i = 0; i < nb_entries; i++) in xskq_prod_write_addr_batch()
436 static inline void xskq_prod_submit_n(struct xsk_queue *q, u32 nb_entries) in xskq_prod_submit_n() argument
438 __xskq_prod_submit(q, q->ring->producer + nb_entries); in xskq_prod_submit_n()
H A Dxsk_buff_pool.c556 u32 i, cached_cons, nb_entries; in xp_alloc_new_from_fq() local
563 nb_entries = max; in xp_alloc_new_from_fq()
576 nb_entries--; in xp_alloc_new_from_fq()
594 return nb_entries; in xp_alloc_new_from_fq()
597 static u32 xp_alloc_reused(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 nb_entries) in xp_alloc_reused() argument
602 nb_entries = min_t(u32, nb_entries, pool->free_list_cnt); in xp_alloc_reused()
604 i = nb_entries; in xp_alloc_reused()
612 pool->free_list_cnt -= nb_entries; in xp_alloc_reused()
614 return nb_entries; in xp_alloc_reused()
H A Dxsk.c398 void xsk_tx_completed(struct xsk_buff_pool *pool, u32 nb_entries) in xsk_tx_completed() argument
400 xskq_prod_submit_n(pool->cq, nb_entries); in xsk_tx_completed()
/openbmc/qemu/tests/qemu-iotests/
H A Dqcow2_format.py201 nb_entries=self.bitmap_table_size,
253 def __init__(self, fd, offset, nb_entries, cluster_size): argument
257 self.entries = [Qcow2BitmapTableEntry(fd) for _ in range(nb_entries)]
H A D26171 nb_entries=$(peek_file_be "$1" 60 4)
76 for ((i = 0; i < nb_entries; i++)); do
/openbmc/linux/include/net/
H A Dxdp_sock_drv.h17 void xsk_tx_completed(struct xsk_buff_pool *pool, u32 nb_entries);
205 static inline void xsk_tx_completed(struct xsk_buff_pool *pool, u32 nb_entries) in xsk_tx_completed() argument