Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/hwspinlock/
Domap_hwspinlock.c88 int num_locks, i, ret; in omap_hwspinlock_probe() local
130 num_locks = i * 32; /* actual number of locks in this device */ in omap_hwspinlock_probe()
132 bank = kzalloc(sizeof(*bank) + num_locks * sizeof(*hwlock), GFP_KERNEL); in omap_hwspinlock_probe()
140 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in omap_hwspinlock_probe()
144 pdata->base_id, num_locks); in omap_hwspinlock_probe()
Du8500_hsem.c101 int i, ret, num_locks = U8500_MAX_SEMAPHORE; in u8500_hsem_probe() local
122 bank = kzalloc(sizeof(*bank) + num_locks * sizeof(*hwlock), GFP_KERNEL); in u8500_hsem_probe()
130 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in u8500_hsem_probe()
137 pdata->base_id, num_locks); in u8500_hsem_probe()
Dhwspinlock_core.c326 const struct hwspinlock_ops *ops, int base_id, int num_locks) in hwspin_lock_register() argument
331 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
340 bank->num_locks = num_locks; in hwspin_lock_register()
342 for (i = 0; i < num_locks; i++) { in hwspin_lock_register()
378 for (i = 0; i < bank->num_locks; i++) { in hwspin_lock_unregister()
Dhwspinlock_internal.h66 int num_locks; member
/linux-4.1.27/include/linux/
Dhwspinlock.h64 const struct hwspinlock_ops *ops, int base_id, int num_locks);
/linux-4.1.27/fs/ocfs2/dlm/
Ddlmrecovery.c1124 BUG_ON(mres->num_locks > DLM_MAX_MIGRATABLE_LOCKS); in dlm_send_mig_lockres_msg()
1125 if (!mres->num_locks) in dlm_send_mig_lockres_msg()
1129 (mres->num_locks * sizeof(struct dlm_migratable_lock)); in dlm_send_mig_lockres_msg()
1183 mres->num_locks = 0; in dlm_init_migratable_lockres()
1230 int lock_num = mres->num_locks; in dlm_add_lock_to_array()
1243 mres->num_locks++; in dlm_add_lock_to_array()
1245 if (mres->num_locks == DLM_MAX_MIGRATABLE_LOCKS) in dlm_add_lock_to_array()
1794 mlog(0, "running %d locks for this lockres\n", mres->num_locks); in dlm_process_recovery_data()
1795 for (i=0; i<mres->num_locks; i++) { in dlm_process_recovery_data()
1800 BUG_ON(mres->num_locks != 1); in dlm_process_recovery_data()
Ddlmcommon.h581 u8 num_locks; // locks sent in this structure member
/linux-4.1.27/Documentation/
Dhwspinlock.txt231 const struct hwspinlock_ops *ops, int base_id, int num_locks);
257 * @num_locks: number of locks in this device
264 int num_locks;
/linux-4.1.27/fs/cifs/
Dsmb1ops.c643 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.h847 atomic_t num_locks; member
Dsmb2pdu.c2671 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in smb2_lockv()
Dcifssmb.c2313 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in cifs_lockv()
2383 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in CIFSSMBLock()