Lines Matching refs:umem
49 struct xdp_umem *umem = xs->umem; in xsk_diag_put_umem() local
53 if (!umem) in xsk_diag_put_umem()
56 du.id = umem->id; in xsk_diag_put_umem()
57 du.size = umem->size; in xsk_diag_put_umem()
58 du.num_pages = umem->npgs; in xsk_diag_put_umem()
59 du.chunk_size = umem->chunk_size_nohr + umem->headroom; in xsk_diag_put_umem()
60 du.headroom = umem->headroom; in xsk_diag_put_umem()
61 du.ifindex = umem->dev ? umem->dev->ifindex : 0; in xsk_diag_put_umem()
62 du.queue_id = umem->queue_id; in xsk_diag_put_umem()
64 if (umem->zc) in xsk_diag_put_umem()
66 du.refs = refcount_read(&umem->users); in xsk_diag_put_umem()
70 if (!err && umem->fq) in xsk_diag_put_umem()
71 err = xsk_diag_put_ring(umem->fq, XDP_DIAG_UMEM_FILL_RING, nlskb); in xsk_diag_put_umem()
72 if (!err && umem->cq) { in xsk_diag_put_umem()
73 err = xsk_diag_put_ring(umem->cq, XDP_DIAG_UMEM_COMPLETION_RING, in xsk_diag_put_umem()