Home
last modified time | relevance | path

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

/linux-4.1.27/fs/nfsd/
Dnfscache.c166 unsigned int hashsize; in nfsd_reply_cache_init() local
172 hashsize = nfsd_hashsize(max_drc_entries); in nfsd_reply_cache_init()
173 maskbits = ilog2(hashsize); in nfsd_reply_cache_init()
184 drc_hashtbl = kcalloc(hashsize, sizeof(*drc_hashtbl), GFP_KERNEL); in nfsd_reply_cache_init()
187 for (i = 0; i < hashsize; i++) { in nfsd_reply_cache_init()
191 drc_hashsize = hashsize; in nfsd_reply_cache_init()
/linux-4.1.27/net/netfilter/ipset/
Dip_set_hash_gen.h109 htable_bits(u32 hashsize) in htable_bits() argument
112 u8 bits = fls(hashsize - 1); in htable_bits()
113 if (jhash_size(bits) != hashsize) in htable_bits()
115 bits = fls(hashsize); in htable_bits()
1039 u32 hashsize = IPSET_DEFAULT_HASHSIZE, maxelem = IPSET_DEFAULT_MAXELEM; in IPSET_TOKEN() local
1075 hashsize = ip_set_get_h32(tb[IPSET_ATTR_HASHSIZE]); in IPSET_TOKEN()
1076 if (hashsize < IPSET_MIMINAL_HASHSIZE) in IPSET_TOKEN()
1077 hashsize = IPSET_MIMINAL_HASHSIZE; in IPSET_TOKEN()
1120 hbits = htable_bits(hashsize); in IPSET_TOKEN()
/linux-4.1.27/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.1.27/net/sched/
Dsch_drr.c302 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk()
460 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc()
479 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()
1693 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_destroy()
1697 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_destroy()
2003 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_walk()
Dsch_hfsc.c1399 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk()
1528 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_reset_qdisc()
1546 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
1550 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
1569 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_dump_qdisc()
Dsch_htb.c976 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset()
1260 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1264 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1573 for (i = 0; i < q->clhash.hashsize; i++) { in htb_walk()
Dsch_qfq.c689 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk()
1516 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc()
1536 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_destroy_qdisc()
/linux-4.1.27/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-4.1.27/net/netfilter/
Dnf_conntrack_core.c1541 unsigned int hashsize, old_size; in nf_conntrack_set_hashsize() local
1553 rc = kstrtouint(val, 0, &hashsize); in nf_conntrack_set_hashsize()
1556 if (!hashsize) in nf_conntrack_set_hashsize()
1559 hash = nf_ct_alloc_hashtable(&hashsize, 1); in nf_conntrack_set_hashsize()
1580 hashsize); in nf_conntrack_set_hashsize()
1587 init_net.ct.htable_size = nf_conntrack_htable_size = hashsize; in nf_conntrack_set_hashsize()
1599 module_param_call(hashsize, nf_conntrack_set_hashsize, param_get_uint,
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dsec_bulk.c847 int hashsize; in sptlrpc_get_bulk_checksum() local
862 hashsize = cfs_crypto_hash_digestsize(cfs_hash_alg_id[alg]); in sptlrpc_get_bulk_checksum()
869 if (hashsize > buflen) { in sptlrpc_get_bulk_checksum()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_conntrack_l3proto_ipv4.c396 module_param_call(hashsize, nf_conntrack_set_hashsize, param_get_uint,
/linux-4.1.27/include/net/
Dsch_generic.h355 unsigned int hashsize; member