Lines Matching refs:a_mutex
180 struct ww_mutex a_mutex; member
205 err = ww_mutex_lock(&abba->a_mutex, &ctx); in test_abba_work()
208 ww_mutex_lock_slow(&abba->a_mutex, &ctx); in test_abba_work()
213 ww_mutex_unlock(&abba->a_mutex); in test_abba_work()
226 ww_mutex_init(&abba.a_mutex, &ww_class); in test_abba()
238 ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
240 WARN_ON(!ww_mutex_trylock(&abba.a_mutex, &ctx)); in test_abba()
242 WARN_ON(READ_ONCE(abba.a_mutex.ctx) != &ctx); in test_abba()
249 ww_mutex_unlock(&abba.a_mutex); in test_abba()
251 err = ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
256 ww_mutex_unlock(&abba.a_mutex); in test_abba()
281 struct ww_mutex a_mutex; member
295 ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
303 ww_mutex_unlock(&cycle->a_mutex); in test_cycle_work()
305 erra = ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
311 ww_mutex_unlock(&cycle->a_mutex); in test_cycle_work()
330 ww_mutex_init(&cycle->a_mutex, &ww_class); in __test_cycle()
332 cycle->b_mutex = &cycles[0].a_mutex; in __test_cycle()
334 cycle->b_mutex = &cycles[n + 1].a_mutex; in __test_cycle()
365 ww_mutex_destroy(&cycles[n].a_mutex); in __test_cycle()