Searched refs:nr_buckets (Results 1 - 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-region-hash.c | 67 unsigned nr_buckets; member 171 unsigned nr_buckets, max_buckets; in dm_region_hash_create() local 180 for (nr_buckets = 128u; nr_buckets < max_buckets; nr_buckets <<= 1) in dm_region_hash_create() 182 nr_buckets >>= 1; in dm_region_hash_create() 200 rh->mask = nr_buckets - 1; in dm_region_hash_create() 201 rh->nr_buckets = nr_buckets; in dm_region_hash_create() 206 rh->buckets = vmalloc(array_size(nr_buckets, sizeo in dm_region_hash_create() [all...] |
H A D | dm-cache-policy-smq.c | 585 unsigned i, nr_buckets; in h_init() local 588 nr_buckets = roundup_pow_of_two(max(nr_entries / 4u, 16u)); in h_init() 589 ht->hash_bits = __ffs(nr_buckets); in h_init() 591 ht->buckets = vmalloc(array_size(nr_buckets, sizeof(*ht->buckets))); in h_init() 595 for (i = 0; i < nr_buckets; i++) in h_init()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-region-hash.c | 70 unsigned int nr_buckets; member 174 unsigned int nr_buckets, max_buckets; in dm_region_hash_create() local 183 for (nr_buckets = 128u; nr_buckets < max_buckets; nr_buckets <<= 1) in dm_region_hash_create() 185 nr_buckets >>= 1; in dm_region_hash_create() 203 rh->mask = nr_buckets - 1; in dm_region_hash_create() 204 rh->nr_buckets = nr_buckets; in dm_region_hash_create() 209 rh->buckets = vmalloc(array_size(nr_buckets, sizeo in dm_region_hash_create() [all...] |
H A D | dm-cache-policy-smq.c | 587 unsigned int i, nr_buckets; in h_init() local 590 nr_buckets = roundup_pow_of_two(max(nr_entries / 4u, 16u)); in h_init() 591 ht->hash_bits = __ffs(nr_buckets); in h_init() 593 ht->buckets = vmalloc(array_size(nr_buckets, sizeof(*ht->buckets))); in h_init() 597 for (i = 0; i < nr_buckets; i++) in h_init()
|
/kernel/linux/linux-6.6/io_uring/ |
H A D | poll.c | 753 unsigned nr_buckets = 1U << table->hash_bits; in io_poll_remove_all_table() local 759 for (i = 0; i < nr_buckets; i++) { in io_poll_remove_all_table() 823 unsigned nr_buckets = 1U << table->hash_bits; in io_poll_file_find() local 829 for (i = 0; i < nr_buckets; i++) { in io_poll_file_find()
|
Completed in 9 milliseconds