Lines Matching refs:ww
316 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()
802 MUTEX_WARN_ON(ww->base.magic != &ww->base); in ww_mutex_trylock()
812 if (__mutex_trylock(&ww->base)) { in ww_mutex_trylock()
813 ww_mutex_set_context_fastpath(ww, ww_ctx); in ww_mutex_trylock()
814 mutex_acquire_nest(&ww->base.dep_map, 0, 1, &ww_ctx->dep_map, _RET_IP_); in ww_mutex_trylock()