| /linux-6.15/security/selinux/ss/ |
| H A D | hashtab.c | 40 h->htable = NULL; in hashtab_init() 43 h->htable = kcalloc(size, sizeof(*h->htable), GFP_KERNEL); in hashtab_init() 44 if (!h->htable) in hashtab_init() 74 cur = h->htable[i]; in hashtab_destroy() 83 kfree(h->htable); in hashtab_destroy() 84 h->htable = NULL; in hashtab_destroy() 95 cur = h->htable[i]; in hashtab_map() 117 cur = h->htable[i]; in hashtab_stat() 151 new->htable = kcalloc(orig->size, sizeof(*new->htable), GFP_KERNEL); in hashtab_duplicate() 152 if (!new->htable) in hashtab_duplicate() [all …]
|
| H A D | avtab.c | 131 for (prev = NULL, cur = h->htable[hvalue]; cur; in avtab_insert() 164 for (prev = NULL, cur = h->htable[hvalue]; cur; in avtab_insert_nonunique() 188 for (cur = h->htable[hvalue]; cur; cur = cur->next) { in avtab_search_node() 228 cur = h->htable[i]; in avtab_destroy() 238 kvfree(h->htable); in avtab_destroy() 239 h->htable = NULL; in avtab_destroy() 247 h->htable = NULL; in avtab_init() 258 h->htable = kvcalloc(nslot, sizeof(void *), GFP_KERNEL); in avtab_alloc_common() 259 if (!h->htable) in avtab_alloc_common() 302 cur = h->htable[i]; in avtab_hash_eval() [all …]
|
| H A D | hashtab.h | 33 struct hashtab_node **htable; /* hash table */ member 75 cur = h->htable[hvalue]; in hashtab_insert() 87 return __hashtab_insert(h, prev ? &prev->next : &h->htable[hvalue], key, in hashtab_insert() 107 cur = h->htable[hvalue]; in hashtab_search()
|
| H A D | avtab.h | 85 struct avtab_node **htable; member
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | vxlan.c | 43 DECLARE_HASHTABLE(htable, 4); 81 hash_for_each_possible_rcu(vxlan->htable, vxlanp, hlist, port) in mlx5_vxlan_lookup_port() 95 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) in vxlan_lookup_port() 118 hash_add_rcu(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port() 160 hash_init(vxlan->htable); in mlx5_vxlan_create() 174 WARN_ON(!hash_empty(vxlan->htable)); in mlx5_vxlan_destroy() 188 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_reset_to_default()
|
| /linux-6.15/arch/powerpc/crypto/ |
| H A D | ghash.c | 28 void gcm_init_p8(u128 htable[16], const u64 Xi[2]); 29 void gcm_gmult_p8(u64 Xi[2], const u128 htable[16]); 30 void gcm_ghash_p8(u64 Xi[2], const u128 htable[16], 35 u128 htable[16]; member 66 gcm_init_p8(ctx->htable, (const u64 *) key); in p8_ghash_setkey() 83 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_block() 102 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_blocks()
|
| H A D | aes-gcm-p10-glue.c | 42 asmlinkage void gcm_init_htable(unsigned char htable[], unsigned char Xi[]);
|
| /linux-6.15/fs/smb/client/compress/ |
| H A D | lz77.c | 138 u64 *htable; in lz77_compress() local 147 htable = kvcalloc(LZ77_HASH_SIZE, sizeof(*htable), GFP_KERNEL); in lz77_compress() 148 if (!htable) in lz77_compress() 158 wnd = src + htable[hash]; in lz77_compress() 159 htable[hash] = srcp - src; in lz77_compress() 229 kvfree(htable); in lz77_compress()
|
| /linux-6.15/net/netfilter/ |
| H A D | xt_hashlimit.c | 1055 __acquires(htable->lock) in dl_seq_start() 1060 spin_lock_bh(&htable->lock); in dl_seq_start() 1061 if (*pos >= htable->cfg.size) in dl_seq_start() 1078 if (*pos >= htable->cfg.size) { in dl_seq_next() 1086 __releases(htable->lock) in dl_seq_stop() 1093 spin_unlock_bh(&htable->lock); in dl_seq_stop() 1178 if (!hlist_empty(&htable->hash[*bucket])) { in dl_seq_show_v2() 1180 if (dl_seq_real_show_v2(ent, htable->family, s)) in dl_seq_show_v2() 1192 if (!hlist_empty(&htable->hash[*bucket])) { in dl_seq_show_v1() 1206 if (!hlist_empty(&htable->hash[*bucket])) { in dl_seq_show() [all …]
|
| /linux-6.15/net/netfilter/ipset/ |
| H A D | ip_set_hash_gen.h | 82 struct htable { struct 400 struct htable *t; in mtype_flush() 562 struct htable *t; in mtype_gc() 811 const struct htable *t; in mtype_ext_size() 843 struct htable *t; in mtype_add() 1038 struct htable *t; in mtype_del() 1219 struct htable *t; in mtype_test() 1267 const struct htable *t; in mtype_head() 1332 struct htable *t; in mtype_uref() 1356 const struct htable *t; in mtype_list() [all …]
|
| /linux-6.15/lib/842/ |
| H A D | 842_compress.c | 114 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); \
|
| /linux-6.15/security/integrity/ima/ |
| H A D | Kconfig | 319 bool "Disable htable to allow measurement of duplicate records" 322 This option disables htable to allow measurement of duplicate records.
|