Lines Matching refs:a_mutex
182 struct ww_mutex a_mutex; member
207 err = ww_mutex_lock(&abba->a_mutex, &ctx); in test_abba_work()
210 ww_mutex_lock_slow(&abba->a_mutex, &ctx); in test_abba_work()
215 ww_mutex_unlock(&abba->a_mutex); in test_abba_work()
228 ww_mutex_init(&abba.a_mutex, class); in test_abba()
241 ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
243 WARN_ON(!ww_mutex_trylock(&abba.a_mutex, &ctx)); in test_abba()
245 WARN_ON(READ_ONCE(abba.a_mutex.ctx) != &ctx); in test_abba()
252 ww_mutex_unlock(&abba.a_mutex); in test_abba()
254 err = ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
259 ww_mutex_unlock(&abba.a_mutex); in test_abba()
285 struct ww_mutex a_mutex; member
299 ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
307 ww_mutex_unlock(&cycle->a_mutex); in test_cycle_work()
309 erra = ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
315 ww_mutex_unlock(&cycle->a_mutex); in test_cycle_work()
335 ww_mutex_init(&cycle->a_mutex, class); in __test_cycle()
337 cycle->b_mutex = &cycles[0].a_mutex; in __test_cycle()
339 cycle->b_mutex = &cycles[n + 1].a_mutex; in __test_cycle()
370 ww_mutex_destroy(&cycles[n].a_mutex); in __test_cycle()