Lines Matching refs:umem_sz
287 size_t umem_sz = DEFAULT_UMEM_BUFFERS * XSK_UMEM__DEFAULT_FRAME_SIZE; in ifobj_zc_avail() local
295 bufs = mmap(NULL, umem_sz, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in ifobj_zc_avail()
301 munmap(bufs, umem_sz); in ifobj_zc_avail()
305 ret = xsk_configure_umem(ifobject, umem, bufs, umem_sz); in ifobj_zc_avail()
322 munmap(umem->buffer, umem_sz); in ifobj_zc_avail()
1685 u64 umem_sz = ifobject->umem->num_frames * ifobject->umem->frame_size; in thread_common_ops() local
1696 umem_sz *= 2; in thread_common_ops()
1698 bufs = mmap(NULL, umem_sz, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in thread_common_ops()
1702 ret = xsk_configure_umem(ifobject, ifobject->umem, bufs, umem_sz); in thread_common_ops()
1783 u64 umem_sz = ifobj->umem->num_frames * ifobj->umem->frame_size; in testapp_clean_xsk_umem() local
1786 umem_sz *= 2; in testapp_clean_xsk_umem()
1788 umem_sz = ceil_u64(umem_sz, HUGEPAGE_SIZE) * HUGEPAGE_SIZE; in testapp_clean_xsk_umem()
1790 munmap(ifobj->umem->buffer, umem_sz); in testapp_clean_xsk_umem()