Lines Matching refs:key
175 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem() argument
178 u32 index = *(u32 *)key; in array_map_lookup_elem()
250 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem() argument
253 u32 index = *(u32 *)key; in percpu_array_map_lookup_elem()
261 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy() argument
264 u32 index = *(u32 *)key; in bpf_percpu_array_copy()
288 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key() argument
291 u32 index = key ? *(u32 *)key : U32_MAX; in array_map_get_next_key()
307 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem() argument
311 u32 index = *(u32 *)key; in array_map_update_elem()
344 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update() argument
348 u32 index = *(u32 *)key; in bpf_percpu_array_update()
383 static int array_map_delete_elem(struct bpf_map *map, void *key) in array_map_delete_elem() argument
407 static void array_map_seq_show_elem(struct bpf_map *map, void *key, in array_map_seq_show_elem() argument
414 value = array_map_lookup_elem(map, key); in array_map_seq_show_elem()
421 seq_printf(m, "%u: ", *(u32 *)key); in array_map_seq_show_elem()
428 static void percpu_array_map_seq_show_elem(struct bpf_map *map, void *key, in percpu_array_map_seq_show_elem() argument
432 u32 index = *(u32 *)key; in percpu_array_map_seq_show_elem()
438 seq_printf(m, "%u: {\n", *(u32 *)key); in percpu_array_map_seq_show_elem()
571 ctx.key = &info->index; in __bpf_array_map_seq_show()
713 static void *fd_array_map_lookup_elem(struct bpf_map *map, void *key) in fd_array_map_lookup_elem() argument
719 int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) in bpf_fd_array_map_lookup_elem() argument
728 elem = array_map_lookup_elem(map, key); in bpf_fd_array_map_lookup_elem()
740 void *key, void *value, u64 map_flags) in bpf_fd_array_map_update_elem() argument
744 u32 index = *(u32 *)key, ufd; in bpf_fd_array_map_update_elem()
771 static int fd_array_map_delete_elem(struct bpf_map *map, void *key) in fd_array_map_delete_elem() argument
775 u32 index = *(u32 *)key; in fd_array_map_delete_elem()
834 static void prog_array_map_seq_show_elem(struct bpf_map *map, void *key, in prog_array_map_seq_show_elem() argument
842 elem = array_map_lookup_elem(map, key); in prog_array_map_seq_show_elem()
846 seq_printf(m, "%u: ", *(u32 *)key); in prog_array_map_seq_show_elem()
913 static void prog_array_map_poke_run(struct bpf_map *map, u32 key, in prog_array_map_poke_run() argument
966 poke->tail_call.key != key) in prog_array_map_poke_run()
1256 static void *array_of_map_lookup_elem(struct bpf_map *map, void *key) in array_of_map_lookup_elem() argument
1258 struct bpf_map **inner_map = array_map_lookup_elem(map, key); in array_of_map_lookup_elem()