Lines Matching refs:map
80 struct bpf_map map; member
206 bpf_map_init_from_attr(&rb_map->map, attr); in ringbuf_map_alloc()
208 rb_map->rb = bpf_ringbuf_alloc(attr->max_entries, rb_map->map.numa_node); in ringbuf_map_alloc()
214 return &rb_map->map; in ringbuf_map_alloc()
231 static void ringbuf_map_free(struct bpf_map *map) in ringbuf_map_free() argument
235 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_free()
240 static void *ringbuf_map_lookup_elem(struct bpf_map *map, void *key) in ringbuf_map_lookup_elem() argument
245 static long ringbuf_map_update_elem(struct bpf_map *map, void *key, void *value, in ringbuf_map_update_elem() argument
251 static long ringbuf_map_delete_elem(struct bpf_map *map, void *key) in ringbuf_map_delete_elem() argument
256 static int ringbuf_map_get_next_key(struct bpf_map *map, void *key, in ringbuf_map_get_next_key() argument
262 static int ringbuf_map_mmap_kern(struct bpf_map *map, struct vm_area_struct *vma) in ringbuf_map_mmap_kern() argument
266 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_mmap_kern()
278 static int ringbuf_map_mmap_user(struct bpf_map *map, struct vm_area_struct *vma) in ringbuf_map_mmap_user() argument
282 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_mmap_user()
310 static __poll_t ringbuf_map_poll_kern(struct bpf_map *map, struct file *filp, in ringbuf_map_poll_kern() argument
315 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_poll_kern()
323 static __poll_t ringbuf_map_poll_user(struct bpf_map *map, struct file *filp, in ringbuf_map_poll_user() argument
328 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_poll_user()
336 static u64 ringbuf_map_mem_usage(const struct bpf_map *map) in ringbuf_map_mem_usage() argument
343 rb = container_of(map, struct bpf_ringbuf_map, map)->rb; in ringbuf_map_mem_usage()
346 nr_data_pages = map->max_entries >> PAGE_SHIFT; in ringbuf_map_mem_usage()
463 BPF_CALL_3(bpf_ringbuf_reserve, struct bpf_map *, map, u64, size, u64, flags) in BPF_CALL_3() argument
470 rb_map = container_of(map, struct bpf_ringbuf_map, map); in BPF_CALL_3()
536 BPF_CALL_4(bpf_ringbuf_output, struct bpf_map *, map, void *, data, u64, size, in BPF_CALL_4() argument
545 rb_map = container_of(map, struct bpf_ringbuf_map, map); in BPF_CALL_4()
564 BPF_CALL_2(bpf_ringbuf_query, struct bpf_map *, map, u64, flags) in BPF_CALL_2() argument
568 rb = container_of(map, struct bpf_ringbuf_map, map)->rb; in BPF_CALL_2()
591 BPF_CALL_4(bpf_ringbuf_reserve_dynptr, struct bpf_map *, map, u32, size, u64, flags, in BPF_CALL_4() argument
609 rb_map = container_of(map, struct bpf_ringbuf_map, map); in BPF_CALL_4()
738 BPF_CALL_4(bpf_user_ringbuf_drain, struct bpf_map *, map, in BPF_CALL_4() argument
750 rb = container_of(map, struct bpf_ringbuf_map, map)->rb; in BPF_CALL_4()