• Home
  • Raw
  • Download

Lines Matching refs:bpf_map

108 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr)  in find_and_alloc_map()
112 struct bpf_map *map; in find_and_alloc_map()
137 static void bpf_map_write_active_inc(struct bpf_map *map) in bpf_map_write_active_inc()
142 static void bpf_map_write_active_dec(struct bpf_map *map) in bpf_map_write_active_dec()
147 bool bpf_map_write_active(const struct bpf_map *map) in bpf_map_write_active()
152 static u32 bpf_map_value_size(const struct bpf_map *map) in bpf_map_value_size()
165 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
176 static int bpf_map_update_value(struct bpf_map *map, struct fd f, void *key, in bpf_map_update_value()
232 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()
370 static int bpf_map_alloc_id(struct bpf_map *map) in bpf_map_alloc_id()
388 void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock) in bpf_map_free_id()
415 static void bpf_map_save_memcg(struct bpf_map *map) in bpf_map_save_memcg()
420 static void bpf_map_release_memcg(struct bpf_map *map) in bpf_map_release_memcg()
425 void *bpf_map_kmalloc_node(const struct bpf_map *map, size_t size, gfp_t flags, in bpf_map_kmalloc_node()
438 void *bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags) in bpf_map_kzalloc()
450 void __percpu *bpf_map_alloc_percpu(const struct bpf_map *map, size_t size, in bpf_map_alloc_percpu()
464 static void bpf_map_save_memcg(struct bpf_map *map) in bpf_map_save_memcg()
468 static void bpf_map_release_memcg(struct bpf_map *map) in bpf_map_release_memcg()
476 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred()
484 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref()
495 static void __bpf_map_put(struct bpf_map *map, bool do_idr_lock) in __bpf_map_put()
506 void bpf_map_put(struct bpf_map *map) in bpf_map_put()
512 void bpf_map_put_with_uref(struct bpf_map *map) in bpf_map_put_with_uref()
520 struct bpf_map *map = filp->private_data; in bpf_map_release()
529 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms()
546 static unsigned long bpf_map_memory_footprint(const struct bpf_map *map) in bpf_map_memory_footprint()
557 const struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo()
614 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_open()
623 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_close()
636 struct bpf_map *map = filp->private_data; in bpf_map_mmap()
685 struct bpf_map *map = filp->private_data; in bpf_map_poll()
704 int bpf_map_new_fd(struct bpf_map *map, int flags) in bpf_map_new_fd()
759 int map_check_no_btf(const struct bpf_map *map, in map_check_no_btf()
767 static int map_check_btf(struct bpf_map *map, const struct btf *btf, in map_check_btf()
831 struct bpf_map *map; in map_create()
942 struct bpf_map *__bpf_map_get(struct fd f) in __bpf_map_get()
954 void bpf_map_inc(struct bpf_map *map) in bpf_map_inc()
960 void bpf_map_inc_with_uref(struct bpf_map *map) in bpf_map_inc_with_uref()
967 struct bpf_map *bpf_map_get(u32 ufd) in bpf_map_get()
970 struct bpf_map *map; in bpf_map_get()
982 struct bpf_map *bpf_map_get_with_uref(u32 ufd) in bpf_map_get_with_uref()
985 struct bpf_map *map; in bpf_map_get_with_uref()
998 static struct bpf_map *__bpf_map_inc_not_zero(struct bpf_map *map, bool uref) in __bpf_map_inc_not_zero()
1011 struct bpf_map *bpf_map_inc_not_zero(struct bpf_map *map) in bpf_map_inc_not_zero()
1021 int __weak bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
1056 struct bpf_map *map; in map_lookup_elem()
1123 struct bpf_map *map; in map_update_elem()
1183 struct bpf_map *map; in map_delete_elem()
1239 struct bpf_map *map; in map_get_next_key()
1298 int generic_map_delete_batch(struct bpf_map *map, in generic_map_delete_batch()
1354 int generic_map_update_batch(struct bpf_map *map, in generic_map_update_batch()
1420 int generic_map_lookup_batch(struct bpf_map *map, in generic_map_lookup_batch()
1527 struct bpf_map *map; in map_lookup_and_delete_elem()
1618 struct bpf_map *map; in map_freeze()
3382 struct bpf_map *bpf_map_get_curr_or_next(u32 *id) in bpf_map_get_curr_or_next()
3384 struct bpf_map *map; in bpf_map_get_curr_or_next()
3466 struct bpf_map *map; in bpf_map_get_fd_by_id()
3500 static const struct bpf_map *bpf_map_from_imm(const struct bpf_prog *prog, in bpf_map_from_imm()
3504 const struct bpf_map *map; in bpf_map_from_imm()
3531 const struct bpf_map *map; in bpf_insn_prepare_dump()
3894 struct bpf_map *map, in bpf_map_get_info_by_fd()
4189 struct bpf_map *map; in bpf_map_do_batch()
4532 struct bpf_map *map; in bpf_prog_bind_map()
4533 struct bpf_map **used_maps_old, **used_maps_new; in bpf_prog_bind_map()