Home
last modified time | relevance | path

Searched refs:ww (Results 1 – 3 of 3) sorted by relevance

/kernel/locking/
Dww_mutex.h181 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired() argument
190 DEBUG_LOCKS_WARN_ON(ww->ctx); in ww_mutex_lock_acquired()
202 DEBUG_LOCKS_WARN_ON(ww_ctx->contending_lock != ww); in ww_mutex_lock_acquired()
215 DEBUG_LOCKS_WARN_ON(ww_ctx->ww_class != ww->ww_class); in ww_mutex_lock_acquired()
218 ww->ctx = ww_ctx; in ww_mutex_lock_acquired()
417 struct ww_mutex *ww; in __ww_mutex_kill() local
419 ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_kill()
421 ww_ctx->contending_lock = ww; in __ww_mutex_kill()
444 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_check_kill() local
445 struct ww_acquire_ctx *hold_ctx = READ_ONCE(ww->ctx); in __ww_mutex_check_kill()
[all …]
Dmutex.c316 struct ww_mutex *ww; in ww_mutex_spin_on_owner() local
318 ww = container_of(lock, struct ww_mutex, base); in ww_mutex_spin_on_owner()
331 if (ww_ctx->acquired > 0 && READ_ONCE(ww->ctx)) in ww_mutex_spin_on_owner()
596 struct ww_mutex *ww; in __mutex_lock_common() local
606 ww = container_of(lock, struct ww_mutex, base); in __mutex_lock_common()
608 if (unlikely(ww_ctx == READ_ONCE(ww->ctx))) in __mutex_lock_common()
633 ww_mutex_set_context_fastpath(ww, ww_ctx); in __mutex_lock_common()
750 ww_mutex_lock_acquired(ww, ww_ctx); in __mutex_lock_common()
797 int ww_mutex_trylock(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock() argument
800 return mutex_trylock(&ww->base); in ww_mutex_trylock()
[all …]
Drtmutex.c1621 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock() local
1630 ww_mutex_lock_acquired(ww, ww_ctx); in __rt_mutex_slowlock()
1648 ww_mutex_lock_acquired(ww, ww_ctx); in __rt_mutex_slowlock()