Lines Matching refs:old
44 unsigned int old, new, prev;
48 old = *lock;
49 if (old & _DRM_LOCK_HELD)
50 new = old | _DRM_LOCK_CONT;
53 prev = atomic_cas_uint(lock, old, new);
54 } while (prev != old);
56 if (_DRM_LOCKING_CONTEXT(old) == context) {
57 if (old & _DRM_LOCK_HELD) {
81 unsigned int old, new, prev;
85 old = *lock;
87 prev = atomic_cas_uint(lock, old, new);
88 } while (prev != old);
97 unsigned int old, new, prev;
102 old = *lock;
104 prev = atomic_cas_uint(lock, old, new);
105 } while (prev != old);
107 if (_DRM_LOCK_IS_HELD(old) &&
108 (_DRM_LOCKING_CONTEXT(old) != context)) {
110 context, _DRM_LOCKING_CONTEXT(old));