Lines Matching refs:nlocks
394 int nlocks; member
439 const int nlocks = stress->nlocks; in stress_inorder_work() local
444 order = get_random_order(nlocks); in stress_inorder_work()
455 for (n = 0; n < nlocks; n++) { in stress_inorder_work()
504 order = get_random_order(stress->nlocks); in stress_reorder_work()
508 for (n = 0; n < stress->nlocks; n++) { in stress_reorder_work()
557 const int nlocks = stress->nlocks; in stress_one_work() local
558 struct ww_mutex *lock = stress->locks + get_random_u32_below(nlocks); in stress_one_work()
579 static int stress(struct ww_class *class, int nlocks, int nthreads, unsigned int flags) in stress() argument
585 locks = kmalloc_objs(*locks, nlocks); in stress()
595 for (n = 0; n < nlocks; n++) in stress()
627 stress->nlocks = nlocks; in stress()
636 for (n = 0; n < nlocks; n++) in stress()