Lines Matching defs:lock
40 * ctx. And if any lock fxn returns -EDEADLK, it must backoff and
48 * Contended lock: if a lock is contended you should only call
50 * contended lock.
78 * modeset lock
97 void drm_modeset_lock_init(struct drm_modeset_lock *lock);
100 * drm_modeset_lock_fini - cleanup lock
101 * @lock: lock to cleanup
103 static inline void drm_modeset_lock_fini(struct drm_modeset_lock *lock)
105 WARN_ON(!list_empty(&lock->head));
110 * @lock: lock to check
112 static inline bool drm_modeset_is_locked(struct drm_modeset_lock *lock)
114 return ww_mutex_is_locked(&lock->mutex);
119 * @lock: lock to check
121 static inline void drm_modeset_lock_assert_held(struct drm_modeset_lock *lock)
123 lockdep_assert_held(&lock->mutex.base);
126 int drm_modeset_lock(struct drm_modeset_lock *lock,
128 int __must_check drm_modeset_lock_single_interruptible(struct drm_modeset_lock *lock);
129 void drm_modeset_unlock(struct drm_modeset_lock *lock);
158 * Drivers can acquire additional modeset locks. If any lock acquisition