Searched refs:npgs (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/net/xdp/ |
D | xdp_umem.c | 28 unpin_user_pages_dirty_lock(umem->pgs, umem->npgs, true); in xdp_umem_unpin_pages() 37 atomic_long_sub(umem->npgs, &umem->user->locked_vm); in xdp_umem_unaccount_pages() 99 long npgs; in xdp_umem_pin_pages() local 102 umem->pgs = kcalloc(umem->npgs, sizeof(*umem->pgs), in xdp_umem_pin_pages() 108 npgs = pin_user_pages(address, umem->npgs, in xdp_umem_pin_pages() 112 if (npgs != umem->npgs) { in xdp_umem_pin_pages() 113 if (npgs >= 0) { in xdp_umem_pin_pages() 114 umem->npgs = npgs; in xdp_umem_pin_pages() 118 err = npgs; in xdp_umem_pin_pages() 143 new_npgs = old_npgs + umem->npgs; in xdp_umem_account_pages() [all …]
|
D | xsk_diag.c | 59 du.num_pages = umem->npgs; in xsk_diag_put_umem()
|
/kernel/linux/linux-5.10/include/net/ |
D | xdp_sock.h | 26 u32 npgs; member
|
D | xdp_sock_drv.h | 57 return xp_dma_map(pool, dev, attrs, umem->pgs, umem->npgs); in xsk_pool_dma_map()
|