Lines Matching refs:bpf_htab

88 struct bpf_htab {  struct
131 static inline bool htab_is_prealloc(const struct bpf_htab *htab) in htab_is_prealloc()
136 static void htab_init_buckets(struct bpf_htab *htab) in htab_init_buckets()
166 static bool htab_is_lru(const struct bpf_htab *htab) in htab_is_lru()
172 static bool htab_is_percpu(const struct bpf_htab *htab) in htab_is_percpu()
178 static inline bool is_fd_htab(const struct bpf_htab *htab) in is_fd_htab()
204 static struct htab_elem *get_htab_elem(struct bpf_htab *htab, int i) in get_htab_elem()
213 static bool htab_has_extra_elems(struct bpf_htab *htab) in htab_has_extra_elems()
218 static void htab_free_prealloced_timers_and_wq(struct bpf_htab *htab) in htab_free_prealloced_timers_and_wq()
240 static void htab_free_prealloced_fields(struct bpf_htab *htab) in htab_free_prealloced_fields()
270 static void htab_free_elems(struct bpf_htab *htab) in htab_free_elems()
300 static struct htab_elem *prealloc_lru_pop(struct bpf_htab *htab, void *key, in prealloc_lru_pop()
316 static int prealloc_init(struct bpf_htab *htab) in prealloc_init()
375 static void prealloc_destroy(struct bpf_htab *htab) in prealloc_destroy()
385 static int alloc_extra_elems(struct bpf_htab *htab) in alloc_extra_elems()
478 struct bpf_htab *htab; in htab_map_alloc()
606 static inline struct bucket *__select_bucket(struct bpf_htab *htab, u32 hash) in __select_bucket()
611 static inline struct hlist_nulls_head *select_bucket(struct bpf_htab *htab, u32 hash) in select_bucket()
659 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __htab_map_lookup_elem()
763 static void check_and_free_fields(struct bpf_htab *htab, in check_and_free_fields()
787 struct bpf_htab *htab = arg; in htab_lru_map_delete_node()
820 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_get_next_key()
876 static void htab_elem_free(struct bpf_htab *htab, struct htab_elem *l) in htab_elem_free()
885 static void htab_put_fd_value(struct bpf_htab *htab, struct htab_elem *l) in htab_put_fd_value()
896 static bool is_map_full(struct bpf_htab *htab) in is_map_full()
904 static void inc_elem_count(struct bpf_htab *htab) in inc_elem_count()
914 static void dec_elem_count(struct bpf_htab *htab) in dec_elem_count()
925 static void free_htab_elem(struct bpf_htab *htab, struct htab_elem *l) in free_htab_elem()
939 static void pcpu_copy_value(struct bpf_htab *htab, void __percpu *pptr, in pcpu_copy_value()
956 static void pcpu_init_value(struct bpf_htab *htab, void __percpu *pptr, in pcpu_init_value()
979 static bool fd_htab_map_needs_adjust(const struct bpf_htab *htab) in fd_htab_map_needs_adjust()
984 static struct htab_elem *alloc_htab_elem(struct bpf_htab *htab, void *key, in alloc_htab_elem()
1063 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags()
1081 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_update_elem()
1179 static void htab_lru_push_free(struct bpf_htab *htab, struct htab_elem *elem) in htab_lru_push_free()
1189 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_lru_map_update_elem()
1257 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_update_elem_in_place()
1321 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __htab_lru_percpu_map_update_elem()
1403 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_delete_elem()
1439 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_lru_map_delete_elem()
1473 static void delete_all_elements(struct bpf_htab *htab) in delete_all_elements()
1493 static void htab_free_malloced_timers_and_wq(struct bpf_htab *htab) in htab_free_malloced_timers_and_wq()
1519 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_free_timers_and_wq()
1533 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_free()
1586 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __htab_map_lookup_and_delete_elem()
1683 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __htab_map_lookup_and_delete_batch()
1978 struct bpf_htab *htab;
1988 const struct bpf_htab *htab = info->htab; in bpf_hash_map_seq_find_next()
2134 seq_info->htab = container_of(map, struct bpf_htab, map); in bpf_iter_init_hash_map()
2163 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in bpf_for_each_hash_elem()
2215 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_mem_usage()
2221 u64 usage = sizeof(struct bpf_htab); in htab_map_mem_usage()
2251 BTF_ID_LIST_SINGLE(htab_map_btf_ids, struct, bpf_htab)
2403 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in bpf_percpu_hash_update()
2497 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in fd_htab_map_free()