Lines Matching refs:bpf_map
116 static void bpf_map_write_active_inc(struct bpf_map *map) in bpf_map_write_active_inc()
121 static void bpf_map_write_active_dec(struct bpf_map *map) in bpf_map_write_active_dec()
126 bool bpf_map_write_active(const struct bpf_map *map) in bpf_map_write_active()
131 static u32 bpf_map_value_size(const struct bpf_map *map) in bpf_map_value_size()
144 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
155 static int bpf_map_update_value(struct bpf_map *map, struct file *map_file, in bpf_map_update_value()
212 static int bpf_map_copy_value(struct bpf_map *map, void *key, void *value, in bpf_map_copy_value()
341 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr()
352 static int bpf_map_alloc_id(struct bpf_map *map) in bpf_map_alloc_id()
370 void bpf_map_free_id(struct bpf_map *map) in bpf_map_free_id()
391 static void bpf_map_save_memcg(struct bpf_map *map) in bpf_map_save_memcg()
402 static void bpf_map_release_memcg(struct bpf_map *map) in bpf_map_release_memcg()
408 static struct mem_cgroup *bpf_map_get_memcg(const struct bpf_map *map) in bpf_map_get_memcg()
416 void *bpf_map_kmalloc_node(const struct bpf_map *map, size_t size, gfp_t flags, in bpf_map_kmalloc_node()
431 void *bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags) in bpf_map_kzalloc()
445 void *bpf_map_kvcalloc(struct bpf_map *map, size_t n, size_t size, in bpf_map_kvcalloc()
460 void __percpu *bpf_map_alloc_percpu(const struct bpf_map *map, size_t size, in bpf_map_alloc_percpu()
476 static void bpf_map_save_memcg(struct bpf_map *map) in bpf_map_save_memcg()
480 static void bpf_map_release_memcg(struct bpf_map *map) in bpf_map_release_memcg()
540 void bpf_map_free_record(struct bpf_map *map) in bpf_map_free_record()
695 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred()
719 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref()
727 static void bpf_map_free_in_work(struct bpf_map *map) in bpf_map_free_in_work()
738 bpf_map_free_in_work(container_of(rcu, struct bpf_map, rcu)); in bpf_map_free_rcu_gp()
752 void bpf_map_put(struct bpf_map *map) in bpf_map_put()
766 void bpf_map_put_with_uref(struct bpf_map *map) in bpf_map_put_with_uref()
774 struct bpf_map *map = filp->private_data; in bpf_map_release()
783 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms()
797 static u64 bpf_map_memory_usage(const struct bpf_map *map) in bpf_map_memory_usage()
804 struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo()
861 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_open()
870 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_close()
883 struct bpf_map *map = filp->private_data; in bpf_map_mmap()
931 struct bpf_map *map = filp->private_data; in bpf_map_poll()
950 int bpf_map_new_fd(struct bpf_map *map, int flags) in bpf_map_new_fd()
1005 int map_check_no_btf(const struct bpf_map *map, in map_check_no_btf()
1013 static int map_check_btf(struct bpf_map *map, const struct btf *btf, in map_check_btf()
1131 struct bpf_map *map; in map_create()
1321 struct bpf_map *__bpf_map_get(struct fd f) in __bpf_map_get()
1333 void bpf_map_inc(struct bpf_map *map) in bpf_map_inc()
1339 void bpf_map_inc_with_uref(struct bpf_map *map) in bpf_map_inc_with_uref()
1346 struct bpf_map *bpf_map_get(u32 ufd) in bpf_map_get()
1349 struct bpf_map *map; in bpf_map_get()
1362 struct bpf_map *bpf_map_get_with_uref(u32 ufd) in bpf_map_get_with_uref()
1365 struct bpf_map *map; in bpf_map_get_with_uref()
1380 struct bpf_map *__bpf_map_inc_not_zero(struct bpf_map *map, bool uref) in __bpf_map_inc_not_zero()
1393 struct bpf_map *bpf_map_inc_not_zero(struct bpf_map *map) in bpf_map_inc_not_zero()
1403 int __weak bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
1438 struct bpf_map *map; in map_lookup_elem()
1513 struct bpf_map *map; in map_update_elem()
1568 struct bpf_map *map; in map_delete_elem()
1624 struct bpf_map *map; in map_get_next_key()
1683 int generic_map_delete_batch(struct bpf_map *map, in generic_map_delete_batch()
1740 int generic_map_update_batch(struct bpf_map *map, struct file *map_file, in generic_map_update_batch()
1802 int generic_map_lookup_batch(struct bpf_map *map, in generic_map_lookup_batch()
1909 struct bpf_map *map; in map_lookup_and_delete_elem()
2000 struct bpf_map *map; in map_freeze()
4116 struct bpf_map *bpf_map_get_curr_or_next(u32 *id) in bpf_map_get_curr_or_next()
4118 struct bpf_map *map; in bpf_map_get_curr_or_next()
4200 struct bpf_map *map; in bpf_map_get_fd_by_id()
4234 static const struct bpf_map *bpf_map_from_imm(const struct bpf_prog *prog, in bpf_map_from_imm()
4238 const struct bpf_map *map; in bpf_map_from_imm()
4265 const struct bpf_map *map; in bpf_insn_prepare_dump()
4635 struct bpf_map *map, in bpf_map_get_info_by_fd()
4932 struct bpf_map *map; in bpf_map_do_batch()
5064 struct bpf_map *new_map, *old_map = NULL; in link_update_map()
5325 struct bpf_map *map; in bpf_prog_bind_map()
5326 struct bpf_map **used_maps_old, **used_maps_new; in bpf_prog_bind_map()