Searched refs:ww_ctx (Results 1 – 4 of 4) sorted by relevance
| /linux/kernel/locking/ |
| H A D | ww_mutex.h | 181 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired() argument 195 DEBUG_LOCKS_WARN_ON(ww_ctx->done_acquire); in ww_mutex_lock_acquired() 197 if (ww_ctx->contending_lock) { in ww_mutex_lock_acquired() 202 DEBUG_LOCKS_WARN_ON(ww_ctx->contending_lock != ww); in ww_mutex_lock_acquired() 208 DEBUG_LOCKS_WARN_ON(ww_ctx->acquired > 0); in ww_mutex_lock_acquired() 209 ww_ctx->contending_lock = NULL; in ww_mutex_lock_acquired() 215 DEBUG_LOCKS_WARN_ON(ww_ctx->ww_class != ww->ww_class); in ww_mutex_lock_acquired() 217 ww_ctx->acquired++; in ww_mutex_lock_acquired() 218 ww->ctx = ww_ctx; in ww_mutex_lock_acquired() 278 struct ww_acquire_ctx *ww_ctx, struct wake_q_head *wake_q) in __ww_mutex_die() argument [all …]
|
| H A D | ww_rt_mutex.c | 12 int ww_mutex_trylock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock() argument 16 if (!ww_ctx) in ww_mutex_trylock() 24 if (ww_ctx->acquired == 0) in ww_mutex_trylock() 25 ww_ctx->wounded = 0; in ww_mutex_trylock() 28 ww_mutex_set_context_fastpath(lock, ww_ctx); in ww_mutex_trylock() 29 mutex_acquire_nest(&rtm->dep_map, 0, 1, &ww_ctx->dep_map, _RET_IP_); in ww_mutex_trylock() 38 __ww_rt_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx, in __ww_rt_mutex_lock() argument 47 if (ww_ctx) { in __ww_rt_mutex_lock() 48 if (unlikely(ww_ctx == READ_ONCE(lock->ctx))) in __ww_rt_mutex_lock() 56 if (ww_ctx->acquired == 0) in __ww_rt_mutex_lock() [all …]
|
| /linux/drivers/regulator/ |
| H A D | core.c | 159 struct ww_acquire_ctx *ww_ctx) in regulator_lock_nested() argument 166 if (!ww_mutex_trylock(&rdev->mutex, ww_ctx)) { in regulator_lock_nested() 174 ret = ww_mutex_lock(&rdev->mutex, ww_ctx); in regulator_lock_nested() 237 struct ww_acquire_ctx *ww_ctx) in regulator_lock_two() argument 242 ww_acquire_init(ww_ctx, ®ulator_ww_class); in regulator_lock_two() 245 ret = regulator_lock_nested(rdev1, ww_ctx); in regulator_lock_two() 247 ret = regulator_lock_nested(rdev2, ww_ctx); in regulator_lock_two() 258 ww_mutex_lock_slow(&contended->mutex, ww_ctx); in regulator_lock_two() 262 ret = regulator_lock_nested(contended, ww_ctx); in regulator_lock_two() 271 ww_acquire_done(ww_ctx); in regulator_lock_two() [all …]
|
| /linux/include/drm/ |
| H A D | drm_modeset_lock.h | 48 struct ww_acquire_ctx ww_ctx; member
|