Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/hwspinlock/
Domap_hwspinlock.c81 int num_locks, i, ret; in omap_hwspinlock_probe() local
125 num_locks = i * 32; /* actual number of locks in this device */ in omap_hwspinlock_probe()
127 bank = kzalloc(struct_size(bank, lock, num_locks), GFP_KERNEL); in omap_hwspinlock_probe()
135 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in omap_hwspinlock_probe()
139 base_id, num_locks); in omap_hwspinlock_probe()
Du8500_hsem.c93 int i, ret, num_locks = U8500_MAX_SEMAPHORE; in u8500_hsem_probe() local
114 bank = kzalloc(struct_size(bank, lock, num_locks), GFP_KERNEL); in u8500_hsem_probe()
122 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in u8500_hsem_probe()
129 pdata->base_id, num_locks); in u8500_hsem_probe()
Dhwspinlock_core.c358 if (id < 0 || id >= hwlock->bank->num_locks) { in of_hwspin_lock_get_id()
465 const struct hwspinlock_ops *ops, int base_id, int num_locks) in hwspin_lock_register() argument
470 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
479 bank->num_locks = num_locks; in hwspin_lock_register()
481 for (i = 0; i < num_locks; i++) { in hwspin_lock_register()
517 for (i = 0; i < bank->num_locks; i++) { in hwspin_lock_unregister()
593 int base_id, int num_locks) in devm_hwspin_lock_register() argument
602 ret = hwspin_lock_register(bank, dev, ops, base_id, num_locks); in devm_hwspin_lock_register()
Dhwspinlock_internal.h58 int num_locks; member
/Linux-v4.19/include/linux/
Dhwspinlock.h58 const struct hwspinlock_ops *ops, int base_id, int num_locks);
79 int base_id, int num_locks);
/Linux-v4.19/fs/ocfs2/dlm/
Ddlmrecovery.c1131 BUG_ON(mres->num_locks > DLM_MAX_MIGRATABLE_LOCKS); in dlm_send_mig_lockres_msg()
1132 if (!mres->num_locks) in dlm_send_mig_lockres_msg()
1136 (mres->num_locks * sizeof(struct dlm_migratable_lock)); in dlm_send_mig_lockres_msg()
1190 mres->num_locks = 0; in dlm_init_migratable_lockres()
1237 int lock_num = mres->num_locks; in dlm_add_lock_to_array()
1250 mres->num_locks++; in dlm_add_lock_to_array()
1252 if (mres->num_locks == DLM_MAX_MIGRATABLE_LOCKS) in dlm_add_lock_to_array()
1828 mlog(0, "running %d locks for this lockres\n", mres->num_locks); in dlm_process_recovery_data()
1829 for (i=0; i<mres->num_locks; i++) { in dlm_process_recovery_data()
1834 BUG_ON(mres->num_locks != 1); in dlm_process_recovery_data()
Ddlmcommon.h573 u8 num_locks; // locks sent in this structure member
/Linux-v4.19/Documentation/
Dhwspinlock.txt317 const struct hwspinlock_ops *ops, int base_id, int num_locks);
353 * @num_locks: number of locks in this device
360 int num_locks;
/Linux-v4.19/fs/cifs/
Dsmb1ops.c645 atomic_set(&tcon->stats.cifs_stats.num_locks, 0); in cifs_clear_stats()
664 atomic_read(&tcon->stats.cifs_stats.num_locks), in cifs_print_stats()
Dcifsglob.h957 atomic_t num_locks; member
Dcifssmb.c2389 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in cifs_lockv()
2459 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in CIFSSMBLock()
Dsmb2pdu.c4304 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in smb2_lockv()