Home
last modified time | relevance | path

Searched refs:nr_buckets (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/md/
H A Ddm-region-hash.c70 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(nr_buckets, sizeof(*rh->buckets)); in dm_region_hash_create()
216 for (i = 0; i < nr_buckets; i++) in dm_region_hash_create()
246 for (h = 0; h < rh->nr_buckets; h++) { in dm_region_hash_destroy()
H A Ddm-cache-policy-smq.c597 unsigned int i, nr_buckets; in h_init()
600 nr_buckets = roundup_pow_of_two(max(nr_entries / 4u, 16u)); in h_init()
601 ht->hash_bits = __ffs(nr_buckets); in h_init()
603 ht->buckets = vmalloc_array(nr_buckets, sizeof(*ht->buckets)); in h_exit()
607 for (i = 0; i < nr_buckets; i++)
587 unsigned int i, nr_buckets; h_init() local
/linux/io_uring/
H A Dpoll.c736 unsigned nr_buckets = 1U << ctx->cancel_table.hash_bits; in io_poll_remove_all() local
744 for (i = 0; i < nr_buckets; i++) { in io_poll_remove_all()
782 unsigned nr_buckets = 1U << ctx->cancel_table.hash_bits; in io_poll_file_find() local
786 for (i = 0; i < nr_buckets; i++) { in io_poll_file_find()