Lines Matching defs:nlocks
388 int nlocks;
433 const int nlocks = stress->nlocks;
438 order = get_random_order(nlocks);
449 for (n = 0; n < nlocks; n++) {
498 order = get_random_order(stress->nlocks);
502 for (n = 0; n < stress->nlocks; n++) {
551 const int nlocks = stress->nlocks;
552 struct ww_mutex *lock = stress->locks + get_random_u32_below(nlocks);
573 static int stress(int nlocks, int nthreads, unsigned int flags)
579 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL);
590 for (n = 0; n < nlocks; n++)
621 stress->nlocks = nlocks;
630 for (n = 0; n < nlocks; n++)