Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c66 u32 id, size, nplanes, planesize, nlocks; in flash_init() local
93 nlocks = readl(&eefc->frr); /* word 4+nplanes */ in flash_init()
94 debug("nlocks=%u\n", nlocks); in flash_init()
96 if (nlocks > CONFIG_SYS_MAX_FLASH_SECT) { in flash_init()
99 nlocks); in flash_init()
100 nlocks = CONFIG_SYS_MAX_FLASH_SECT; in flash_init()
103 flash_info[0].sector_count = nlocks; in flash_init()
107 for (i=0; i<nlocks; i++) { in flash_init()
/OK3568_Linux_fs/kernel/kernel/locking/
H A Dtest-ww_mutex.c346 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 …]
/OK3568_Linux_fs/kernel/fs/ceph/
H 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()