Home
last modified time | relevance | path

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

/openbmc/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_size(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.c587 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()
/openbmc/qemu/hw/xen/
H A Dxen-mapcache.c63 unsigned long nr_buckets; member
122 mc->nr_buckets = in xen_map_cache_init_single()
127 size = mc->nr_buckets * sizeof(MapCacheEntry); in xen_map_cache_init_single()
129 trace_xen_map_cache_init(mc->nr_buckets, size); in xen_map_cache_init_single()
377 entry = &mc->entry[address_index % mc->nr_buckets]; in xen_map_cache_unlocked()
505 entry = &mc->entry[paddr_index % mc->nr_buckets]; in xen_ram_addr_from_mapcache_single()
568 entry = &mc->entry[paddr_index % mc->nr_buckets]; in xen_invalidate_map_cache_entry_unlocked()
670 for (i = 0; i < mc->nr_buckets; i++) { in xen_invalidate_map_cache_single()
729 entry = &mc->entry[address_index % mc->nr_buckets]; in xen_replace_cache_entry_unlocked()
H A Dtrace-events75 xen_map_cache_init(uint64_t nr_buckets, uint64_t size) "nr_buckets = 0x%"PRIx64" size 0x%"PRIx64
/openbmc/linux/io_uring/
H A Dpoll.c753 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()