Lines Matching refs:ww
307 struct ww_mutex *ww; in ww_mutex_spin_on_owner() local
309 ww = container_of(lock, struct ww_mutex, base); in ww_mutex_spin_on_owner()
322 if (ww_ctx->acquired > 0 && READ_ONCE(ww->ctx)) in ww_mutex_spin_on_owner()
574 struct ww_mutex *ww; in __mutex_lock_common() local
584 ww = container_of(lock, struct ww_mutex, base); in __mutex_lock_common()
586 if (unlikely(ww_ctx == READ_ONCE(ww->ctx))) in __mutex_lock_common()
611 ww_mutex_set_context_fastpath(ww, ww_ctx); in __mutex_lock_common()
725 ww_mutex_lock_acquired(ww, ww_ctx); in __mutex_lock_common()
770 int ww_mutex_trylock(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock() argument
773 return mutex_trylock(&ww->base); in ww_mutex_trylock()
775 MUTEX_WARN_ON(ww->base.magic != &ww->base); in ww_mutex_trylock()
785 if (__mutex_trylock(&ww->base)) { in ww_mutex_trylock()
786 ww_mutex_set_context_fastpath(ww, ww_ctx); in ww_mutex_trylock()
787 mutex_acquire_nest(&ww->base.dep_map, 0, 1, &ww_ctx->dep_map, _RET_IP_); in ww_mutex_trylock()