Home
last modified time | relevance | path

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

/Linux-v5.10/fs/nfsd/
Dnfscache.c159 unsigned int hashsize; in nfsd_reply_cache_init() local
165 hashsize = nfsd_hashsize(nn->max_drc_entries); in nfsd_reply_cache_init()
166 nn->maskbits = ilog2(hashsize); in nfsd_reply_cache_init()
175 nn->drc_hashtbl = kvzalloc(array_size(hashsize, in nfsd_reply_cache_init()
180 for (i = 0; i < hashsize; i++) { in nfsd_reply_cache_init()
184 nn->drc_hashsize = hashsize; in nfsd_reply_cache_init()
/Linux-v5.10/net/sunrpc/
Dauth.c294 unsigned int hashsize; in rpcauth_init_credcache() local
300 hashsize = 1U << new->hashbits; in rpcauth_init_credcache()
301 new->hashtable = kcalloc(hashsize, sizeof(new->hashtable[0]), GFP_KERNEL); in rpcauth_init_credcache()
386 unsigned int hashsize = 1U << cache->hashbits; in rpcauth_clear_credcache() local
391 for (i = 0; i < hashsize; i++) { in rpcauth_clear_credcache()
/Linux-v5.10/net/sched/
Dsch_drr.c287 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk()
439 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc()
459 for (i = 0; i < q->clhash.hashsize; i++) { in drr_destroy_qdisc()
Dsch_cbq.c892 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_normalize_quanta()
932 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_sync_defmap()
1045 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_reset()
1462 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_destroy()
1468 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_destroy()
1760 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_walk()
Dsch_hfsc.c1350 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk()
1481 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_reset_qdisc()
1499 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
1505 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
Dsch_htb.c955 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset()
1234 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1240 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1544 for (i = 0; i < q->clhash.hashsize; i++) { in htb_walk()
Dsch_api.c676 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow()
678 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
685 osize = clhash->hashsize; in qdisc_class_hash_grow()
695 clhash->hashsize = nsize; in qdisc_class_hash_grow()
710 clhash->hashsize = size; in qdisc_class_hash_init()
Dsch_qfq.c661 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk()
1457 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc()
1478 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_destroy_qdisc()
/Linux-v5.10/net/netfilter/ipset/
Dip_set_hash_gen.h148 htable_bits(u32 hashsize) in htable_bits() argument
151 u8 bits = fls(hashsize - 1); in htable_bits()
153 if (jhash_size(bits) != hashsize) in htable_bits()
155 bits = fls(hashsize); in htable_bits()
1454 u32 hashsize = IPSET_DEFAULT_HASHSIZE, maxelem = IPSET_DEFAULT_MAXELEM; in IPSET_TOKEN() local
1510 hashsize = ip_set_get_h32(tb[IPSET_ATTR_HASHSIZE]); in IPSET_TOKEN()
1511 if (hashsize < IPSET_MIMINAL_HASHSIZE) in IPSET_TOKEN()
1512 hashsize = IPSET_MIMINAL_HASHSIZE; in IPSET_TOKEN()
1523 hbits = htable_bits(hashsize); in IPSET_TOKEN()
/Linux-v5.10/fs/jffs2/
Dfs.c503 int hashsize = (size_mb * 2) & ~0x3f; in calculate_inocache_hashsize() local
505 if (hashsize < INOCACHE_HASHSIZE_MIN) in calculate_inocache_hashsize()
507 if (hashsize > INOCACHE_HASHSIZE_MAX) in calculate_inocache_hashsize()
510 return hashsize; in calculate_inocache_hashsize()
/Linux-v5.10/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-v5.10/drivers/crypto/stm32/
Dstm32-hash.c753 unsigned int i, hashsize; in stm32_hash_copy_hash() local
757 hashsize = MD5_DIGEST_SIZE; in stm32_hash_copy_hash()
760 hashsize = SHA1_DIGEST_SIZE; in stm32_hash_copy_hash()
763 hashsize = SHA224_DIGEST_SIZE; in stm32_hash_copy_hash()
766 hashsize = SHA256_DIGEST_SIZE; in stm32_hash_copy_hash()
772 for (i = 0; i < hashsize / sizeof(u32); i++) in stm32_hash_copy_hash()
/Linux-v5.10/drivers/net/
Dgtp.c653 int hashsize, err; in gtp_newlink() local
661 hashsize = 1024; in gtp_newlink()
663 hashsize = nla_get_u32(data[IFLA_GTP_PDP_HASHSIZE]); in gtp_newlink()
664 if (!hashsize) in gtp_newlink()
665 hashsize = 1024; in gtp_newlink()
668 err = gtp_hashtable_new(gtp, hashsize); in gtp_newlink()
/Linux-v5.10/net/netfilter/
Dnf_conntrack_core.c2470 int nf_conntrack_hash_resize(unsigned int hashsize) in nf_conntrack_hash_resize() argument
2478 if (!hashsize) in nf_conntrack_hash_resize()
2481 hash = nf_ct_alloc_hashtable(&hashsize, 1); in nf_conntrack_hash_resize()
2486 if (old_size == hashsize) { in nf_conntrack_hash_resize()
2508 &h->tuple, hashsize); in nf_conntrack_hash_resize()
2516 nf_conntrack_htable_size = hashsize; in nf_conntrack_hash_resize()
2529 unsigned int hashsize; in nf_conntrack_set_hashsize() local
2539 rc = kstrtouint(val, 0, &hashsize); in nf_conntrack_set_hashsize()
2543 return nf_conntrack_hash_resize(hashsize); in nf_conntrack_set_hashsize()
Dnf_conntrack_proto.c703 module_param_call(hashsize, nf_conntrack_set_hashsize, param_get_uint,
/Linux-v5.10/include/net/netfilter/
Dnf_conntrack.h297 int nf_conntrack_hash_resize(unsigned int hashsize);
/Linux-v5.10/kernel/
Dfutex.c249 unsigned long hashsize; member
252 #define futex_hashsize (__futex_data.hashsize)
/Linux-v5.10/include/net/
Dsch_generic.h596 unsigned int hashsize; member