Searched refs:off_v1 (Results 1 – 2 of 2) sorted by relevance
166 struct xdp_mmap_offsets_v1 off_v1; in xsk_mmap_offsets_v1() local172 memcpy(&off_v1, off, sizeof(off_v1)); in xsk_mmap_offsets_v1()174 off->rx.producer = off_v1.rx.producer; in xsk_mmap_offsets_v1()175 off->rx.consumer = off_v1.rx.consumer; in xsk_mmap_offsets_v1()176 off->rx.desc = off_v1.rx.desc; in xsk_mmap_offsets_v1()177 off->rx.flags = off_v1.rx.consumer + sizeof(__u32); in xsk_mmap_offsets_v1()179 off->tx.producer = off_v1.tx.producer; in xsk_mmap_offsets_v1()180 off->tx.consumer = off_v1.tx.consumer; in xsk_mmap_offsets_v1()181 off->tx.desc = off_v1.tx.desc; in xsk_mmap_offsets_v1()182 off->tx.flags = off_v1.tx.consumer + sizeof(__u32); in xsk_mmap_offsets_v1()[all …]
990 struct xdp_mmap_offsets_v1 off_v1; in xsk_getsockopt() local994 if (len < sizeof(off_v1)) in xsk_getsockopt()1023 xsk_enter_rxtx_offsets(&off_v1.rx); in xsk_getsockopt()1024 xsk_enter_rxtx_offsets(&off_v1.tx); in xsk_getsockopt()1025 xsk_enter_umem_offsets(&off_v1.fr); in xsk_getsockopt()1026 xsk_enter_umem_offsets(&off_v1.cr); in xsk_getsockopt()1028 len = sizeof(off_v1); in xsk_getsockopt()1029 to_copy = &off_v1; in xsk_getsockopt()