Home
last modified time | relevance | path

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

/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()
/net/sched/
Dsch_drr.c288 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk()
440 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc()
458 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()
1461 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_destroy()
1467 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_destroy()
1760 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_walk()
Dsch_htb.c1000 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset()
1164 q->clhash.hashsize = 0; in htb_init()
1317 for (i = 0; i < q->clhash.hashsize; i++) { in htb_offload_aggregate_stats()
1649 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1659 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
2137 for (i = 0; i < q->clhash.hashsize; i++) { in htb_walk()
Dsch_hfsc.c1369 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk()
1500 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_reset_qdisc()
1516 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
1522 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_destroy_qdisc()
Dsch_api.c683 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow()
685 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
692 osize = clhash->hashsize; in qdisc_class_hash_grow()
702 clhash->hashsize = nsize; in qdisc_class_hash_grow()
717 clhash->hashsize = size; in qdisc_class_hash_init()
Dsch_qfq.c670 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk()
1476 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc()
1495 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_destroy_qdisc()
/net/netfilter/
Dnf_conntrack_core.c2613 int nf_conntrack_hash_resize(unsigned int hashsize) in nf_conntrack_hash_resize() argument
2621 if (!hashsize) in nf_conntrack_hash_resize()
2624 hash = nf_ct_alloc_hashtable(&hashsize, 1); in nf_conntrack_hash_resize()
2630 if (old_size == hashsize) { in nf_conntrack_hash_resize()
2657 &h->tuple, zone_id, hashsize); in nf_conntrack_hash_resize()
2665 nf_conntrack_htable_size = hashsize; in nf_conntrack_hash_resize()
2680 unsigned int hashsize; in nf_conntrack_set_hashsize() local
2690 rc = kstrtouint(val, 0, &hashsize); in nf_conntrack_set_hashsize()
2694 return nf_conntrack_hash_resize(hashsize); in nf_conntrack_set_hashsize()
Dnf_conntrack_proto.c700 module_param_call(hashsize, nf_conntrack_set_hashsize, param_get_uint,
/net/netfilter/ipset/
Dip_set_hash_gen.h1436 u32 hashsize = IPSET_DEFAULT_HASHSIZE, maxelem = IPSET_DEFAULT_MAXELEM; in IPSET_TOKEN() local
1492 hashsize = ip_set_get_h32(tb[IPSET_ATTR_HASHSIZE]); in IPSET_TOKEN()
1493 if (hashsize < IPSET_MIMINAL_HASHSIZE) in IPSET_TOKEN()
1494 hashsize = IPSET_MIMINAL_HASHSIZE; in IPSET_TOKEN()
1509 hbits = fls(hashsize - 1); in IPSET_TOKEN()