Home
last modified time | relevance | path

Searched refs:htable (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/security/selinux/ss/
Dhashtab.c38 h->htable = NULL; in hashtab_init()
41 h->htable = kcalloc(size, sizeof(*h->htable), GFP_KERNEL); in hashtab_init()
42 if (!h->htable) in hashtab_init()
72 cur = h->htable[i]; in hashtab_destroy()
78 h->htable[i] = NULL; in hashtab_destroy()
81 kfree(h->htable); in hashtab_destroy()
82 h->htable = NULL; in hashtab_destroy()
94 cur = h->htable[i]; in hashtab_map()
114 cur = h->htable[i]; in hashtab_stat()
143 new->htable = kcalloc(orig->size, sizeof(*new->htable), GFP_KERNEL); in hashtab_duplicate()
[all …]
Dhashtab.h33 struct hashtab_node **htable; /* hash table */ member
74 cur = h->htable[hvalue]; in hashtab_insert()
86 return __hashtab_insert(h, prev ? &prev->next : &h->htable[hvalue], in hashtab_insert()
106 cur = h->htable[hvalue]; in hashtab_search()
Davtab.c96 struct avtab_node **n = &h->htable[hvalue]; in avtab_insert_node()
116 for (prev = NULL, cur = h->htable[hvalue]; in avtab_insert()
160 for (prev = NULL, cur = h->htable[hvalue]; in avtab_insert_nonunique()
191 for (cur = h->htable[hvalue]; cur; in avtab_search()
227 for (cur = h->htable[hvalue]; cur; in avtab_search_node()
286 cur = h->htable[i]; in avtab_destroy()
296 kvfree(h->htable); in avtab_destroy()
297 h->htable = NULL; in avtab_destroy()
305 h->htable = NULL; in avtab_init()
316 h->htable = kvcalloc(nslot, sizeof(void *), GFP_KERNEL); in avtab_alloc_common()
[all …]
Davtab.h84 struct avtab_node **htable; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dvxlan.c44 DECLARE_HASHTABLE(htable, 4);
82 hash_for_each_possible_rcu(vxlan->htable, vxlanp, hlist, port) in mlx5_vxlan_lookup_port()
96 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) in vxlan_lookup_port()
119 hash_add_rcu(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port()
161 hash_init(vxlan->htable); in mlx5_vxlan_create()
175 WARN_ON(!hash_empty(vxlan->htable)); in mlx5_vxlan_destroy()
189 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_reset_to_default()
/kernel/linux/linux-5.10/drivers/crypto/vmx/
Dghash.c27 void gcm_init_p8(u128 htable[16], const u64 Xi[2]);
28 void gcm_gmult_p8(u64 Xi[2], const u128 htable[16]);
29 void gcm_ghash_p8(u64 Xi[2], const u128 htable[16],
34 u128 htable[16]; member
65 gcm_init_p8(ctx->htable, (const u64 *) key); in p8_ghash_setkey()
82 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_block()
101 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_blocks()
/kernel/linux/linux-5.10/net/netfilter/
Dxt_hashlimit.c1053 __acquires(htable->lock) in dl_seq_start()
1055 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_start() local
1058 spin_lock_bh(&htable->lock); in dl_seq_start()
1059 if (*pos >= htable->cfg.size) in dl_seq_start()
1072 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_next() local
1076 if (*pos >= htable->cfg.size) { in dl_seq_next()
1084 __releases(htable->lock) in dl_seq_stop()
1086 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_stop() local
1091 spin_unlock_bh(&htable->lock); in dl_seq_stop()
1172 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_show_v2() local
[all …]
/kernel/linux/linux-5.10/net/netfilter/ipset/
Dip_set_hash_gen.h106 struct htable { struct
139 if ((INT_MAX - sizeof(struct htable)) / sizeof(struct hbucket *) in htable_size()
143 return hsize * sizeof(struct hbucket *) + sizeof(struct htable); in htable_size()
303 struct htable __rcu *table; /* the hash table */
388 mtype_ahash_memsize(const struct htype *h, const struct htable *t) in mtype_ahash_memsize()
412 struct htable *t; in mtype_flush()
441 mtype_ahash_destroy(struct ip_set *set, struct htable *t, bool ext_destroy) in mtype_ahash_destroy()
499 mtype_gc_do(struct ip_set *set, struct htype *h, struct htable *t, u32 r) in mtype_gc_do()
577 struct htable *t; in mtype_gc()
631 struct htable *t, *orig; in mtype_resize()
[all …]
/kernel/linux/linux-5.10/lib/842/
D842_compress.c114 hash_init((p)->htable##b); \
125 hash_for_each_possible(p->htable##b, _n, node, p->data##b[n]) { \
147 hash_add((p)->htable##b, &_n->node, _n->data); \