Lines Matching refs:nlocks
386 int nlocks; member
434 const int nlocks = stress->nlocks; in stress_inorder_work() local
439 order = get_random_order(nlocks); in stress_inorder_work()
450 for (n = 0; n < nlocks; n++) { in stress_inorder_work()
499 order = get_random_order(stress->nlocks); in stress_reorder_work()
503 for (n = 0; n < stress->nlocks; n++) { in stress_reorder_work()
552 const int nlocks = stress->nlocks; in stress_one_work() local
553 struct ww_mutex *lock = stress->locks + get_random_u32_below(nlocks); in stress_one_work()
574 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument
580 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress()
591 for (n = 0; n < nlocks; n++) in stress()
622 stress->nlocks = nlocks; in stress()
631 for (n = 0; n < nlocks; n++) in stress()