Home
last modified time | relevance | path

Searched refs:hash_bits (Results 1 – 10 of 10) 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()
769 unsigned nr_buckets = 1U << ctx->cancel_table.hash_bits; in io_poll_find()
795 u32 index = hash_long(cd->data, ctx->cancel_table.hash_bits); in io_poll_file_find()
815 unsigned nr_buckets = 1U << ctx->cancel_table.hash_bits; in __io_poll_cancel()
848 unsigned int nr_buckets = 1U << ctx->cancel_table.hash_bits; in io_poll_parse_events()
857 i = hash_long(cd->data, ctx->cancel_table.hash_bits); in io_poll_remove_prep()
H A Dio_uring.c210 table->hash_bits = bits; in io_alloc_hash_table()
229 int hash_bits; in io_ring_ctx_alloc() local
244 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc()
245 hash_bits = clamp(hash_bits, 1, 8); in io_ring_ctx_alloc()
246 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.c356 unsigned int hash_bits = net->ipv4.fib_info_hash_bits; in fib_info_laddrhash_bucket() local
359 slot = hash_32(net_hash_mix(net) ^ (__force u32)val, hash_bits); in fib_info_laddrhash_bucket()
361 return &net->ipv4.fib_info_hash[(1 << hash_bits) + slot]; in fib_info_laddrhash_bucket()
364 static struct hlist_head *fib_info_hash_alloc(unsigned int hash_bits) in fib_info_hash_alloc() argument
367 return kvzalloc_objs(struct hlist_head, (1 << hash_bits) * 2); in fib_info_hash_alloc()
2272 unsigned int hash_bits = 4; in fib4_semantics_init() local
2274 net->ipv4.fib_info_hash = fib_info_hash_alloc(hash_bits); in fib4_semantics_init()
2278 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.h109 unsigned hash_bits;
108 unsigned hash_bits; global() member