Searched refs:hash_bits (Results 1 - 15 of 15) sorted by relevance

/linux-master/tools/perf/util/
H A Dsharded_mutex.h26 return &sm->mutexes[hash_bits(hash, sm->cap_bits)];
H A Dhashmap.c118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits);
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
226 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
H A Dhashmap.h15 static inline size_t hash_bits(size_t h, int bits) function
194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
/linux-master/tools/lib/bpf/
H A Dhashmap.c118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits);
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
226 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
H A Dhashmap.h15 static inline size_t hash_bits(size_t h, int bits) function
194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
/linux-master/io_uring/
H A Dpoll.c123 u32 index = hash_long(req->cqe.user_data, table->hash_bits);
134 u32 index = hash_long(req->cqe.user_data, table->hash_bits);
145 u32 index = hash_long(req->cqe.user_data, table->hash_bits);
769 unsigned nr_buckets = 1U << table->hash_bits;
811 u32 index = hash_long(cd->data, table->hash_bits);
838 unsigned nr_buckets = 1U << table->hash_bits;
H A Dfdinfo.c194 for (i = 0; i < (1U << ctx->cancel_table.hash_bits); i++) {
H A Dio_uring.c278 table->hash_bits = bits;
286 int hash_bits; local
299 hash_bits = ilog2(p->cq_entries) - 5;
300 hash_bits = clamp(hash_bits, 1, 8);
301 if (io_alloc_hash_table(&ctx->cancel_table, hash_bits))
303 if (io_alloc_hash_table(&ctx->cancel_table_locked, hash_bits))
/linux-master/drivers/net/ethernet/cavium/thunder/
H A Dnic.h143 u8 hash_bits; member in struct:nicvf_rss_info
493 u8 hash_bits; member in struct:rss_cfg_msg
H A Dnicvf_main.c341 mbx.rss_cfg.hash_bits = rss->hash_bits;
379 rss->hash_bits = 0;
391 rss->hash_bits = ilog2(rounddown_pow_of_two(rss->rss_size));
H A Dnic_main.c594 cpi_cfg |= (cfg->hash_bits << 20);
/linux-master/lib/zlib_deflate/
H A Ddeflate.c256 s->hash_bits = memLevel + 7;
257 s->hash_size = 1 << s->hash_bits;
259 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH);
600 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
H A Ddefutil.h116 uInt hash_bits; /* log2(hash_size) */ member in struct:deflate_state
123 * hash_shift * MIN_MATCH >= hash_bits
/linux-master/include/linux/
H A Dio_uring_types.h76 unsigned hash_bits; member in struct:io_hash_table
/linux-master/drivers/md/
H A Ddm-cache-policy-smq.c577 unsigned long long hash_bits; member in struct:smq_hash_table
591 ht->hash_bits = __ffs(nr_buckets);
626 unsigned int h = hash_64(from_oblock(e->oblock), ht->hash_bits);
662 unsigned int h = hash_64(from_oblock(oblock), ht->hash_bits);
679 unsigned int h = hash_64(from_oblock(e->oblock), ht->hash_bits);

Completed in 257 milliseconds