Lines Matching refs:bpf_map

106 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr)  in find_and_alloc_map()
110 struct bpf_map *map; in find_and_alloc_map()
135 static u32 bpf_map_value_size(const struct bpf_map *map) in bpf_map_value_size()
148 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
159 static int bpf_map_update_value(struct bpf_map *map, struct fd f, void *key, in bpf_map_update_value()
215 static int bpf_map_copy_value(struct bpf_map *map, void *key, void *value, in bpf_map_copy_value()
343 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr()
353 static int bpf_map_alloc_id(struct bpf_map *map) in bpf_map_alloc_id()
371 void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock) in bpf_map_free_id()
398 static void bpf_map_save_memcg(struct bpf_map *map) in bpf_map_save_memcg()
403 static void bpf_map_release_memcg(struct bpf_map *map) in bpf_map_release_memcg()
408 void *bpf_map_kmalloc_node(const struct bpf_map *map, size_t size, gfp_t flags, in bpf_map_kmalloc_node()
421 void *bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags) in bpf_map_kzalloc()
433 void __percpu *bpf_map_alloc_percpu(const struct bpf_map *map, size_t size, in bpf_map_alloc_percpu()
447 static void bpf_map_save_memcg(struct bpf_map *map) in bpf_map_save_memcg()
451 static void bpf_map_release_memcg(struct bpf_map *map) in bpf_map_release_memcg()
459 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred()
467 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref()
478 static void __bpf_map_put(struct bpf_map *map, bool do_idr_lock) in __bpf_map_put()
489 void bpf_map_put(struct bpf_map *map) in bpf_map_put()
495 void bpf_map_put_with_uref(struct bpf_map *map) in bpf_map_put_with_uref()
503 struct bpf_map *map = filp->private_data; in bpf_map_release()
512 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms()
529 static unsigned long bpf_map_memory_footprint(const struct bpf_map *map) in bpf_map_memory_footprint()
540 const struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo()
597 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_open()
609 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_close()
625 struct bpf_map *map = filp->private_data; in bpf_map_mmap()
674 struct bpf_map *map = filp->private_data; in bpf_map_poll()
693 int bpf_map_new_fd(struct bpf_map *map, int flags) in bpf_map_new_fd()
748 int map_check_no_btf(const struct bpf_map *map, in map_check_no_btf()
756 static int map_check_btf(struct bpf_map *map, const struct btf *btf, in map_check_btf()
820 struct bpf_map *map; in map_create()
931 struct bpf_map *__bpf_map_get(struct fd f) in __bpf_map_get()
943 void bpf_map_inc(struct bpf_map *map) in bpf_map_inc()
949 void bpf_map_inc_with_uref(struct bpf_map *map) in bpf_map_inc_with_uref()
956 struct bpf_map *bpf_map_get(u32 ufd) in bpf_map_get()
959 struct bpf_map *map; in bpf_map_get()
971 struct bpf_map *bpf_map_get_with_uref(u32 ufd) in bpf_map_get_with_uref()
974 struct bpf_map *map; in bpf_map_get_with_uref()
987 static struct bpf_map *__bpf_map_inc_not_zero(struct bpf_map *map, bool uref) in __bpf_map_inc_not_zero()
1000 struct bpf_map *bpf_map_inc_not_zero(struct bpf_map *map) in bpf_map_inc_not_zero()
1010 int __weak bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
1045 struct bpf_map *map; in map_lookup_elem()
1112 struct bpf_map *map; in map_update_elem()
1170 struct bpf_map *map; in map_delete_elem()
1224 struct bpf_map *map; in map_get_next_key()
1283 int generic_map_delete_batch(struct bpf_map *map, in generic_map_delete_batch()
1335 int generic_map_update_batch(struct bpf_map *map, in generic_map_update_batch()
1397 int generic_map_lookup_batch(struct bpf_map *map, in generic_map_lookup_batch()
1503 struct bpf_map *map; in map_lookup_and_delete_elem()
1592 struct bpf_map *map; in map_freeze()
3344 struct bpf_map *bpf_map_get_curr_or_next(u32 *id) in bpf_map_get_curr_or_next()
3346 struct bpf_map *map; in bpf_map_get_curr_or_next()
3428 struct bpf_map *map; in bpf_map_get_fd_by_id()
3462 static const struct bpf_map *bpf_map_from_imm(const struct bpf_prog *prog, in bpf_map_from_imm()
3466 const struct bpf_map *map; in bpf_map_from_imm()
3493 const struct bpf_map *map; in bpf_insn_prepare_dump()
3856 struct bpf_map *map, in bpf_map_get_info_by_fd()
4146 struct bpf_map *map; in bpf_map_do_batch()
4491 struct bpf_map *map; in bpf_prog_bind_map()
4492 struct bpf_map **used_maps_old, **used_maps_new; in bpf_prog_bind_map()