Lines Matching refs:drm_modeset_lock
27 #include <drm/drm_modeset_lock.h>
38 * by &struct drm_modeset_lock and &struct drm_modeset_acquire_ctx.
47 * ret = drm_modeset_lock(lock, ctx)
67 * by passing a NULL instead of ctx in the drm_modeset_lock() call or
94 struct drm_printer p = drm_dbg_printer(NULL, DRM_UT_KMS, "drm_modeset_lock");
243 * all calls to drm_modeset_lock() will perform an interruptible
280 struct drm_modeset_lock *lock;
283 struct drm_modeset_lock, head);
290 static inline int modeset_lock(struct drm_modeset_lock *lock,
321 * we will need to be able to drm_modeset_lock() things
338 * If deadlock is detected (ie. drm_modeset_lock() returns -EDEADLK),
348 struct drm_modeset_lock *contended = ctx->contended;
366 void drm_modeset_lock_init(struct drm_modeset_lock *lock)
375 * drm_modeset_lock - take modeset lock
392 int drm_modeset_lock(struct drm_modeset_lock *lock,
401 EXPORT_SYMBOL(drm_modeset_lock);
407 * This function behaves as drm_modeset_lock() with a NULL context,
412 int drm_modeset_lock_single_interruptible(struct drm_modeset_lock *lock)
422 void drm_modeset_unlock(struct drm_modeset_lock *lock)
457 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, ctx);
462 ret = drm_modeset_lock(&crtc->mutex, ctx);
468 ret = drm_modeset_lock(&plane->mutex, ctx);
474 ret = drm_modeset_lock(&privobj->lock, ctx);