Searched refs:num_locks (Results 1 - 14 of 14) sorted by relevance

/linux-master/drivers/hwspinlock/
H A Domap_hwspinlock.c79 int num_locks, i, ret; local
112 num_locks = i * 32; /* actual number of locks in this device */
114 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks),
119 for (i = 0; i < num_locks; i++)
123 base_id, num_locks);
H A Dhwspinlock_internal.h51 * @num_locks: number of locks in this device
58 int num_locks; member in struct:hwspinlock_device
H A Du8500_hsem.c91 int i, num_locks = U8500_MAX_SEMAPHORE; local
108 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks),
115 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++)
120 pdata->base_id, num_locks);
H A Dhwspinlock_core.c383 if (id < 0 || id >= hwlock->bank->num_locks) {
481 * @num_locks: number of hwspinlocks provided by this device
491 const struct hwspinlock_ops *ops, int base_id, int num_locks)
496 if (!bank || !ops || !dev || !num_locks || !ops->trylock ||
505 bank->num_locks = num_locks;
507 for (i = 0; i < num_locks; i++) {
543 for (i = 0; i < bank->num_locks; i++) {
607 * @num_locks: number of hwspinlocks provided by this device
619 int base_id, int num_locks)
490 hwspin_lock_register(struct hwspinlock_device *bank, struct device *dev, const struct hwspinlock_ops *ops, int base_id, int num_locks) argument
616 devm_hwspin_lock_register(struct device *dev, struct hwspinlock_device *bank, const struct hwspinlock_ops *ops, int base_id, int num_locks) argument
[all...]
/linux-master/drivers/md/
H A Ddm-bio-prison-v1.c28 unsigned int num_locks; member in struct:dm_bio_prison
29 struct prison_region regions[] __counted_by(num_locks);
43 unsigned int i, num_locks; local
46 num_locks = dm_num_hash_locks();
47 prison = kzalloc(struct_size(prison, regions, num_locks), GFP_KERNEL);
50 prison->num_locks = num_locks;
52 for (i = 0; i < prison->num_locks; i++) {
120 static inline unsigned int lock_nr(struct dm_cell_key *key, unsigned int num_locks) argument
123 num_locks);
[all...]
H A Ddm.h235 unsigned int num_locks = roundup_pow_of_two(num_online_cpus()) << 1; local
237 return min_t(unsigned int, num_locks, DM_HASH_LOCKS_MAX);
244 unsigned int num_locks)
249 return (h1 ^ h2) & (num_locks - 1);
243 dm_hash_locks_index(sector_t block, unsigned int num_locks) argument
H A Ddm-bufio.c399 unsigned int num_locks; member in struct:dm_buffer_cache
406 static inline unsigned int cache_index(sector_t block, unsigned int num_locks) argument
408 return dm_hash_locks_index(block, num_locks);
414 read_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock);
416 down_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock);
422 read_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock);
424 up_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock);
430 write_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock);
432 down_write(&bc->trees[cache_index(block, bc->num_locks)].u.lock);
438 write_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)]
538 cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep) argument
2475 unsigned int num_locks; local
[all...]
/linux-master/include/linux/
H A Dhwspinlock.h59 const struct hwspinlock_ops *ops, int base_id, int num_locks);
80 int base_id, int num_locks);
/linux-master/fs/ocfs2/dlm/
H A Ddlmrecovery.c1107 BUG_ON(mres->num_locks > DLM_MAX_MIGRATABLE_LOCKS);
1108 if (!mres->num_locks)
1124 struct_size(mres, ml, mres->num_locks),
1164 mres->num_locks = 0;
1211 int lock_num = mres->num_locks;
1224 mres->num_locks++;
1226 if (mres->num_locks == DLM_MAX_MIGRATABLE_LOCKS)
1802 mlog(0, "running %d locks for this lockres\n", mres->num_locks);
1803 for (i=0; i<mres->num_locks; i++) {
1808 BUG_ON(mres->num_locks !
[all...]
H A Ddlmcommon.h552 u8 num_locks; // locks sent in this structure member in struct:dlm_migratable_lockres
/linux-master/fs/smb/client/
H A Dsmb1ops.c662 atomic_set(&tcon->stats.cifs_stats.num_locks, 0);
681 atomic_read(&tcon->stats.cifs_stats.num_locks),
H A Dcifsglob.h1229 atomic_t num_locks; member in struct:cifs_tcon::__anon83::__anon84
H A Dcifssmb.c1885 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks);
1955 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks);
H A Dsmb2pdu.c6034 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks);

Completed in 220 milliseconds