Lines Matching refs:b_mutex
179 struct ww_mutex b_mutex; member
194 ww_mutex_lock(&abba->b_mutex, &ctx); in test_abba_work()
196 WARN_ON(!ww_mutex_trylock(&abba->b_mutex, &ctx)); in test_abba_work()
198 WARN_ON(READ_ONCE(abba->b_mutex.ctx) != &ctx); in test_abba_work()
205 ww_mutex_unlock(&abba->b_mutex); in test_abba_work()
207 err = ww_mutex_lock(&abba->b_mutex, &ctx); in test_abba_work()
212 ww_mutex_unlock(&abba->b_mutex); in test_abba_work()
225 ww_mutex_init(&abba.b_mutex, &ww_class); in test_abba()
245 err = ww_mutex_lock(&abba.b_mutex, &ctx); in test_abba()
248 ww_mutex_lock_slow(&abba.b_mutex, &ctx); in test_abba()
253 ww_mutex_unlock(&abba.b_mutex); in test_abba()
280 struct ww_mutex *b_mutex; member
298 err = ww_mutex_lock(cycle->b_mutex, &ctx); in test_cycle_work()
302 ww_mutex_lock_slow(cycle->b_mutex, &ctx); in test_cycle_work()
307 ww_mutex_unlock(cycle->b_mutex); in test_cycle_work()
330 cycle->b_mutex = &cycles[0].a_mutex; in __test_cycle()
332 cycle->b_mutex = &cycles[n + 1].a_mutex; in __test_cycle()