Lines Matching refs:mutex
30 struct ww_mutex mutex; member
48 while (!ww_mutex_trylock(&mtx->mutex, NULL)) in test_mutex_work()
51 ww_mutex_lock(&mtx->mutex, NULL); in test_mutex_work()
54 ww_mutex_unlock(&mtx->mutex); in test_mutex_work()
64 ww_mutex_init(&mtx.mutex, &ww_class); in __test_mutex()
76 ww_mutex_lock(&mtx.mutex, (flags & TEST_MTX_CTX) ? &ctx : NULL); in __test_mutex()
92 ww_mutex_unlock(&mtx.mutex); in __test_mutex()
123 struct ww_mutex mutex; in test_aa() local
128 ww_mutex_init(&mutex, &ww_class); in test_aa()
132 ret = ww_mutex_lock(&mutex, &ctx); in test_aa()
138 ret = !ww_mutex_trylock(&mutex, &ctx); in test_aa()
145 if (ww_mutex_trylock(&mutex, NULL)) { in test_aa()
147 ww_mutex_unlock(&mutex); in test_aa()
152 if (ww_mutex_trylock(&mutex, &ctx)) { in test_aa()
154 ww_mutex_unlock(&mutex); in test_aa()
159 ret = ww_mutex_lock(&mutex, &ctx); in test_aa()
164 ww_mutex_unlock(&mutex); in test_aa()
169 ww_mutex_unlock(&mutex); in test_aa()