Home
last modified time | relevance | path

Searched refs:hashsize (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/fs/nfsd/
Dnfscache.c202 unsigned int hashsize; in nfsd_reply_cache_init() local
208 hashsize = nfsd_hashsize(nn->max_drc_entries); in nfsd_reply_cache_init()
209 nn->maskbits = ilog2(hashsize); in nfsd_reply_cache_init()
219 nn->drc_hashtbl = kvzalloc(array_size(hashsize, in nfsd_reply_cache_init()
224 for (i = 0; i < hashsize; i++) { in nfsd_reply_cache_init()
228 nn->drc_hashsize = hashsize; in nfsd_reply_cache_init()
/linux-6.6.21/net/sunrpc/
Dauth.c291 unsigned int hashsize; in rpcauth_init_credcache() local
297 hashsize = 1U << new->hashbits; in rpcauth_init_credcache()
298 new->hashtable = kcalloc(hashsize, sizeof(new->hashtable[0]), GFP_KERNEL); in rpcauth_init_credcache()
383 unsigned int hashsize = 1U << cache->hashbits; in rpcauth_clear_credcache() local
388 for (i = 0; i < hashsize; i++) { in rpcauth_clear_credcache()
/linux-6.6.21/net/sched/
Dsch_drr.c286 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk()
431 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc()
449 for (i = 0; i < q->clhash.hashsize; i++) { in drr_destroy_qdisc()
Dsch_hfsc.c1365 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk()
1490 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_reset_qdisc()
1506 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
1512 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
Dsch_htb.c1003 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset()
1306 for (i = 0; i < q->clhash.hashsize; i++) { in htb_offload_aggregate_stats()
1640 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1650 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
2131 for (i = 0; i < q->clhash.hashsize; i++) { in htb_walk()
Dsch_api.c694 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow()
696 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
703 osize = clhash->hashsize; in qdisc_class_hash_grow()
713 clhash->hashsize = nsize; in qdisc_class_hash_grow()
728 clhash->hashsize = size; in qdisc_class_hash_init()
Dsch_qfq.c671 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk()
1469 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc()
1488 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_destroy_qdisc()
/linux-6.6.21/fs/jffs2/
Dfs.c504 int hashsize = (size_mb * 2) & ~0x3f; in calculate_inocache_hashsize() local
506 if (hashsize < INOCACHE_HASHSIZE_MIN) in calculate_inocache_hashsize()
508 if (hashsize > INOCACHE_HASHSIZE_MAX) in calculate_inocache_hashsize()
511 return hashsize; in calculate_inocache_hashsize()
/linux-6.6.21/drivers/crypto/
Datmel-sha.c477 unsigned int i, hashsize = 0; in atmel_sha_write_ctrl() local
492 hashsize = SHA1_DIGEST_SIZE; in atmel_sha_write_ctrl()
497 hashsize = SHA256_DIGEST_SIZE; in atmel_sha_write_ctrl()
502 hashsize = SHA256_DIGEST_SIZE; in atmel_sha_write_ctrl()
507 hashsize = SHA512_DIGEST_SIZE; in atmel_sha_write_ctrl()
512 hashsize = SHA512_DIGEST_SIZE; in atmel_sha_write_ctrl()
533 for (i = 0; i < hashsize / sizeof(u32); ++i) in atmel_sha_write_ctrl()
926 unsigned int i, hashsize; in atmel_sha_copy_hash() local
930 hashsize = SHA1_DIGEST_SIZE; in atmel_sha_copy_hash()
935 hashsize = SHA256_DIGEST_SIZE; in atmel_sha_copy_hash()
[all …]
/linux-6.6.21/net/netfilter/
Dnf_conntrack_core.c2587 int nf_conntrack_hash_resize(unsigned int hashsize) in nf_conntrack_hash_resize() argument
2595 if (!hashsize) in nf_conntrack_hash_resize()
2598 hash = nf_ct_alloc_hashtable(&hashsize, 1); in nf_conntrack_hash_resize()
2604 if (old_size == hashsize) { in nf_conntrack_hash_resize()
2631 &h->tuple, zone_id, hashsize); in nf_conntrack_hash_resize()
2638 nf_conntrack_htable_size = hashsize; in nf_conntrack_hash_resize()
2653 unsigned int hashsize; in nf_conntrack_set_hashsize() local
2663 rc = kstrtouint(val, 0, &hashsize); in nf_conntrack_set_hashsize()
2667 return nf_conntrack_hash_resize(hashsize); in nf_conntrack_set_hashsize()
Dnf_conntrack_proto.c695 module_param_call(hashsize, nf_conntrack_set_hashsize, param_get_uint,
/linux-6.6.21/drivers/net/
Dgtp.c1052 int hashsize, err; in gtp_newlink() local
1057 hashsize = 1024; in gtp_newlink()
1059 hashsize = nla_get_u32(data[IFLA_GTP_PDP_HASHSIZE]); in gtp_newlink()
1060 if (!hashsize) in gtp_newlink()
1061 hashsize = 1024; in gtp_newlink()
1078 err = gtp_hashtable_new(gtp, hashsize); in gtp_newlink()
/linux-6.6.21/kernel/futex/
Dcore.c51 unsigned long hashsize; member
54 #define futex_hashsize (__futex_data.hashsize)
/linux-6.6.21/include/net/netfilter/
Dnf_conntrack.h324 int nf_conntrack_hash_resize(unsigned int hashsize);
/linux-6.6.21/net/netfilter/ipset/
Dip_set_hash_gen.h1460 u32 hashsize = IPSET_DEFAULT_HASHSIZE, maxelem = IPSET_DEFAULT_MAXELEM; in IPSET_TOKEN() local
1544 hashsize = ip_set_get_h32(tb[IPSET_ATTR_HASHSIZE]); in IPSET_TOKEN()
1545 if (hashsize < IPSET_MIMINAL_HASHSIZE) in IPSET_TOKEN()
1546 hashsize = IPSET_MIMINAL_HASHSIZE; in IPSET_TOKEN()
1561 hbits = fls(hashsize - 1); in IPSET_TOKEN()
/linux-6.6.21/drivers/crypto/stm32/
Dstm32-hash.c934 unsigned int i, hashsize; in stm32_hash_copy_hash() local
939 hashsize = crypto_ahash_digestsize(tfm); in stm32_hash_copy_hash()
941 for (i = 0; i < hashsize / sizeof(u32); i++) { in stm32_hash_copy_hash()
/linux-6.6.21/include/net/
Dsch_generic.h612 unsigned int hashsize; member