Searched refs:nlocks (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.15/kernel/locking/ |
| D | test-ww_mutex.c | 346 int nlocks; member 381 const int nlocks = stress->nlocks; in stress_inorder_work() local 386 order = get_random_order(nlocks); in stress_inorder_work() 397 for (n = 0; n < nlocks; n++) { in stress_inorder_work() 446 order = get_random_order(stress->nlocks); in stress_reorder_work() 450 for (n = 0; n < stress->nlocks; n++) { in stress_reorder_work() 500 const int nlocks = stress->nlocks; in stress_one_work() local 501 struct ww_mutex *lock = stress->locks + (get_random_int() % nlocks); in stress_one_work() 524 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument 529 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress() [all …]
|
| /Linux-v5.15/drivers/hwspinlock/ |
| D | sun6i_hwspinlock.c | 34 int nlocks; member 43 seq_printf(seqf, "%d\n", priv->nlocks); in hwlocks_supported_show() 149 priv->nlocks = 1 << (4 + num_banks); in sun6i_hwspinlock_probe() 157 priv->bank = devm_kzalloc(&pdev->dev, struct_size(priv->bank, lock, priv->nlocks), in sun6i_hwspinlock_probe() 164 for (i = 0; i < priv->nlocks; ++i) { in sun6i_hwspinlock_probe() 183 SPINLOCK_BASE_ID, priv->nlocks); in sun6i_hwspinlock_probe()
|
| /Linux-v5.15/fs/ceph/ |
| D | locks.c | 469 __le32 nlocks; in ceph_locks_to_pagelist() local 471 nlocks = cpu_to_le32(num_fcntl_locks); in ceph_locks_to_pagelist() 472 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist() 483 nlocks = cpu_to_le32(num_flock_locks); in ceph_locks_to_pagelist() 484 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
|