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()
313 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_update_elem()
352 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_percpu_array_update()
394 static void *array_map_vmalloc_addr(struct bpf_array *array) in array_map_vmalloc_addr()
401 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_free_timers()
415 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_free()
468 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_seq_show_elem()
522 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_mmap()
555 struct bpf_array *array; in bpf_array_map_seq_start()
563 array = container_of(map, struct bpf_array, map); in bpf_array_map_seq_start()
574 struct bpf_array *array; in bpf_array_map_seq_next()
582 array = container_of(map, struct bpf_array, map); in bpf_array_map_seq_next()
594 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_array_map_seq_show()
645 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_iter_init_array_map()
693 struct bpf_array *array; in bpf_for_each_array_elem()
702 array = container_of(map, struct bpf_array, map); in bpf_for_each_array_elem()
726 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_mem_usage()
746 BTF_ID_LIST_SINGLE(array_map_btf_ids, struct, bpf_array)
806 struct bpf_array *array = container_of(map, struct bpf_array, map); in fd_array_map_free()
845 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_fd_array_map_update_elem()
876 struct bpf_array *array = container_of(map, struct bpf_array, map); in fd_array_map_delete_elem()
929 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_fd_array_map_clear()
971 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_track()
1003 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_untrack()
1023 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_run()
1118 struct bpf_array_aux *aux = container_of(map, struct bpf_array, in prog_array_map_clear()
1143 container_of(map, struct bpf_array, map)->aux = aux; in prog_array_map_alloc()
1154 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_free()
1250 struct bpf_array *array = container_of(map, struct bpf_array, map); in perf_event_fd_array_release()
1367 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_of_map_gen_lookup()
1374 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_of_map_gen_lookup()