Lines Matching refs:drm_modeset_lock
1 /* $NetBSD: drm_modeset_lock.c,v 1.5 2021/12/18 23:44:57 riastradh Exp $ */
27 __KERNEL_RCSID(0, "$NetBSD: drm_modeset_lock.c,v 1.5 2021/12/18 23:44:57 riastradh Exp $");
32 #include <drm/drm_modeset_lock.h>
42 * by &struct drm_modeset_lock and &struct drm_modeset_acquire_ctx.
51 * ret = drm_modeset_lock(lock, ctx)
71 * by passing a NULL instead of ctx in the drm_modeset_lock() call or
200 * all calls to drm_modeset_lock() will perform an interruptible
235 struct drm_modeset_lock *lock;
238 struct drm_modeset_lock, head);
245 static inline int modeset_lock(struct drm_modeset_lock *lock,
275 * we will need to be able to drm_modeset_lock() things
291 * If deadlock is detected (ie. drm_modeset_lock() returns -EDEADLK),
301 struct drm_modeset_lock *contended = ctx->contended;
318 void drm_modeset_lock_init(struct drm_modeset_lock *lock)
326 * drm_modeset_lock - take modeset lock
343 int drm_modeset_lock(struct drm_modeset_lock *lock,
352 EXPORT_SYMBOL(drm_modeset_lock);
358 * This function behaves as drm_modeset_lock() with a NULL context,
363 int drm_modeset_lock_single_interruptible(struct drm_modeset_lock *lock)
373 void drm_modeset_unlock(struct drm_modeset_lock *lock)
408 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, ctx);
413 ret = drm_modeset_lock(&crtc->mutex, ctx);
419 ret = drm_modeset_lock(&plane->mutex, ctx);
425 ret = drm_modeset_lock(&privobj->lock, ctx);