Searched refs:ww_mutex_lock (Results 1 – 8 of 8) sorted by relevance
| /linux/kernel/locking/ |
| H A D | test-ww_mutex.c | 52 ww_mutex_lock(&mtx->mutex, NULL); in test_mutex_work() 78 ww_mutex_lock(&mtx.mutex, (flags & TEST_MTX_CTX) ? &ctx : NULL); in __test_mutex() 135 ret = ww_mutex_lock(&mutex, &ctx); in test_aa() 162 ret = ww_mutex_lock(&mutex, &ctx); in test_aa() 198 ww_mutex_lock(&abba->b_mutex, &ctx); in test_abba_work() 207 err = ww_mutex_lock(&abba->a_mutex, &ctx); in test_abba_work() 211 err = ww_mutex_lock(&abba->b_mutex, &ctx); in test_abba_work() 241 ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba() 250 err = ww_mutex_lock(&abba.b_mutex, &ctx); in test_abba() 254 err = ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba() [all …]
|
| H A D | ww_rt_mutex.c | 79 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock() function 83 EXPORT_SYMBOL(ww_mutex_lock);
|
| H A D | locktorture.c | 650 err = ww_mutex_lock(ll->lock, ctx); in torture_ww_mutex_lock()
|
| /linux/include/linux/ |
| H A D | ww_mutex.h | 224 * ww_mutex_lock - acquire the w/w mutex 252 extern int /* __must_check */ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) 301 * needs with ww_mutex_lock. Note that the -EALREADY return code from 302 * ww_mutex_lock can be used to avoid locking this contended mutex twice. 309 * ww_mutex_lock directly. This function here is simply to help w/w mutex in ww_mutex_lock_slow() 320 ret = ww_mutex_lock(lock, ctx); 338 * needs with ww_mutex_lock. Note that the -EALREADY return code from 339 * ww_mutex_lock can be used to avoid locking this contended mutex twice.
|
| /linux/tools/testing/selftests/rcutorture/configs/lock/ |
| H A D | LOCK07.boot | 1 locktorture.torture_type=ww_mutex_lock
|
| /linux/Documentation/locking/ |
| H A D | ww-mutex-design.rst | 76 * Normal lock acquisition with a context, using ww_mutex_lock. 83 required, since simply calling the normal ww_mutex_lock functions on the 86 no deadlock potential and hence the ww_mutex_lock call will block and not 90 - ww_mutex_lock has a __must_check int return type, whereas ww_mutex_lock_slow 100 semantics as a normal mutex. This is done by calling ww_mutex_lock with a NULL 155 ret = ww_mutex_lock(&entry->obj->lock, ctx); 194 ret = ww_mutex_lock(&entry->obj->lock, ctx); 300 ret = ww_mutex_lock(obj->ww_mutex, ctx);
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_modeset_lock.c | 316 ret = ww_mutex_lock(&lock->mutex, &ctx->ww_ctx); in modeset_lock() 400 ww_mutex_lock(&lock->mutex, NULL); in drm_modeset_lock()
|
| /linux/drivers/regulator/ |
| H A D | core.c | 177 ret = ww_mutex_lock(&rdev->mutex, ww_ctx); in regulator_lock_nested()
|