Lines Matching defs:old
97 int old, new;
104 old = atomic_read_acquire(&q->requeue_state);
106 if (old == Q_REQUEUE_PI_IGNORE)
117 if (old != Q_REQUEUE_PI_NONE)
121 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
129 int old, new;
131 old = atomic_read_acquire(&q->requeue_state);
133 if (old == Q_REQUEUE_PI_IGNORE)
138 WARN_ON_ONCE(old != Q_REQUEUE_PI_IN_PROGRESS &&
139 old != Q_REQUEUE_PI_WAIT);
141 } else if (old == Q_REQUEUE_PI_IN_PROGRESS) {
146 WARN_ON_ONCE(old != Q_REQUEUE_PI_WAIT);
149 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
153 if (unlikely(old == Q_REQUEUE_PI_WAIT))
160 int old, new;
162 old = atomic_read_acquire(&q->requeue_state);
165 if (old >= Q_REQUEUE_PI_DONE)
166 return old;
173 if (old == Q_REQUEUE_PI_NONE)
175 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
178 if (old == Q_REQUEUE_PI_IN_PROGRESS) {