Home
last modified time | relevance | path

Searched refs:num_locks (Results 1 – 10 of 10) sorted by relevance

/drivers/md/
A Ddm-bio-prison-v1.c28 unsigned int num_locks; member
29 struct prison_region regions[] __counted_by(num_locks);
43 unsigned int i, num_locks; in dm_bio_prison_create() local
46 num_locks = dm_num_hash_locks(); in dm_bio_prison_create()
50 prison->num_locks = num_locks; in dm_bio_prison_create()
52 for (i = 0; i < prison->num_locks; i++) { in dm_bio_prison_create()
123 num_locks); in lock_nr()
182 unsigned l = lock_nr(key, prison->num_locks); in bio_detain()
221 unsigned l = lock_nr(&cell->key, prison->num_locks); in dm_cell_release()
244 unsigned l = lock_nr(&cell->key, prison->num_locks); in dm_cell_release_no_holder()
[all …]
A Ddm.h237 unsigned int num_locks = roundup_pow_of_two(num_online_cpus()) << 1; in dm_num_hash_locks() local
239 return min_t(unsigned int, num_locks, DM_HASH_LOCKS_MAX); in dm_num_hash_locks()
246 unsigned int num_locks) in dm_hash_locks_index() argument
251 return (h1 ^ h2) & (num_locks - 1); in dm_hash_locks_index()
A Ddm-bufio.c392 unsigned int num_locks; member
401 return dm_hash_locks_index(block, num_locks); in cache_index()
417 up_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_unlock()
433 up_write(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_write_unlock()
451 lh->no_previous = cache->num_locks; in lh_init()
532 bc->num_locks = num_locks; in cache_init()
535 for (i = 0; i < bc->num_locks; i++) { in cache_init()
551 for (i = 0; i < bc->num_locks; i++) in cache_destroy()
946 for (i = 0; i < bc->num_locks; i++) { in cache_remove_range()
2476 unsigned int num_locks; in dm_bufio_client_create() local
[all …]
/drivers/hwspinlock/
A Domap_hwspinlock.c79 int num_locks, i, ret; in omap_hwspinlock_probe() local
112 num_locks = i * 32; /* actual number of locks in this device */ in omap_hwspinlock_probe()
114 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in omap_hwspinlock_probe()
119 for (i = 0; i < num_locks; i++) in omap_hwspinlock_probe()
123 base_id, num_locks); in omap_hwspinlock_probe()
A Dhwspinlock_core.c411 if (id < 0 || id >= hwlock->bank->num_locks) { in of_hwspin_lock_get_id()
519 const struct hwspinlock_ops *ops, int base_id, int num_locks) in hwspin_lock_register() argument
524 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
533 bank->num_locks = num_locks; in hwspin_lock_register()
535 for (i = 0; i < num_locks; i++) { in hwspin_lock_register()
571 for (i = 0; i < bank->num_locks; i++) { in hwspin_lock_unregister()
647 int base_id, int num_locks) in devm_hwspin_lock_register() argument
656 ret = hwspin_lock_register(bank, dev, ops, base_id, num_locks); in devm_hwspin_lock_register()
A Du8500_hsem.c91 int i, num_locks = U8500_MAX_SEMAPHORE; in u8500_hsem_probe() local
108 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in u8500_hsem_probe()
115 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in u8500_hsem_probe()
120 pdata->base_id, num_locks); in u8500_hsem_probe()
A Dhwspinlock_internal.h61 int num_locks; member
/drivers/iommu/iommufd/
A Dio_pagetable.h51 unsigned int num_locks; member
A Dpages.c2129 area->num_locks++; in iopt_area_add_access()
2152 area->num_locks++; in iopt_area_add_access()
2187 WARN_ON(area->num_locks == 0); in iopt_area_remove_access()
2188 area->num_locks--; in iopt_area_remove_access()
A Dio_pagetable.c732 if (area->num_locks) { in iopt_unmap_iova_range()

Completed in 40 milliseconds