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 void bpf_map_write_active_inc(struct bpf_map *map) in bpf_map_write_active_inc()
140 static void bpf_map_write_active_dec(struct bpf_map *map) in bpf_map_write_active_dec()
145 bool bpf_map_write_active(const struct bpf_map *map) in bpf_map_write_active()
150 static u32 bpf_map_value_size(const struct bpf_map *map) in bpf_map_value_size()
163 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
174 static int bpf_map_update_value(struct bpf_map *map, struct fd f, void *key, in bpf_map_update_value()
231 static int bpf_map_copy_value(struct bpf_map *map, void *key, void *value, in bpf_map_copy_value()
360 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr()
371 static int bpf_map_alloc_id(struct bpf_map *map) in bpf_map_alloc_id()
389 void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock) in bpf_map_free_id()
416 static void bpf_map_save_memcg(struct bpf_map *map) in bpf_map_save_memcg()
421 static void bpf_map_release_memcg(struct bpf_map *map) in bpf_map_release_memcg()
426 void *bpf_map_kmalloc_node(const struct bpf_map *map, size_t size, gfp_t flags, in bpf_map_kmalloc_node()
439 void *bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags) in bpf_map_kzalloc()
451 void __percpu *bpf_map_alloc_percpu(const struct bpf_map *map, size_t size, in bpf_map_alloc_percpu()
465 static void bpf_map_save_memcg(struct bpf_map *map) in bpf_map_save_memcg()
469 static void bpf_map_release_memcg(struct bpf_map *map) in bpf_map_release_memcg()
477 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred()
485 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref()
496 static void __bpf_map_put(struct bpf_map *map, bool do_idr_lock) in __bpf_map_put()
507 void bpf_map_put(struct bpf_map *map) in bpf_map_put()
513 void bpf_map_put_with_uref(struct bpf_map *map) in bpf_map_put_with_uref()
521 struct bpf_map *map = filp->private_data; in bpf_map_release()
530 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms()
547 static unsigned long bpf_map_memory_footprint(const struct bpf_map *map) in bpf_map_memory_footprint()
558 const struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo()
617 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_open()
626 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_close()
639 struct bpf_map *map = filp->private_data; in bpf_map_mmap()
688 struct bpf_map *map = filp->private_data; in bpf_map_poll()
707 int bpf_map_new_fd(struct bpf_map *map, int flags) in bpf_map_new_fd()
762 int map_check_no_btf(const struct bpf_map *map, in map_check_no_btf()
770 static int map_check_btf(struct bpf_map *map, const struct btf *btf, in map_check_btf()
834 struct bpf_map *map; in map_create()
949 struct bpf_map *__bpf_map_get(struct fd f) in __bpf_map_get()
961 void bpf_map_inc(struct bpf_map *map) in bpf_map_inc()
967 void bpf_map_inc_with_uref(struct bpf_map *map) in bpf_map_inc_with_uref()
974 struct bpf_map *bpf_map_get(u32 ufd) in bpf_map_get()
977 struct bpf_map *map; in bpf_map_get()
989 struct bpf_map *bpf_map_get_with_uref(u32 ufd) in bpf_map_get_with_uref()
992 struct bpf_map *map; in bpf_map_get_with_uref()
1005 static struct bpf_map *__bpf_map_inc_not_zero(struct bpf_map *map, bool uref) in __bpf_map_inc_not_zero()
1018 struct bpf_map *bpf_map_inc_not_zero(struct bpf_map *map) in bpf_map_inc_not_zero()
1028 int __weak bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
1063 struct bpf_map *map; in map_lookup_elem()
1138 struct bpf_map *map; in map_update_elem()
1198 struct bpf_map *map; in map_delete_elem()
1254 struct bpf_map *map; in map_get_next_key()
1313 int generic_map_delete_batch(struct bpf_map *map, in generic_map_delete_batch()
1365 int generic_map_update_batch(struct bpf_map *map, in generic_map_update_batch()
1427 int generic_map_lookup_batch(struct bpf_map *map, in generic_map_lookup_batch()
1533 struct bpf_map *map; in map_lookup_and_delete_elem()
1624 struct bpf_map *map; in map_freeze()
3383 struct bpf_map *bpf_map_get_curr_or_next(u32 *id) in bpf_map_get_curr_or_next()
3385 struct bpf_map *map; in bpf_map_get_curr_or_next()
3467 struct bpf_map *map; in bpf_map_get_fd_by_id()
3501 static const struct bpf_map *bpf_map_from_imm(const struct bpf_prog *prog, in bpf_map_from_imm()
3505 const struct bpf_map *map; in bpf_map_from_imm()
3532 const struct bpf_map *map; in bpf_insn_prepare_dump()
3897 struct bpf_map *map, in bpf_map_get_info_by_fd()
4191 struct bpf_map *map; in bpf_map_do_batch()
4534 struct bpf_map *map; in bpf_prog_bind_map()
4535 struct bpf_map **used_maps_old, **used_maps_new; in bpf_prog_bind_map()