Lines Matching refs:cycles
290 struct test_cycle *cycles; in __test_cycle() local
294 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); in __test_cycle()
295 if (!cycles) in __test_cycle()
299 struct test_cycle *cycle = &cycles[n]; in __test_cycle()
303 cycle->b_mutex = &cycles[0].a_mutex; in __test_cycle()
305 cycle->b_mutex = &cycles[n + 1].a_mutex; in __test_cycle()
308 cycle->a_signal = &cycles[last].b_signal; in __test_cycle()
310 cycle->a_signal = &cycles[n - 1].b_signal; in __test_cycle()
318 queue_work(wq, &cycles[n].work); in __test_cycle()
324 struct test_cycle *cycle = &cycles[n]; in __test_cycle()
336 ww_mutex_destroy(&cycles[n].a_mutex); in __test_cycle()
337 kfree(cycles); in __test_cycle()