Lines Matching refs:nentries
23 return sizeof(struct xdp_umem_ring) + q->nentries * sizeof(u64); in xskq_umem_get_ring_size()
28 return sizeof(struct xdp_ring) + q->nentries * sizeof(struct xdp_desc); in xskq_rxtx_get_ring_size()
31 struct xsk_queue *xskq_create(u32 nentries, bool umem_queue) in xskq_create() argument
41 q->nentries = nentries; in xskq_create()
42 q->ring_mask = nentries - 1; in xskq_create()
68 struct xdp_umem_fq_reuse *xsk_reuseq_prepare(u32 nentries) in xsk_reuseq_prepare() argument
73 if (nentries > (u32)roundup_pow_of_two(nentries)) in xsk_reuseq_prepare()
75 nentries = roundup_pow_of_two(nentries); in xsk_reuseq_prepare()
77 newq = kvmalloc(struct_size(newq, handles, nentries), GFP_KERNEL); in xsk_reuseq_prepare()
82 newq->nentries = nentries; in xsk_reuseq_prepare()
97 if (newq->nentries < oldq->length) in xsk_reuseq_swap()