Lines Matching refs:a_mutex
178 struct ww_mutex a_mutex; member
203 err = ww_mutex_lock(&abba->a_mutex, &ctx); in test_abba_work()
206 ww_mutex_lock_slow(&abba->a_mutex, &ctx); in test_abba_work()
211 ww_mutex_unlock(&abba->a_mutex); in test_abba_work()
224 ww_mutex_init(&abba.a_mutex, &ww_class); in test_abba()
236 ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
238 WARN_ON(!ww_mutex_trylock(&abba.a_mutex, &ctx)); in test_abba()
240 WARN_ON(READ_ONCE(abba.a_mutex.ctx) != &ctx); in test_abba()
247 ww_mutex_unlock(&abba.a_mutex); in test_abba()
249 err = ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
254 ww_mutex_unlock(&abba.a_mutex); in test_abba()
279 struct ww_mutex a_mutex; member
293 ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
301 ww_mutex_unlock(&cycle->a_mutex); in test_cycle_work()
303 erra = ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
309 ww_mutex_unlock(&cycle->a_mutex); in test_cycle_work()
328 ww_mutex_init(&cycle->a_mutex, &ww_class); in __test_cycle()
330 cycle->b_mutex = &cycles[0].a_mutex; in __test_cycle()
332 cycle->b_mutex = &cycles[n + 1].a_mutex; in __test_cycle()
363 ww_mutex_destroy(&cycles[n].a_mutex); in __test_cycle()