Home
last modified time | relevance | path

Searched refs:mtx (Results 1 – 2 of 2) sorted by relevance

/kernel/locking/
Dtest-ww_mutex.c42 struct test_mutex *mtx = container_of(work, typeof(*mtx), work); in test_mutex_work() local
44 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() local
64 ww_mutex_init(&mtx.mutex, &ww_class); in __test_mutex()
[all …]
/kernel/events/
Dhw_breakpoint.c625 struct mutex *mtx = bp_constraints_lock(bp); in reserve_bp_slot() local
628 bp_constraints_unlock(mtx); in reserve_bp_slot()
646 struct mutex *mtx = bp_constraints_lock(bp); in release_bp_slot() local
650 bp_constraints_unlock(mtx); in release_bp_slot()
677 struct mutex *mtx = bp_constraints_lock(bp); in modify_bp_slot() local
680 bp_constraints_unlock(mtx); in modify_bp_slot()