Home
last modified time | relevance | path

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

/linux-6.1.9/net/xdp/
Dxdp_umem.c26 unpin_user_pages_dirty_lock(umem->pgs, umem->npgs, true); in xdp_umem_unpin_pages()
35 atomic_long_sub(umem->npgs, &umem->user->locked_vm); in xdp_umem_unaccount_pages()
97 long npgs; in xdp_umem_pin_pages() local
100 umem->pgs = kvcalloc(umem->npgs, sizeof(*umem->pgs), GFP_KERNEL | __GFP_NOWARN); in xdp_umem_pin_pages()
105 npgs = pin_user_pages(address, umem->npgs, in xdp_umem_pin_pages()
109 if (npgs != umem->npgs) { in xdp_umem_pin_pages()
110 if (npgs >= 0) { in xdp_umem_pin_pages()
111 umem->npgs = npgs; in xdp_umem_pin_pages()
115 err = npgs; in xdp_umem_pin_pages()
140 new_npgs = old_npgs + umem->npgs; in xdp_umem_account_pages()
[all …]
Dxsk_diag.c59 du.num_pages = umem->npgs; in xsk_diag_put_umem()
/linux-6.1.9/include/net/
Dxdp_sock.h27 u32 npgs; member
Dxdp_sock_drv.h70 return xp_dma_map(pool, dev, attrs, umem->pgs, umem->npgs); in xsk_pool_dma_map()