Searched refs:nlocks (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/hwspinlock/ |
H A 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/fs/ceph/ |
H A D | locks.c | 496 __le32 nlocks; in ceph_locks_to_pagelist() local 498 nlocks = cpu_to_le32(num_fcntl_locks); in ceph_locks_to_pagelist() 499 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist() 510 nlocks = cpu_to_le32(num_flock_locks); in ceph_locks_to_pagelist() 511 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
|