Searched refs:mtx (Results 1 – 2 of 2) sorted by relevance
42 struct test_mutex *mtx = container_of(work, typeof(*mtx), work); in test_mutex_work() local44 complete(&mtx->ready); in test_mutex_work()45 wait_for_completion(&mtx->go); in test_mutex_work()47 if (mtx->flags & TEST_MTX_TRY) { in test_mutex_work()48 while (!ww_mutex_trylock(&mtx->mutex, NULL)) in test_mutex_work()51 ww_mutex_lock(&mtx->mutex, NULL); in test_mutex_work()53 complete(&mtx->done); in test_mutex_work()54 ww_mutex_unlock(&mtx->mutex); in test_mutex_work()60 struct test_mutex mtx; in __test_mutex() local64 ww_mutex_init(&mtx.mutex, &ww_class); in __test_mutex()[all …]
625 struct mutex *mtx = bp_constraints_lock(bp); in reserve_bp_slot() local628 bp_constraints_unlock(mtx); in reserve_bp_slot()646 struct mutex *mtx = bp_constraints_lock(bp); in release_bp_slot() local650 bp_constraints_unlock(mtx); in release_bp_slot()677 struct mutex *mtx = bp_constraints_lock(bp); in modify_bp_slot() local680 bp_constraints_unlock(mtx); in modify_bp_slot()