Lines Matching refs:bpf_map
93 struct bpf_map map;
221 static void *fd_htab_map_get_ptr(const struct bpf_map *map, struct htab_elem *l) in fd_htab_map_get_ptr()
462 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc()
622 static void *__htab_map_lookup_elem(struct bpf_map *map, void *key) in __htab_map_lookup_elem()
643 static void *htab_map_lookup_elem(struct bpf_map *map, void *key) in htab_map_lookup_elem()
664 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup()
670 (void *(*)(struct bpf_map *map, void *key))NULL)); in htab_map_gen_lookup()
679 static __always_inline void *__htab_lru_map_lookup_elem(struct bpf_map *map, in __htab_lru_map_lookup_elem()
693 static void *htab_lru_map_lookup_elem(struct bpf_map *map, void *key) in htab_lru_map_lookup_elem()
698 static void *htab_lru_map_lookup_elem_sys(struct bpf_map *map, void *key) in htab_lru_map_lookup_elem_sys()
703 static int htab_lru_map_gen_lookup(struct bpf_map *map, in htab_lru_map_gen_lookup()
711 (void *(*)(struct bpf_map *map, void *key))NULL)); in htab_lru_map_gen_lookup()
770 static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in htab_map_get_next_key()
846 struct bpf_map *map = &htab->map; in htab_put_fd_value()
1019 static int htab_map_update_elem(struct bpf_map *map, void *key, void *value, in htab_map_update_elem()
1121 static int htab_lru_map_update_elem(struct bpf_map *map, void *key, void *value, in htab_lru_map_update_elem()
1188 static int __htab_percpu_map_update_elem(struct bpf_map *map, void *key, in __htab_percpu_map_update_elem()
1243 static int __htab_lru_percpu_map_update_elem(struct bpf_map *map, void *key, in __htab_lru_percpu_map_update_elem()
1310 static int htab_percpu_map_update_elem(struct bpf_map *map, void *key, in htab_percpu_map_update_elem()
1316 static int htab_lru_percpu_map_update_elem(struct bpf_map *map, void *key, in htab_lru_percpu_map_update_elem()
1324 static int htab_map_delete_elem(struct bpf_map *map, void *key) in htab_map_delete_elem()
1360 static int htab_lru_map_delete_elem(struct bpf_map *map, void *key) in htab_lru_map_delete_elem()
1429 static void htab_map_free_timers(struct bpf_map *map) in htab_map_free_timers()
1442 static void htab_map_free(struct bpf_map *map) in htab_map_free()
1469 static void htab_map_seq_show_elem(struct bpf_map *map, void *key, in htab_map_seq_show_elem()
1490 static int __htab_map_lookup_and_delete_elem(struct bpf_map *map, void *key, in __htab_map_lookup_and_delete_elem()
1554 static int htab_map_lookup_and_delete_elem(struct bpf_map *map, void *key, in htab_map_lookup_and_delete_elem()
1561 static int htab_percpu_map_lookup_and_delete_elem(struct bpf_map *map, in htab_percpu_map_lookup_and_delete_elem()
1569 static int htab_lru_map_lookup_and_delete_elem(struct bpf_map *map, void *key, in htab_lru_map_lookup_and_delete_elem()
1576 static int htab_lru_percpu_map_lookup_and_delete_elem(struct bpf_map *map, in htab_lru_percpu_map_lookup_and_delete_elem()
1585 __htab_map_lookup_and_delete_batch(struct bpf_map *map, in __htab_map_lookup_and_delete_batch()
1801 htab_percpu_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_percpu_map_lookup_batch()
1809 htab_percpu_map_lookup_and_delete_batch(struct bpf_map *map, in htab_percpu_map_lookup_and_delete_batch()
1818 htab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_map_lookup_batch()
1826 htab_map_lookup_and_delete_batch(struct bpf_map *map, in htab_map_lookup_and_delete_batch()
1835 htab_lru_percpu_map_lookup_batch(struct bpf_map *map, in htab_lru_percpu_map_lookup_batch()
1844 htab_lru_percpu_map_lookup_and_delete_batch(struct bpf_map *map, in htab_lru_percpu_map_lookup_and_delete_batch()
1853 htab_lru_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_lru_map_lookup_batch()
1861 htab_lru_map_lookup_and_delete_batch(struct bpf_map *map, in htab_lru_map_lookup_and_delete_batch()
1870 struct bpf_map *map;
1961 struct bpf_map *map = info->map; in __bpf_hash_map_seq_show()
2012 struct bpf_map *map = aux->map; in bpf_iter_init_hash_map()
2052 static int bpf_for_each_hash_elem(struct bpf_map *map, void *callback_fn, in bpf_for_each_hash_elem()
2155 static void *htab_percpu_map_lookup_elem(struct bpf_map *map, void *key) in htab_percpu_map_lookup_elem()
2165 static void *htab_lru_percpu_map_lookup_elem(struct bpf_map *map, void *key) in htab_lru_percpu_map_lookup_elem()
2177 int bpf_percpu_hash_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_hash_copy()
2209 int bpf_percpu_hash_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_hash_update()
2227 static void htab_percpu_map_seq_show_elem(struct bpf_map *map, void *key, in htab_percpu_map_seq_show_elem()
2303 static void fd_htab_map_free(struct bpf_map *map) in fd_htab_map_free()
2325 int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) in bpf_fd_htab_map_lookup_elem()
2345 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_htab_map_update_elem()
2363 static struct bpf_map *htab_of_map_alloc(union bpf_attr *attr) in htab_of_map_alloc()
2365 struct bpf_map *map, *inner_map_meta; in htab_of_map_alloc()
2382 static void *htab_of_map_lookup_elem(struct bpf_map *map, void *key) in htab_of_map_lookup_elem()
2384 struct bpf_map **inner_map = htab_map_lookup_elem(map, key); in htab_of_map_lookup_elem()
2392 static int htab_of_map_gen_lookup(struct bpf_map *map, in htab_of_map_gen_lookup()
2399 (void *(*)(struct bpf_map *map, void *key))NULL)); in htab_of_map_gen_lookup()
2410 static void htab_of_map_free(struct bpf_map *map) in htab_of_map_free()