Searched refs:umem_area (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_metadata.c | 38 void *umem_area; member 66 xsk->umem_area = mmap(NULL, UMEM_SIZE, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in open_xsk() 67 if (!ASSERT_NEQ(xsk->umem_area, MAP_FAILED, "mmap")) in open_xsk() 71 xsk->umem_area, UMEM_SIZE, in open_xsk() 119 munmap(xsk->umem_area, UMEM_SIZE); in close_xsk() 156 data = xsk_umem__get_data(xsk->umem_area, tx_desc->addr); in generate_packet() 252 data = xsk_umem__get_data(xsk->umem_area, addr); in verify_xsk_metadata()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xdp_hw_metadata.c | 40 void *umem_area; member 76 xsk->umem_area = mmap(NULL, UMEM_SIZE, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in open_xsk() 77 if (xsk->umem_area == MAP_FAILED) in open_xsk() 81 xsk->umem_area, UMEM_SIZE, in open_xsk() 124 munmap(xsk->umem_area, UMEM_SIZE); in close_xsk() 281 verify_xdp_metadata(xsk_umem__get_data(xsk->umem_area, addr), in verify_metadata()
|
H A D | xsk.h | 167 static inline void *xsk_umem__get_data(void *umem_area, __u64 addr) in xsk_umem__get_data() argument 169 return &((char *)umem_area)[addr]; in xsk_umem__get_data() 219 void *umem_area, __u64 size,
|
H A D | xsk.c | 59 char *umem_area; member 221 int xsk_umem__create(struct xsk_umem **umem_ptr, void *umem_area, in xsk_umem__create() argument 230 if (!umem_area || !umem_ptr || !fill || !comp) in xsk_umem__create() 232 if (!size && !xsk_page_aligned(umem_area)) in xsk_umem__create() 245 umem->umem_area = umem_area; in xsk_umem__create() 250 mr.addr = (uintptr_t)umem_area; in xsk_umem__create()
|