Lines Matching refs:bpf_map

109 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr)  in find_and_alloc_map()
113 struct bpf_map *map; in find_and_alloc_map()
162 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr()
201 static int bpf_map_init_memlock(struct bpf_map *map) in bpf_map_init_memlock()
215 static void bpf_map_release_memlock(struct bpf_map *map) in bpf_map_release_memlock()
222 int bpf_map_charge_memlock(struct bpf_map *map, u32 pages) in bpf_map_charge_memlock()
233 void bpf_map_uncharge_memlock(struct bpf_map *map, u32 pages) in bpf_map_uncharge_memlock()
239 static int bpf_map_alloc_id(struct bpf_map *map) in bpf_map_alloc_id()
257 void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock) in bpf_map_free_id()
286 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred()
294 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref()
305 static void __bpf_map_put(struct bpf_map *map, bool do_idr_lock) in __bpf_map_put()
316 void bpf_map_put(struct bpf_map *map) in bpf_map_put()
322 void bpf_map_put_with_uref(struct bpf_map *map) in bpf_map_put_with_uref()
330 struct bpf_map *map = filp->private_data; in bpf_map_release()
342 const struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo()
405 int bpf_map_new_fd(struct bpf_map *map, int flags) in bpf_map_new_fd()
459 int map_check_no_btf(const struct bpf_map *map, in map_check_no_btf()
466 static int map_check_btf(const struct bpf_map *map, const struct btf *btf, in map_check_btf()
492 struct bpf_map *map; in map_create()
586 struct bpf_map *__bpf_map_get(struct fd f) in __bpf_map_get()
601 struct bpf_map *bpf_map_inc(struct bpf_map *map, bool uref) in bpf_map_inc()
613 struct bpf_map *bpf_map_get_with_uref(u32 ufd) in bpf_map_get_with_uref()
616 struct bpf_map *map; in bpf_map_get_with_uref()
629 static struct bpf_map *bpf_map_inc_not_zero(struct bpf_map *map, in bpf_map_inc_not_zero()
650 int __weak bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
663 struct bpf_map *map; in map_lookup_elem()
751 struct bpf_map *map; in map_update_elem()
850 struct bpf_map *map; in map_delete_elem()
901 struct bpf_map *map; in map_get_next_key()
1823 struct bpf_map *map; in bpf_map_get_fd_by_id()
1857 static const struct bpf_map *bpf_map_from_imm(const struct bpf_prog *prog, in bpf_map_from_imm()
1870 const struct bpf_map *map; in bpf_insn_prepare_dump()
2095 static int bpf_map_get_info_by_fd(struct bpf_map *map, in bpf_map_get_info_by_fd()