Lines Matching defs:map
35 #define IS_FD_ARRAY(map) … argument
38 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) argument
39 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) argument
40 #define IS_FD_MAP(map) (IS_FD_ARRAY(map) || IS_FD_PROG_ARRAY(map) || IS_FD_HASH(map)) argument
104 struct bpf_map *map; in find_and_alloc_map() local
134 static u32 bpf_map_value_size(struct bpf_map *map) in bpf_map_value_size()
146 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
157 static int bpf_map_update_value(struct bpf_map *map, struct fd f, void *key, void *value, __u64 fla… in bpf_map_update_value()
203 static int bpf_map_copy_value(struct bpf_map *map, void *key, void *value, __u64 flags) in bpf_map_copy_value()
327 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr()
391 int bpf_map_charge_memlock(struct bpf_map *map, u32 pages) in bpf_map_charge_memlock()
403 void bpf_map_uncharge_memlock(struct bpf_map *map, u32 pages) in bpf_map_uncharge_memlock()
409 static int bpf_map_alloc_id(struct bpf_map *map) in bpf_map_alloc_id()
429 void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock) in bpf_map_free_id()
461 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred() local
471 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref()
483 static void _bpf_map_put(struct bpf_map *map, bool do_idr_lock) in _bpf_map_put()
494 void bpf_map_put(struct bpf_map *map) in bpf_map_put()
500 void bpf_map_put_with_uref(struct bpf_map *map) in bpf_map_put_with_uref()
508 struct bpf_map *map = filp->private_data; in bpf_map_release() local
518 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms()
534 const struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo() local
583 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_open() local
595 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_close() local
611 struct bpf_map *map = filp->private_data; in bpf_map_mmap() local
664 struct bpf_map *map = filp->private_data; in bpf_map_poll() local
684 int bpf_map_new_fd(struct bpf_map *map, int flags) in bpf_map_new_fd()
740 int map_check_no_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_t… in map_check_no_btf()
746 static int map_check_btf(struct bpf_map *map, const struct btf *btf, u32 btf_key_id, u32 btf_value_… in map_check_btf()
800 struct bpf_map *map; in map_create() local
921 void bpf_map_inc(struct bpf_map *map) in bpf_map_inc()
927 void bpf_map_inc_with_uref(struct bpf_map *map) in bpf_map_inc_with_uref()
937 struct bpf_map *map; in bpf_map_get() local
953 struct bpf_map *map; in bpf_map_get_with_uref() local
967 static struct bpf_map *_bpf_map_inc_not_zero(struct bpf_map *map, bool uref) in _bpf_map_inc_not_zero()
982 struct bpf_map *bpf_map_inc_not_zero(struct bpf_map *map) in bpf_map_inc_not_zero()
992 int __weak bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
1018 struct bpf_map *map; in map_lookup_elem() local
1089 struct bpf_map *map; in map_update_elem() local
1155 struct bpf_map *map; in map_delete_elem() local
1210 struct bpf_map *map; in map_get_next_key() local
1274 int generic_map_delete_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user… in generic_map_delete_batch()
1328 int generic_map_update_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user… in generic_map_update_batch()
1392 int generic_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user… in generic_map_lookup_batch()
1506 struct bpf_map *map; in map_lookup_and_delete_elem() local
1571 struct bpf_map *map; in map_freeze() local
3215 struct bpf_map *map; in bpf_map_get_curr_or_next() local
3308 struct bpf_map *map; in bpf_map_get_fd_by_id() local
3349 const struct bpf_map *map; in bpf_map_from_imm() local
3376 const struct bpf_map *map; in bpf_insn_prepare_dump() local
3749 static int bpf_map_get_info_by_fd(struct file *file, struct bpf_map *map, const union bpf_attr *att… in bpf_map_get_info_by_fd()
4055 struct bpf_map *map; in bpf_map_do_batch() local
4405 struct bpf_map *map; in bpf_prog_bind_map() local