Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A 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()
/linux/tools/perf/util/
H A 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()
H A Dsharded_mutex.h26 return &sm->mutexes[hash_bits(hash, sm->cap_bits)]; in sharded_mutex__get_mutex()
/linux/io_uring/
H A Dpoll.c124 u32 index = hash_long(req->cqe.user_data, table->hash_bits); in io_poll_req_insert()
727 unsigned nr_buckets = 1U << ctx->cancel_table.hash_bits; in io_poll_remove_all()
753 u32 index = hash_long(cd->data, ctx->cancel_table.hash_bits); in io_poll_find()
773 unsigned nr_buckets = 1U << ctx->cancel_table.hash_bits; in io_poll_file_find()
H A Dfdinfo.c225 for (i = 0; i < (1U << ctx->cancel_table.hash_bits); i++) { in __io_uring_show_fdinfo()
H A Dio_uring.c268 table->hash_bits = bits; in io_alloc_hash_table()
287 int hash_bits; in io_ring_ctx_alloc() local
301 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc()
302 hash_bits = clamp(hash_bits, 1, 8); in io_ring_ctx_alloc()
303 if (io_alloc_hash_table(&ctx->cancel_table, hash_bits)) in io_ring_ctx_alloc()
/linux/drivers/net/ethernet/cavium/thunder/
H A Dnic.h143 u8 hash_bits; member
493 u8 hash_bits; member
H A Dnic_main.c594 cpi_cfg |= (cfg->hash_bits << 20); in nic_config_rss()
/linux/net/ipv4/
H A Dfib_semantics.c357 unsigned int hash_bits = net->ipv4.fib_info_hash_bits; in fib_info_laddrhash_bucket() local
360 slot = hash_32(net_hash_mix(net) ^ (__force u32)val, hash_bits); in fib_info_laddrhash_bucket()
362 return &net->ipv4.fib_info_hash[(1 << hash_bits) + slot]; in fib_info_laddrhash_bucket()
365 static struct hlist_head *fib_info_hash_alloc(unsigned int hash_bits) in fib_info_hash_alloc() argument
368 return kvcalloc((1 << hash_bits) * 2, sizeof(struct hlist_head), in fib_info_hash_alloc()
2244 unsigned int hash_bits = 4; in fib4_semantics_init() local
2246 net->ipv4.fib_info_hash = fib_info_hash_alloc(hash_bits); in fib4_semantics_init()
2250 net->ipv4.fib_info_hash_bits = hash_bits; in fib4_semantics_init()
/linux/lib/zlib_deflate/
H A Ddefutil.h116 uInt hash_bits; /* log2(hash_size) */ member
/linux/include/linux/
H A Dio_uring_types.h77 unsigned hash_bits; member