Lines Matching refs:mutex
153 mutex_lock(&config->mutex); in drm_modeset_lock_all()
211 mutex_unlock(&dev->mode_config.mutex); in drm_modeset_unlock_all()
230 WARN_ON(!drm_modeset_is_locked(&crtc->mutex)); in drm_warn_on_modeset_not_all_locked()
233 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_warn_on_modeset_not_all_locked()
302 if (!ww_mutex_trylock(&lock->mutex, NULL)) in modeset_lock()
307 ret = ww_mutex_lock_slow_interruptible(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
309 ret = ww_mutex_lock_interruptible(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
311 ww_mutex_lock_slow(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
314 ret = ww_mutex_lock(&lock->mutex, &ctx->ww_ctx); in modeset_lock()
368 ww_mutex_init(&lock->mutex, &crtc_ww_class); in drm_modeset_lock_init()
398 ww_mutex_lock(&lock->mutex, NULL); in drm_modeset_lock()
414 return ww_mutex_lock_interruptible(&lock->mutex, NULL); in drm_modeset_lock_single_interruptible()
425 ww_mutex_unlock(&lock->mutex); in drm_modeset_unlock()
462 ret = drm_modeset_lock(&crtc->mutex, ctx); in drm_modeset_lock_all_ctx()
468 ret = drm_modeset_lock(&plane->mutex, ctx); in drm_modeset_lock_all_ctx()