Lines Matching refs:bpf_map

80 static struct bpf_map *array_map_alloc(union bpf_attr *attr)
163 static void *array_map_lookup_elem(struct bpf_map *map, void *key)
174 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm,
188 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm,
205 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
238 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key)
249 static void *percpu_array_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu)
263 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value)
291 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key)
310 static long array_map_update_elem(struct bpf_map *map, void *key, void *value,
349 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value,
389 static long array_map_delete_elem(struct bpf_map *map, void *key)
399 static void array_map_free_timers(struct bpf_map *map)
413 static void array_map_free(struct bpf_map *map)
444 static void array_map_seq_show_elem(struct bpf_map *map, void *key,
465 static void percpu_array_map_seq_show_elem(struct bpf_map *map, void *key,
488 static int array_map_check_btf(const struct bpf_map *map,
520 static int array_map_mmap(struct bpf_map *map, struct vm_area_struct *vma)
536 static bool array_map_meta_equal(const struct bpf_map *meta0,
537 const struct bpf_map *meta1)
546 struct bpf_map *map;
554 struct bpf_map *map = info->map;
573 struct bpf_map *map = info->map;
593 struct bpf_map *map = info->map;
644 struct bpf_map *map = aux->map;
689 static long bpf_for_each_array_elem(struct bpf_map *map, bpf_callback_t callback_fn,
724 static u64 array_map_mem_usage(const struct bpf_map *map)
804 static void fd_array_map_free(struct bpf_map *map)
816 static void *fd_array_map_lookup_elem(struct bpf_map *map, void *key)
822 int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value)
842 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
874 static long __fd_array_map_delete_elem(struct bpf_map *map, void *key, bool need_defer)
900 static long fd_array_map_delete_elem(struct bpf_map *map, void *key)
905 static void *prog_fd_array_get_ptr(struct bpf_map *map,
921 static void prog_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer)
933 static void bpf_fd_array_map_clear(struct bpf_map *map, bool need_defer)
942 static void prog_array_map_seq_show_elem(struct bpf_map *map, void *key,
970 static int prog_array_map_poke_track(struct bpf_map *map,
1003 static void prog_array_map_poke_untrack(struct bpf_map *map,
1027 static void prog_array_map_poke_run(struct bpf_map *map, u32 key,
1078 struct bpf_map *map = container_of(work, struct bpf_array_aux,
1084 static void prog_array_map_clear(struct bpf_map *map)
1092 static struct bpf_map *prog_array_map_alloc(union bpf_attr *attr)
1095 struct bpf_map *map;
1117 static void prog_array_map_free(struct bpf_map *map)
1184 static void *perf_event_fd_array_get_ptr(struct bpf_map *map,
1210 static void perf_event_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer)
1216 static void perf_event_fd_array_release(struct bpf_map *map,
1235 static void perf_event_fd_array_map_free(struct bpf_map *map)
1259 static void *cgroup_fd_array_get_ptr(struct bpf_map *map,
1266 static void cgroup_fd_array_put_ptr(struct bpf_map *map, void *ptr, bool need_defer)
1272 static void cgroup_fd_array_free(struct bpf_map *map)
1294 static struct bpf_map *array_of_map_alloc(union bpf_attr *attr)
1296 struct bpf_map *map, *inner_map_meta;
1313 static void array_of_map_free(struct bpf_map *map)
1323 static void *array_of_map_lookup_elem(struct bpf_map *map, void *key)
1325 struct bpf_map **inner_map = array_map_lookup_elem(map, key);
1333 static int array_of_map_gen_lookup(struct bpf_map *map,