Lines Matching refs:bpf_array

22 static void bpf_array_free_percpu(struct bpf_array *array)  in bpf_array_free_percpu()
32 static int bpf_array_alloc_percpu(struct bpf_array *array) in bpf_array_alloc_percpu()
87 struct bpf_array *array; in array_map_alloc()
135 array = data + PAGE_ALIGN(sizeof(struct bpf_array)) in array_map_alloc()
136 - offsetof(struct bpf_array, value); in array_map_alloc()
157 static void *array_map_elem_ptr(struct bpf_array* array, u32 index) in array_map_elem_ptr()
165 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem()
177 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_addr()
191 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_meta()
207 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_gen_lookup()
217 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_map_gen_lookup()
240 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_lookup_elem()
251 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_lookup_percpu_elem()
265 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_percpu_array_copy()
293 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_get_next_key()
309 static void check_and_free_fields(struct bpf_array *arr, void *val) in check_and_free_fields()
321 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_update_elem()
360 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_percpu_array_update()
402 static void *array_map_vmalloc_addr(struct bpf_array *array) in array_map_vmalloc_addr()
409 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_free_timers()
423 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_free()
477 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_seq_show_elem()
531 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_mmap()
564 struct bpf_array *array; in bpf_array_map_seq_start()
572 array = container_of(map, struct bpf_array, map); in bpf_array_map_seq_start()
583 struct bpf_array *array; in bpf_array_map_seq_next()
591 array = container_of(map, struct bpf_array, map); in bpf_array_map_seq_next()
603 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_array_map_seq_show()
654 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_iter_init_array_map()
702 struct bpf_array *array; in bpf_for_each_array_elem()
711 array = container_of(map, struct bpf_array, map); in bpf_for_each_array_elem()
733 BTF_ID_LIST_SINGLE(array_map_btf_ids, struct, bpf_array)
791 struct bpf_array *array = container_of(map, struct bpf_array, map); in fd_array_map_free()
830 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_fd_array_map_update_elem()
861 struct bpf_array *array = container_of(map, struct bpf_array, map); in fd_array_map_delete_elem()
914 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_fd_array_map_clear()
956 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_track()
988 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_untrack()
1008 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_run()
1103 struct bpf_array_aux *aux = container_of(map, struct bpf_array, in prog_array_map_clear()
1128 container_of(map, struct bpf_array, map)->aux = aux; in prog_array_map_alloc()
1139 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_free()
1234 struct bpf_array *array = container_of(map, struct bpf_array, map); in perf_event_fd_array_release()
1349 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_of_map_gen_lookup()
1356 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_of_map_gen_lookup()