Home
last modified time | relevance | path

Searched refs:nlocks (Results 1 – 3 of 3) sorted by relevance

/linux/kernel/locking/
A Dtest-ww_mutex.c386 int nlocks; member
421 const int nlocks = stress->nlocks; in stress_inorder_work() local
426 order = get_random_order(nlocks); in stress_inorder_work()
437 for (n = 0; n < nlocks; n++) { in stress_inorder_work()
486 order = get_random_order(stress->nlocks); in stress_reorder_work()
490 for (n = 0; n < stress->nlocks; n++) { in stress_reorder_work()
540 const int nlocks = stress->nlocks; in stress_one_work() local
569 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress()
573 for (n = 0; n < nlocks; n++) in stress()
605 stress->nlocks = nlocks; in stress()
[all …]
/linux/drivers/hwspinlock/
A Dsun6i_hwspinlock.c34 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/fs/ceph/
A Dlocks.c472 __le32 nlocks; in ceph_locks_to_pagelist() local
474 nlocks = cpu_to_le32(num_fcntl_locks); in ceph_locks_to_pagelist()
475 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
486 nlocks = cpu_to_le32(num_flock_locks); in ceph_locks_to_pagelist()
487 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()

Completed in 9 milliseconds