/openbmc/linux/tools/lib/bpf/ |
H A D | hashmap.c | 118 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()
|
H A D | hashmap.h | 15 static inline size_t hash_bits(size_t h, int bits) in hash_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)] \
|
/openbmc/linux/tools/perf/util/ |
H A D | hashmap.c | 118 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()
|
H A D | hashmap.h | 15 static inline size_t hash_bits(size_t h, int bits) in hash_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)] \
|
H A D | sharded_mutex.h | 26 return &sm->mutexes[hash_bits(hash, sm->cap_bits)]; in sharded_mutex__get_mutex()
|
/openbmc/u-boot/include/net/pfe_eth/pfe/cbus/ |
H A D | class_csr.h | 75 #define CLASS_ROUTE_HASH_SIZE(hash_bits) (((hash_bits) & 0xff) << 16) argument
|
/openbmc/linux/io_uring/ |
H A D | poll.c | 122 u32 index = hash_long(req->cqe.user_data, table->hash_bits); in io_poll_req_insert() 133 u32 index = hash_long(req->cqe.user_data, table->hash_bits); in io_poll_req_delete() 144 u32 index = hash_long(req->cqe.user_data, table->hash_bits); in io_poll_req_insert_locked() 757 unsigned nr_buckets = 1U << table->hash_bits; in io_poll_remove_all_table() 799 u32 index = hash_long(cd->data, table->hash_bits); in io_poll_find() 827 unsigned nr_buckets = 1U << table->hash_bits; in io_poll_file_find()
|
H A D | fdinfo.c | 180 for (i = 0; i < (1U << ctx->cancel_table.hash_bits); i++) { in io_uring_show_fdinfo()
|
H A D | io_uring.c | 279 table->hash_bits = bits; in io_alloc_hash_table() 287 int hash_bits; in io_ring_ctx_alloc() local 300 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc() 301 hash_bits = clamp(hash_bits, 1, 8); in io_ring_ctx_alloc() 302 if (io_alloc_hash_table(&ctx->cancel_table, hash_bits)) in io_ring_ctx_alloc() 304 if (io_alloc_hash_table(&ctx->cancel_table_locked, hash_bits)) in io_ring_ctx_alloc()
|
/openbmc/linux/lib/zlib_deflate/ |
H A D | deflate.c | 256 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() 600 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); in longest_match()
|
H A D | defutil.h | 116 uInt hash_bits; /* log2(hash_size) */ member
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nic.h | 143 u8 hash_bits; member 493 u8 hash_bits; member
|
H A D | nicvf_main.c | 341 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()
|
H A D | nic_main.c | 594 cpi_cfg |= (cfg->hash_bits << 20); in nic_config_rss()
|
/openbmc/u-boot/lib/zlib/ |
H A D | deflate.h | 138 uInt hash_bits; /* log2(hash_size) */ member
|
H A D | deflate.c | 276 s->hash_bits = memLevel + 7; 277 s->hash_size = 1 << s->hash_bits; 279 s->hash_shift = ((s->hash_bits+MIN_MATCH-1)/MIN_MATCH); 535 if (s->w_bits != 15 || s->hash_bits != 8 + 7) 1095 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever"); 1222 Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
|
/openbmc/linux/drivers/md/ |
H A D | dm-cache-policy-smq.c | 577 unsigned long long hash_bits; member 591 ht->hash_bits = __ffs(nr_buckets); in h_init() 626 unsigned int h = hash_64(from_oblock(e->oblock), ht->hash_bits); in h_insert() 662 unsigned int h = hash_64(from_oblock(oblock), ht->hash_bits); in h_lookup() 679 unsigned int h = hash_64(from_oblock(e->oblock), ht->hash_bits); in h_remove()
|
/openbmc/linux/include/linux/ |
H A D | io_uring_types.h | 44 unsigned hash_bits; member
|