Lines Matching refs:nlocks
386 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
541 struct ww_mutex *lock = stress->locks + (get_random_int() % nlocks); in stress_one_work()
564 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument
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()
614 for (n = 0; n < nlocks; n++) in stress()