Lines Matching full:old
186 unsigned int old, new, prev; in drm_lock_take() local
191 old = *lock; in drm_lock_take()
192 if (old & _DRM_LOCK_HELD) in drm_lock_take()
193 new = old | _DRM_LOCK_CONT; in drm_lock_take()
199 prev = cmpxchg(lock, old, new); in drm_lock_take()
200 } while (prev != old); in drm_lock_take()
203 if (_DRM_LOCKING_CONTEXT(old) == context) { in drm_lock_take()
204 if (old & _DRM_LOCK_HELD) { in drm_lock_take()
235 unsigned int old, new, prev; in drm_lock_transfer() local
240 old = *lock; in drm_lock_transfer()
242 prev = cmpxchg(lock, old, new); in drm_lock_transfer()
243 } while (prev != old); in drm_lock_transfer()
260 unsigned int old, new, prev; in drm_lock_free() local
273 old = *lock; in drm_lock_free()
274 new = _DRM_LOCKING_CONTEXT(old); in drm_lock_free()
275 prev = cmpxchg(lock, old, new); in drm_lock_free()
276 } while (prev != old); in drm_lock_free()
278 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { in drm_lock_free()
280 context, _DRM_LOCKING_CONTEXT(old)); in drm_lock_free()
302 unsigned int old, new, prev; in drm_notifier() local
312 old = s->lock->lock; in drm_notifier()
313 new = old | _DRM_LOCK_CONT; in drm_notifier()
314 prev = cmpxchg(&s->lock->lock, old, new); in drm_notifier()
315 } while (prev != old); in drm_notifier()
354 unsigned int old, prev; in drm_idlelock_release() local
361 old = *lock; in drm_idlelock_release()
362 prev = cmpxchg(lock, old, DRM_KERNEL_CONTEXT); in drm_idlelock_release()
363 } while (prev != old); in drm_idlelock_release()