Searched refs:num_locks (Results 1 – 12 of 12) sorted by relevance
| /linux/drivers/hwspinlock/ |
| H A D | omap_hwspinlock.c | 79 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()
|
| H A D | u8500_hsem.c | 91 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()
|
| H A D | hwspinlock_internal.h | 61 int num_locks; member
|
| /linux/drivers/md/ |
| H A D | dm-bufio.c | 392 unsigned int num_locks; member 399 static inline unsigned int cache_index(sector_t block, unsigned int num_locks) in cache_index() argument 401 return dm_hash_locks_index(block, num_locks); in cache_index() 407 read_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_read_lock() 409 down_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_lock() 415 read_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_read_unlock() 417 up_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_unlock() 423 write_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_write_lock() 425 down_write(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_write_lock() 431 write_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_write_unlock() [all …]
|
| /linux/fs/ocfs2/dlm/ |
| H A D | dlmrecovery.c | 1105 BUG_ON(mres->num_locks > DLM_MAX_MIGRATABLE_LOCKS); in dlm_send_mig_lockres_msg() 1106 if (!mres->num_locks) in dlm_send_mig_lockres_msg() 1122 struct_size(mres, ml, mres->num_locks), in dlm_send_mig_lockres_msg() 1162 mres->num_locks = 0; in dlm_init_migratable_lockres() 1209 int lock_num = mres->num_locks; in dlm_add_lock_to_array() 1222 mres->num_locks++; in dlm_add_lock_to_array() 1224 if (mres->num_locks == DLM_MAX_MIGRATABLE_LOCKS) in dlm_add_lock_to_array() 1800 mlog(0, "running %d locks for this lockres\n", mres->num_locks); in dlm_process_recovery_data() 1801 for (i=0; i<mres->num_locks; i++) { in dlm_process_recovery_data() 1806 BUG_ON(mres->num_locks != 1); in dlm_process_recovery_data()
|
| H A D | dlmcommon.h | 552 u8 num_locks; // locks sent in this structure member
|
| /linux/drivers/iommu/iommufd/ |
| H A D | io_pagetable.h | 52 unsigned int num_locks; member
|
| H A D | pages.c | 2449 area->num_locks++; in iopt_area_add_access() 2472 area->num_locks++; in iopt_area_add_access() 2507 WARN_ON(area->num_locks == 0); in iopt_area_remove_access() 2508 area->num_locks--; in iopt_area_remove_access()
|
| /linux/fs/smb/client/ |
| H A D | smb1ops.c | 868 atomic_set(&tcon->stats.cifs_stats.num_locks, 0); in cifs_clear_stats() 887 atomic_read(&tcon->stats.cifs_stats.num_locks), in cifs_print_stats()
|
| H A D | cifsglob.h | 1244 atomic_t num_locks; member
|
| H A D | cifssmb.c | 2043 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in cifs_lockv() 2116 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in CIFSSMBLock()
|
| H A D | smb2pdu.c | 6169 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in smb2_lockv()
|