Home
last modified time | relevance | path

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

/linux-6.1.9/tools/lib/bpf/
Dhashmap.c118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__find()
226 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__delete()
Dhashmap.h15 static inline size_t hash_bits(size_t h, int bits) in hash_bits() function
181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
/linux-6.1.9/tools/perf/util/
Dhashmap.c118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__find()
226 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__delete()
Dhashmap.h15 static inline size_t hash_bits(size_t h, int bits) in hash_bits() function
181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
/linux-6.1.9/io_uring/
Dpoll.c119 u32 index = hash_long(req->cqe.user_data, table->hash_bits); in io_poll_req_insert()
130 u32 index = hash_long(req->cqe.user_data, table->hash_bits); in io_poll_req_delete()
141 u32 index = hash_long(req->cqe.user_data, table->hash_bits); in io_poll_req_insert_locked()
748 unsigned nr_buckets = 1U << table->hash_bits; in io_poll_remove_all_table()
790 u32 index = hash_long(cd->data, table->hash_bits); in io_poll_find()
818 unsigned nr_buckets = 1U << table->hash_bits; in io_poll_file_find()
Dfdinfo.c175 for (i = 0; i < (1U << ctx->cancel_table.hash_bits); i++) { in __io_uring_show_fdinfo()
Dio_uring.c268 table->hash_bits = bits; in io_alloc_hash_table()
276 int hash_bits; in io_ring_ctx_alloc() local
289 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc()
290 hash_bits = clamp(hash_bits, 1, 8); in io_ring_ctx_alloc()
291 if (io_alloc_hash_table(&ctx->cancel_table, hash_bits)) in io_ring_ctx_alloc()
293 if (io_alloc_hash_table(&ctx->cancel_table_locked, hash_bits)) in io_ring_ctx_alloc()
/linux-6.1.9/drivers/net/ethernet/cavium/thunder/
Dnic.h143 u8 hash_bits; member
493 u8 hash_bits; member
Dnicvf_main.c341 mbx.rss_cfg.hash_bits = rss->hash_bits; in nicvf_config_rss()
379 rss->hash_bits = 0; in nicvf_rss_init()
391 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-6.1.9/lib/zlib_deflate/
Ddeflate.c256 s->hash_bits = memLevel + 7; in zlib_deflateInit2()
257 s->hash_size = 1 << s->hash_bits; in zlib_deflateInit2()
259 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH); in zlib_deflateInit2()
593 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); in longest_match()
Ddefutil.h116 uInt hash_bits; /* log2(hash_size) */ member
/linux-6.1.9/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()
/linux-6.1.9/include/linux/
Dio_uring_types.h44 unsigned hash_bits; member