Searched refs:htab_elem (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/kernel/bpf/ |
D | hashtab.c | 41 struct htab_elem *__percpu *extra_elems; 49 struct htab_elem { struct 87 static inline void htab_elem_set_ptr(struct htab_elem *l, u32 key_size, in htab_elem_set_ptr() argument 93 static inline void __percpu *htab_elem_get_ptr(struct htab_elem *l, u32 key_size) in htab_elem_get_ptr() 98 static void *fd_htab_map_get_ptr(const struct bpf_map *map, struct htab_elem *l) in fd_htab_map_get_ptr() 103 static struct htab_elem *get_htab_elem(struct bpf_htab *htab, int i) in get_htab_elem() 105 return (struct htab_elem *) (htab->elems + i * htab->elem_size); in get_htab_elem() 127 static struct htab_elem *prealloc_lru_pop(struct bpf_htab *htab, void *key, in prealloc_lru_pop() 131 struct htab_elem *l; in prealloc_lru_pop() 134 l = container_of(node, struct htab_elem, lru_node); in prealloc_lru_pop() [all …]
|
D | sockmap.c | 79 struct htab_elem { struct 95 struct htab_elem __rcu *hash_link; argument 268 static struct htab_elem *lookup_elem_raw(struct hlist_head *head, in lookup_elem_raw() 271 struct htab_elem *l; in lookup_elem_raw() 291 static void free_htab_elem(struct bpf_htab *htab, struct htab_elem *l) in free_htab_elem() 343 struct htab_elem *link = rcu_dereference(e->hash_link); in bpf_tcp_remove() 346 struct htab_elem *l; in bpf_tcp_remove() 1724 struct htab_elem *hash_link) in smap_list_hash_remove() 1730 struct htab_elem *c = rcu_dereference(e->hash_link); in smap_list_hash_remove() 2203 htab->elem_size = sizeof(struct htab_elem) + in sock_hash_alloc() [all …]
|