/Linux-v4.19/security/selinux/ss/ |
D | hashtab.c | 30 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 …]
|
D | sidtab.c | 22 s->htable = kmalloc_array(SIDTAB_SIZE, sizeof(*s->htable), GFP_ATOMIC); in sidtab_init() 23 if (!s->htable) in sidtab_init() 26 s->htable[i] = NULL; in sidtab_init() 44 cur = s->htable[hvalue]; in sidtab_insert() 68 newnode->next = s->htable[hvalue]; in sidtab_insert() 70 s->htable[hvalue] = newnode; in sidtab_insert() 88 cur = s->htable[hvalue]; in sidtab_search_core() 99 cur = s->htable[hvalue]; in sidtab_search_core() 132 cur = s->htable[i]; in sidtab_map() 162 cur = s->htable[i]; in sidtab_search_context() [all …]
|
D | avtab.c | 96 newnode->next = flex_array_get_ptr(h->htable, hvalue); in avtab_insert_node() 97 if (flex_array_put_ptr(h->htable, hvalue, newnode, in avtab_insert_node() 114 if (!h || !h->htable) in avtab_insert() 118 for (prev = NULL, cur = flex_array_get_ptr(h->htable, hvalue); in avtab_insert() 159 if (!h || !h->htable) in avtab_insert_nonunique() 162 for (prev = NULL, cur = flex_array_get_ptr(h->htable, hvalue); in avtab_insert_nonunique() 189 if (!h || !h->htable) in avtab_search() 193 for (cur = flex_array_get_ptr(h->htable, hvalue); cur; in avtab_search() 225 if (!h || !h->htable) in avtab_search_node() 229 for (cur = flex_array_get_ptr(h->htable, hvalue); cur; in avtab_search_node() [all …]
|
D | hashtab.h | 23 struct hashtab_node **htable; /* hash table */ member
|
D | sidtab.h | 26 struct sidtab_node **htable; member
|
D | avtab.h | 87 struct flex_array *htable; member
|
/Linux-v4.19/drivers/crypto/vmx/ |
D | ghash.c | 36 void gcm_init_p8(u128 htable[16], const u64 Xi[2]); 37 void gcm_gmult_p8(u64 Xi[2], const u128 htable[16]); 38 void gcm_ghash_p8(u64 Xi[2], const u128 htable[16], 42 u128 htable[16]; member 120 gcm_init_p8(ctx->htable, (const u64 *) key); in p8_ghash_setkey() 150 gcm_ghash_p8(dctx->shash, ctx->htable, in p8_ghash_update() 164 gcm_ghash_p8(dctx->shash, ctx->htable, src, len); in p8_ghash_update() 194 gcm_ghash_p8(dctx->shash, ctx->htable, in p8_ghash_final()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | vxlan.c | 43 DECLARE_HASHTABLE(htable, 4); 86 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) { in mlx5_vxlan_lookup_port_locked() 142 hash_add(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port() 205 hash_init(vxlan->htable); in mlx5_vxlan_create() 223 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_destroy()
|
/Linux-v4.19/net/netfilter/ |
D | xt_hashlimit.c | 1058 __acquires(htable->lock) in dl_seq_start() 1060 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_start() local 1063 spin_lock_bh(&htable->lock); in dl_seq_start() 1064 if (*pos >= htable->cfg.size) in dl_seq_start() 1077 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_next() local 1081 if (*pos >= htable->cfg.size) { in dl_seq_next() 1089 __releases(htable->lock) in dl_seq_stop() 1091 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_stop() local 1096 spin_unlock_bh(&htable->lock); in dl_seq_stop() 1177 struct xt_hashlimit_htable *htable = PDE_DATA(file_inode(s->file)); in dl_seq_show_v2() local [all …]
|
/Linux-v4.19/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 80 struct htable { struct 111 if ((((size_t)-1) - sizeof(struct htable)) / sizeof(struct hbucket *) in htable_size() 115 return hsize * sizeof(struct hbucket *) + sizeof(struct htable); in htable_size() 281 struct htable __rcu *table; /* the hash table */ 350 mtype_ahash_memsize(const struct htype *h, const struct htable *t) in mtype_ahash_memsize() 374 struct htable *t; in mtype_flush() 398 mtype_ahash_destroy(struct ip_set *set, struct htable *t, bool ext_destroy) in mtype_ahash_destroy() 465 struct htable *t; in mtype_expire() 552 struct htable *t, *orig; in mtype_resize() 701 struct htable *t; in mtype_add() [all …]
|
/Linux-v4.19/lib/842/ |
D | 842_compress.c | 123 hash_init((p)->htable##b); \ 134 hash_for_each_possible(p->htable##b, _n, node, p->data##b[n]) { \ 156 hash_add((p)->htable##b, &_n->node, _n->data); \
|