Lines Matching refs:bpf_map

83 static struct bpf_map *array_map_alloc(union bpf_attr *attr)  in array_map_alloc()
166 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
177 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr()
191 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta()
208 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
241 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
253 static int percpu_array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in percpu_array_map_gen_lookup()
284 static void *percpu_array_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu) in percpu_array_map_lookup_percpu_elem()
298 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
326 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
345 static long array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
384 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update()
424 static long array_map_delete_elem(struct bpf_map *map, void *key) in array_map_delete_elem()
434 static void array_map_free_timers_wq(struct bpf_map *map) in array_map_free_timers_wq()
453 static void array_map_free(struct bpf_map *map) in array_map_free()
484 static void array_map_seq_show_elem(struct bpf_map *map, void *key, in array_map_seq_show_elem()
505 static void percpu_array_map_seq_show_elem(struct bpf_map *map, void *key, in percpu_array_map_seq_show_elem()
528 static int array_map_check_btf(const struct bpf_map *map, in array_map_check_btf()
555 static int array_map_mmap(struct bpf_map *map, struct vm_area_struct *vma) in array_map_mmap()
571 static bool array_map_meta_equal(const struct bpf_map *meta0, in array_map_meta_equal()
572 const struct bpf_map *meta1) in array_map_meta_equal()
581 struct bpf_map *map;
589 struct bpf_map *map = info->map; in bpf_array_map_seq_start()
608 struct bpf_map *map = info->map; in bpf_array_map_seq_next()
628 struct bpf_map *map = info->map; in __bpf_array_map_seq_show()
679 struct bpf_map *map = aux->map; in bpf_iter_init_array_map()
724 static long bpf_for_each_array_elem(struct bpf_map *map, bpf_callback_t callback_fn, in bpf_for_each_array_elem()
757 static u64 array_map_mem_usage(const struct bpf_map *map) in array_map_mem_usage()
838 static void fd_array_map_free(struct bpf_map *map) in fd_array_map_free()
850 static void *fd_array_map_lookup_elem(struct bpf_map *map, void *key) in fd_array_map_lookup_elem()
856 int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) in bpf_fd_array_map_lookup_elem()
876 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_array_map_update_elem()
908 static long __fd_array_map_delete_elem(struct bpf_map *map, void *key, bool need_defer) in __fd_array_map_delete_elem()
934 static long fd_array_map_delete_elem(struct bpf_map *map, void *key) in fd_array_map_delete_elem()
939 static void *prog_fd_array_get_ptr(struct bpf_map *map, in prog_fd_array_get_ptr()
972 static void prog_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) in prog_fd_array_put_ptr()
989 static void bpf_fd_array_map_clear(struct bpf_map *map, bool need_defer) in bpf_fd_array_map_clear()
998 static void prog_array_map_seq_show_elem(struct bpf_map *map, void *key, in prog_array_map_seq_show_elem()
1026 static int prog_array_map_poke_track(struct bpf_map *map, in prog_array_map_poke_track()
1059 static void prog_array_map_poke_untrack(struct bpf_map *map, in prog_array_map_poke_untrack()
1083 static void prog_array_map_poke_run(struct bpf_map *map, u32 key, in prog_array_map_poke_run()
1134 struct bpf_map *map = container_of(work, struct bpf_array_aux, in prog_array_map_clear_deferred()
1140 static void prog_array_map_clear(struct bpf_map *map) in prog_array_map_clear()
1148 static struct bpf_map *prog_array_map_alloc(union bpf_attr *attr) in prog_array_map_alloc()
1151 struct bpf_map *map; in prog_array_map_alloc()
1173 static void prog_array_map_free(struct bpf_map *map) in prog_array_map_free()
1240 static void *perf_event_fd_array_get_ptr(struct bpf_map *map, in perf_event_fd_array_get_ptr()
1266 static void perf_event_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) in perf_event_fd_array_put_ptr()
1272 static void perf_event_fd_array_release(struct bpf_map *map, in perf_event_fd_array_release()
1291 static void perf_event_fd_array_map_free(struct bpf_map *map) in perf_event_fd_array_map_free()
1315 static void *cgroup_fd_array_get_ptr(struct bpf_map *map, in cgroup_fd_array_get_ptr()
1322 static void cgroup_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) in cgroup_fd_array_put_ptr()
1328 static void cgroup_fd_array_free(struct bpf_map *map) in cgroup_fd_array_free()
1350 static struct bpf_map *array_of_map_alloc(union bpf_attr *attr) in array_of_map_alloc()
1352 struct bpf_map *map, *inner_map_meta; in array_of_map_alloc()
1369 static void array_of_map_free(struct bpf_map *map) in array_of_map_free()
1379 static void *array_of_map_lookup_elem(struct bpf_map *map, void *key) in array_of_map_lookup_elem()
1381 struct bpf_map **inner_map = array_map_lookup_elem(map, key); in array_of_map_lookup_elem()
1389 static int array_of_map_gen_lookup(struct bpf_map *map, in array_of_map_gen_lookup()