Home
last modified time | relevance | path

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

/openbmc/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c65 u32 id, size, nplanes, planesize, nlocks; in flash_init() local
92 nlocks = readl(&eefc->frr); /* word 4+nplanes */ in flash_init()
93 debug("nlocks=%u\n", nlocks); in flash_init()
95 if (nlocks > CONFIG_SYS_MAX_FLASH_SECT) { in flash_init()
98 nlocks); in flash_init()
99 nlocks = CONFIG_SYS_MAX_FLASH_SECT; in flash_init()
102 flash_info[0].sector_count = nlocks; in flash_init()
106 for (i=0; i<nlocks; i++) { in flash_init()
/openbmc/linux/kernel/locking/
H 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()
485 order = get_random_order(stress->nlocks); in stress_reorder_work()
489 for (n = 0; n < stress->nlocks; n++) { in stress_reorder_work()
538 const int nlocks = stress->nlocks; in stress_one_work() local
539 struct ww_mutex *lock = stress->locks + get_random_u32_below(nlocks); in stress_one_work()
560 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument
566 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress()
[all …]
/openbmc/linux/drivers/hwspinlock/
H 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()
/openbmc/linux/fs/ceph/
H A Dlocks.c485 __le32 nlocks; in ceph_locks_to_pagelist() local
487 nlocks = cpu_to_le32(num_fcntl_locks); in ceph_locks_to_pagelist()
488 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
499 nlocks = cpu_to_le32(num_flock_locks); in ceph_locks_to_pagelist()
500 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()