Lines Matching refs:old
62 unsigned int old, new, prev; in drm_lock_take() local
67 old = *lock; in drm_lock_take()
68 if (old & _DRM_LOCK_HELD) in drm_lock_take()
69 new = old | _DRM_LOCK_CONT; in drm_lock_take()
75 prev = cmpxchg(lock, old, new); in drm_lock_take()
76 } while (prev != old); in drm_lock_take()
79 if (_DRM_LOCKING_CONTEXT(old) == context) { in drm_lock_take()
80 if (old & _DRM_LOCK_HELD) { in drm_lock_take()
111 unsigned int old, new, prev; in drm_lock_transfer() local
116 old = *lock; in drm_lock_transfer()
118 prev = cmpxchg(lock, old, new); in drm_lock_transfer()
119 } while (prev != old); in drm_lock_transfer()
126 unsigned int old, new, prev; in drm_legacy_lock_free() local
139 old = *lock; in drm_legacy_lock_free()
140 new = _DRM_LOCKING_CONTEXT(old); in drm_legacy_lock_free()
141 prev = cmpxchg(lock, old, new); in drm_legacy_lock_free()
142 } while (prev != old); in drm_legacy_lock_free()
144 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { in drm_legacy_lock_free()
146 context, _DRM_LOCKING_CONTEXT(old)); in drm_legacy_lock_free()
311 unsigned int old, prev; in drm_legacy_idlelock_release() local
318 old = *lock; in drm_legacy_idlelock_release()
319 prev = cmpxchg(lock, old, DRM_KERNEL_CONTEXT); in drm_legacy_idlelock_release()
320 } while (prev != old); in drm_legacy_idlelock_release()