Home
last modified time | relevance | path

Searched refs:hash_bits (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/fs/
Ddcookies.c226 unsigned int i, hash_bits; in dcookie_init() local
248 hash_bits = 0; in dcookie_init()
250 hash_bits++; in dcookie_init()
251 } while ((hash_size >> hash_bits) != 0); in dcookie_init()
252 hash_bits--; in dcookie_init()
258 hash_size = 1UL << hash_bits; in dcookie_init()
/Linux-v5.4/tools/lib/bpf/
Dhashmap.c106 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
155 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
179 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
199 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__find()
214 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__delete()
Dhashmap.h20 static inline size_t hash_bits(size_t h, int bits) in hash_bits() function
163 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
171 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
/Linux-v5.4/drivers/net/ethernet/cavium/thunder/
Dnic.h143 u8 hash_bits; member
493 u8 hash_bits; member
Dnicvf_main.c343 mbx.rss_cfg.hash_bits = rss->hash_bits; in nicvf_config_rss()
381 rss->hash_bits = 0; in nicvf_rss_init()
393 rss->hash_bits = ilog2(rounddown_pow_of_two(rss->rss_size)); in nicvf_rss_init()
Dnic_main.c594 cpi_cfg |= (cfg->hash_bits << 20); in nic_config_rss()
/Linux-v5.4/lib/zlib_deflate/
Ddeflate.c227 s->hash_bits = memLevel + 7; in zlib_deflateInit2()
228 s->hash_size = 1 << s->hash_bits; in zlib_deflateInit2()
230 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH); in zlib_deflateInit2()
589 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); in longest_match()
Ddefutil.h114 uInt hash_bits; /* log2(hash_size) */ member
/Linux-v5.4/drivers/md/
Ddm-cache-policy-smq.c575 unsigned long long hash_bits; member
589 ht->hash_bits = __ffs(nr_buckets); in h_init()
624 unsigned h = hash_64(from_oblock(e->oblock), ht->hash_bits); in h_insert()
659 unsigned h = hash_64(from_oblock(oblock), ht->hash_bits); in h_lookup()
676 unsigned h = hash_64(from_oblock(e->oblock), ht->hash_bits); in h_remove()