Home
last modified time | relevance | path

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

/linux-4.4.14/fs/nfsd/
Dnfscache.c158 unsigned int hashsize; in nfsd_reply_cache_init() local
164 hashsize = nfsd_hashsize(max_drc_entries); in nfsd_reply_cache_init()
165 maskbits = ilog2(hashsize); in nfsd_reply_cache_init()
176 drc_hashtbl = kcalloc(hashsize, sizeof(*drc_hashtbl), GFP_KERNEL); in nfsd_reply_cache_init()
179 for (i = 0; i < hashsize; i++) { in nfsd_reply_cache_init()
183 drc_hashsize = hashsize; in nfsd_reply_cache_init()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dsec_bulk.c514 int hashsize; in sptlrpc_get_bulk_checksum() local
529 hashsize = cfs_crypto_hash_digestsize(cfs_hash_alg_id[alg]); in sptlrpc_get_bulk_checksum()
536 if (hashsize > buflen) { in sptlrpc_get_bulk_checksum()
/linux-4.4.14/net/sunrpc/
Dauth.c329 unsigned int hashsize; in rpcauth_init_credcache() local
335 hashsize = 1U << new->hashbits; in rpcauth_init_credcache()
336 new->hashtable = kcalloc(hashsize, sizeof(new->hashtable[0]), GFP_KERNEL); in rpcauth_init_credcache()
404 unsigned int hashsize = 1U << cache->hashbits; in rpcauth_clear_credcache() local
409 for (i = 0; i < hashsize; i++) { in rpcauth_clear_credcache()
/linux-4.4.14/net/netfilter/ipset/
Dip_set_hash_gen.h118 htable_bits(u32 hashsize) in htable_bits() argument
121 u8 bits = fls(hashsize - 1); in htable_bits()
123 if (jhash_size(bits) != hashsize) in htable_bits()
125 bits = fls(hashsize); in htable_bits()
1229 u32 hashsize = IPSET_DEFAULT_HASHSIZE, maxelem = IPSET_DEFAULT_MAXELEM; in IPSET_TOKEN() local
1267 hashsize = ip_set_get_h32(tb[IPSET_ATTR_HASHSIZE]); in IPSET_TOKEN()
1268 if (hashsize < IPSET_MIMINAL_HASHSIZE) in IPSET_TOKEN()
1269 hashsize = IPSET_MIMINAL_HASHSIZE; in IPSET_TOKEN()
1312 hbits = htable_bits(hashsize); in IPSET_TOKEN()
/linux-4.4.14/net/sched/
Dsch_drr.c299 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk()
457 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc()
476 for (i = 0; i < q->clhash.hashsize; i++) { in drr_destroy_qdisc()
Dsch_api.c660 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow()
662 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
669 osize = clhash->hashsize; in qdisc_class_hash_grow()
679 clhash->hashsize = nsize; in qdisc_class_hash_grow()
694 clhash->hashsize = size; in qdisc_class_hash_init()
703 qdisc_class_hash_free(clhash->hash, clhash->hashsize); in qdisc_class_hash_destroy()
Dsch_cbq.c1036 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_normalize_quanta()
1076 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_sync_defmap()
1214 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_reset()
1688 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_destroy()
1692 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_destroy()
1999 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_walk()
Dsch_hfsc.c1396 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk()
1525 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_reset_qdisc()
1543 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
1547 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
1566 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_dump_qdisc()
Dsch_htb.c979 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset()
1254 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1258 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1569 for (i = 0; i < q->clhash.hashsize; i++) { in htb_walk()
Dsch_qfq.c684 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk()
1511 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc()
1531 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_destroy_qdisc()
/linux-4.4.14/fs/jffs2/
Dfs.c501 int hashsize = (size_mb * 2) & ~0x3f; in calculate_inocache_hashsize() local
503 if (hashsize < INOCACHE_HASHSIZE_MIN) in calculate_inocache_hashsize()
505 if (hashsize > INOCACHE_HASHSIZE_MAX) in calculate_inocache_hashsize()
508 return hashsize; in calculate_inocache_hashsize()
/linux-4.4.14/net/netfilter/
Dnf_conntrack_core.c1564 unsigned int hashsize, old_size; in nf_conntrack_set_hashsize() local
1576 rc = kstrtouint(val, 0, &hashsize); in nf_conntrack_set_hashsize()
1579 if (!hashsize) in nf_conntrack_set_hashsize()
1582 hash = nf_ct_alloc_hashtable(&hashsize, 1); in nf_conntrack_set_hashsize()
1602 bucket = __hash_conntrack(&h->tuple, hashsize); in nf_conntrack_set_hashsize()
1609 init_net.ct.htable_size = nf_conntrack_htable_size = hashsize; in nf_conntrack_set_hashsize()
1621 module_param_call(hashsize, nf_conntrack_set_hashsize, param_get_uint,
/linux-4.4.14/net/ipv4/netfilter/
Dnf_conntrack_l3proto_ipv4.c390 module_param_call(hashsize, nf_conntrack_set_hashsize, param_get_uint,
/linux-4.4.14/include/net/
Dsch_generic.h356 unsigned int hashsize; member
/linux-4.4.14/kernel/
Dfutex.c265 unsigned long hashsize; member
268 #define futex_hashsize (__futex_data.hashsize)