Home
last modified time | relevance | path

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

/Linux-v5.4/security/selinux/ss/
Dhashtab.c30 p->htable = kmalloc_array(size, sizeof(*p->htable), GFP_KERNEL); in hashtab_create()
31 if (!p->htable) { in hashtab_create()
37 p->htable[i] = NULL; in hashtab_create()
54 cur = h->htable[hvalue]; in hashtab_insert()
72 newnode->next = h->htable[hvalue]; in hashtab_insert()
73 h->htable[hvalue] = newnode; in hashtab_insert()
89 cur = h->htable[hvalue]; in hashtab_search()
108 cur = h->htable[i]; in hashtab_destroy()
114 h->htable[i] = NULL; in hashtab_destroy()
117 kfree(h->htable); in hashtab_destroy()
[all …]
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()
304 kvfree(h->htable); in avtab_init()
305 h->htable = NULL; in avtab_init()
[all …]
Dhashtab.h23 struct hashtab_node **htable; /* hash table */ member
Davtab.h84 struct avtab_node **htable; member
/Linux-v5.4/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()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dvxlan.c45 DECLARE_HASHTABLE(htable, 4);
88 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) { in mlx5_vxlan_lookup_port_locked()
144 hash_add(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port()
207 hash_init(vxlan->htable); in mlx5_vxlan_create()
225 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_destroy()
/Linux-v5.4/net/netfilter/
Dxt_hashlimit.c1061 __acquires(htable->lock) in dl_seq_start()
1063 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_start() local
1066 spin_lock_bh(&htable->lock); in dl_seq_start()
1067 if (*pos >= htable->cfg.size) in dl_seq_start()
1080 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_next() local
1084 if (*pos >= htable->cfg.size) { in dl_seq_next()
1092 __releases(htable->lock) in dl_seq_stop()
1094 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_stop() local
1099 spin_unlock_bh(&htable->lock); in dl_seq_stop()
1180 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_show_v2() local
[all …]
/Linux-v5.4/net/netfilter/ipset/
Dip_set_hash_gen.h76 struct htable { struct
107 if ((((size_t)-1) - sizeof(struct htable)) / sizeof(struct hbucket *) in htable_size()
111 return hsize * sizeof(struct hbucket *) + sizeof(struct htable); in htable_size()
277 struct htable __rcu *table; /* the hash table */
346 mtype_ahash_memsize(const struct htype *h, const struct htable *t) in mtype_ahash_memsize()
370 struct htable *t; in mtype_flush()
394 mtype_ahash_destroy(struct ip_set *set, struct htable *t, bool ext_destroy) in mtype_ahash_destroy()
461 struct htable *t; in mtype_expire()
548 struct htable *t, *orig; in mtype_resize()
697 struct htable *t; in mtype_add()
[all …]
/Linux-v5.4/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); \