Lines Matching refs:rb_map
150 struct bpf_ringbuf_map *rb_map; in ringbuf_map_alloc() local
166 rb_map = kzalloc(sizeof(*rb_map), GFP_USER | __GFP_ACCOUNT); in ringbuf_map_alloc()
167 if (!rb_map) in ringbuf_map_alloc()
170 bpf_map_init_from_attr(&rb_map->map, attr); in ringbuf_map_alloc()
172 rb_map->rb = bpf_ringbuf_alloc(attr->max_entries, rb_map->map.numa_node); in ringbuf_map_alloc()
173 if (!rb_map->rb) { in ringbuf_map_alloc()
174 kfree(rb_map); in ringbuf_map_alloc()
178 return &rb_map->map; in ringbuf_map_alloc()
197 struct bpf_ringbuf_map *rb_map; in ringbuf_map_free() local
199 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_free()
200 bpf_ringbuf_free(rb_map->rb); in ringbuf_map_free()
201 kfree(rb_map); in ringbuf_map_free()
228 struct bpf_ringbuf_map *rb_map; in ringbuf_map_mmap() local
230 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_mmap()
240 return remap_vmalloc_range(vma, rb_map->rb, in ringbuf_map_mmap()
256 struct bpf_ringbuf_map *rb_map; in ringbuf_map_poll() local
258 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_poll()
259 poll_wait(filp, &rb_map->rb->waitq, pts); in ringbuf_map_poll()
261 if (ringbuf_avail_data_sz(rb_map->rb)) in ringbuf_map_poll()
353 struct bpf_ringbuf_map *rb_map; in BPF_CALL_3() local
358 rb_map = container_of(map, struct bpf_ringbuf_map, map); in BPF_CALL_3()
359 return (unsigned long)__bpf_ringbuf_reserve(rb_map->rb, size); in BPF_CALL_3()
427 struct bpf_ringbuf_map *rb_map; in BPF_CALL_4() local
433 rb_map = container_of(map, struct bpf_ringbuf_map, map); in BPF_CALL_4()
434 rec = __bpf_ringbuf_reserve(rb_map->rb, size); in BPF_CALL_4()