Lines Matching defs:ww
177 * Associate the ww_mutex @ww with the context @ww_ctx under which we acquired
181 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx)
190 DEBUG_LOCKS_WARN_ON(ww->ctx);
202 DEBUG_LOCKS_WARN_ON(ww_ctx->contending_lock != ww);
215 DEBUG_LOCKS_WARN_ON(ww_ctx->ww_class != ww->ww_class);
218 ww->ctx = ww_ctx;
392 * [W] ww->ctx = ctx [W] MUTEX_FLAG_WAITERS
394 * [R] MUTEX_FLAG_WAITERS [R] ww->ctx
397 * __ww_mutex_add_waiter() and makes sure we either observe ww->ctx
417 struct ww_mutex *ww;
419 ww = container_of(lock, struct ww_mutex, base);
421 ww_ctx->contending_lock = ww;
444 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base);
445 struct ww_acquire_ctx *hold_ctx = READ_ONCE(ww->ctx);
545 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base);
549 * MUTEX_FLAG_WAITERS vs the ww->ctx load,
550 * such that either we or the fastpath will wound @ww->ctx.
553 __ww_mutex_wound(lock, ww_ctx, ww->ctx);