• Home
  • Raw
  • Download

Lines Matching defs:map

45 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \  argument
48 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) argument
49 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) argument
50 #define IS_FD_MAP(map) (IS_FD_ARRAY(map) || IS_FD_PROG_ARRAY(map) || \ argument
117 static void bpf_map_write_active_inc(struct bpf_map *map) in bpf_map_write_active_inc()
122 static void bpf_map_write_active_dec(struct bpf_map *map) in bpf_map_write_active_dec()
127 bool bpf_map_write_active(const struct bpf_map *map) in bpf_map_write_active()
132 static u32 bpf_map_value_size(const struct bpf_map *map) in bpf_map_value_size()
145 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
160 static int bpf_map_update_value(struct bpf_map *map, struct file *map_file, in bpf_map_update_value()
213 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()
485 int bpf_map_alloc_pages(const struct bpf_map *map, gfp_t gfp, int nid, in bpf_map_alloc_pages()
576 void bpf_map_free_record(struct bpf_map *map) in bpf_map_free_record()
740 static void bpf_map_free(struct bpf_map *map) in bpf_map_free()
766 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred() local
773 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref()
781 static void bpf_map_free_in_work(struct bpf_map *map) in bpf_map_free_in_work()
806 void bpf_map_put(struct bpf_map *map) in bpf_map_put()
823 void bpf_map_put_with_uref(struct bpf_map *map) in bpf_map_put_with_uref()
831 struct bpf_map *map = filp->private_data; in bpf_map_release() local
840 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms()
854 static u64 bpf_map_memory_usage(const struct bpf_map *map) in bpf_map_memory_usage()
861 struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo() local
918 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_open() local
927 struct bpf_map *map = vma->vm_file->private_data; in bpf_map_mmap_close() local
940 struct bpf_map *map = filp->private_data; in bpf_map_mmap() local
997 struct bpf_map *map = filp->private_data; in bpf_map_poll() local
1009 struct bpf_map *map = filp->private_data; in bpf_get_unmapped_area() local
1032 int bpf_map_new_fd(struct bpf_map *map, int flags) in bpf_map_new_fd()
1087 int map_check_no_btf(const struct bpf_map *map, in map_check_no_btf()
1095 static int map_check_btf(struct bpf_map *map, struct bpf_token *token, in map_check_btf()
1221 struct bpf_map *map; in map_create() local
1439 void bpf_map_inc(struct bpf_map *map) in bpf_map_inc()
1445 void bpf_map_inc_with_uref(struct bpf_map *map) in bpf_map_inc_with_uref()
1455 struct bpf_map *map = __bpf_map_get(f); in bpf_map_get() local
1467 struct bpf_map *map = __bpf_map_get(f); in bpf_map_get_with_uref() local
1478 struct bpf_map *__bpf_map_inc_not_zero(struct bpf_map *map, bool uref) in __bpf_map_inc_not_zero()
1491 struct bpf_map *bpf_map_inc_not_zero(struct bpf_map *map) in bpf_map_inc_not_zero()
1501 int __weak bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
1535 struct bpf_map *map; in map_lookup_elem() local
1600 struct bpf_map *map; in map_update_elem() local
1654 struct bpf_map *map; in map_delete_elem() local
1708 struct bpf_map *map; in map_get_next_key() local
1760 int generic_map_delete_batch(struct bpf_map *map, in generic_map_delete_batch()
1816 int generic_map_update_batch(struct bpf_map *map, struct file *map_file, in generic_map_update_batch()
1877 int generic_map_lookup_batch(struct bpf_map *map, in generic_map_lookup_batch()
1977 struct bpf_map *map; in map_lookup_and_delete_elem() local
2066 struct bpf_map *map; in map_freeze() local
4319 struct bpf_map *map; in bpf_map_get_curr_or_next() local
4401 struct bpf_map *map; in bpf_map_get_fd_by_id() local
4439 const struct bpf_map *map; in bpf_map_from_imm() local
4466 const struct bpf_map *map; in bpf_insn_prepare_dump() local
4842 struct bpf_map *map, in bpf_map_get_info_by_fd()
5152 struct bpf_map *map; in bpf_map_do_batch() local
5555 struct bpf_map *map; in bpf_prog_bind_map() local