Lines Matching refs:bpf_htab
33 struct bpf_htab { struct
55 struct bpf_htab *htab; argument
70 static bool htab_is_lru(const struct bpf_htab *htab) in htab_is_lru()
76 static bool htab_is_percpu(const struct bpf_htab *htab) in htab_is_percpu()
82 static bool htab_is_prealloc(const struct bpf_htab *htab) in htab_is_prealloc()
103 static struct htab_elem *get_htab_elem(struct bpf_htab *htab, int i) in get_htab_elem()
108 static void htab_free_elems(struct bpf_htab *htab) in htab_free_elems()
127 static struct htab_elem *prealloc_lru_pop(struct bpf_htab *htab, void *key, in prealloc_lru_pop()
142 static int prealloc_init(struct bpf_htab *htab) in prealloc_init()
200 static void prealloc_destroy(struct bpf_htab *htab) in prealloc_destroy()
210 static int alloc_extra_elems(struct bpf_htab *htab) in alloc_extra_elems()
311 struct bpf_htab *htab; in htab_map_alloc()
413 static inline struct bucket *__select_bucket(struct bpf_htab *htab, u32 hash) in __select_bucket()
418 static inline struct hlist_nulls_head *select_bucket(struct bpf_htab *htab, u32 hash) in select_bucket()
466 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __htab_map_lookup_elem()
563 struct bpf_htab *htab = (struct bpf_htab *)arg; in htab_lru_map_delete_node()
590 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_get_next_key()
646 static void htab_elem_free(struct bpf_htab *htab, struct htab_elem *l) in htab_elem_free()
656 struct bpf_htab *htab = l->htab; in htab_elem_free_rcu()
669 static void free_htab_elem(struct bpf_htab *htab, struct htab_elem *l) in free_htab_elem()
688 static void pcpu_copy_value(struct bpf_htab *htab, void __percpu *pptr, in pcpu_copy_value()
706 static bool fd_htab_map_needs_adjust(const struct bpf_htab *htab) in fd_htab_map_needs_adjust()
712 static u32 htab_size_value(const struct bpf_htab *htab, bool percpu) in htab_size_value()
721 static struct htab_elem *alloc_htab_elem(struct bpf_htab *htab, void *key, in alloc_htab_elem()
796 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags()
814 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_update_elem()
870 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_lru_map_update_elem()
935 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __htab_percpu_map_update_elem()
988 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __htab_lru_percpu_map_update_elem()
1065 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_delete_elem()
1097 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_lru_map_delete_elem()
1128 static void delete_all_elements(struct bpf_htab *htab) in delete_all_elements()
1147 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in htab_map_free()
1240 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in bpf_percpu_hash_copy()
1273 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in bpf_percpu_hash_update()
1317 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in fd_htab_map_free()