Lines Matching refs:old
95 int old, new; in futex_requeue_pi_prepare() local
102 old = atomic_read_acquire(&q->requeue_state); in futex_requeue_pi_prepare()
104 if (old == Q_REQUEUE_PI_IGNORE) in futex_requeue_pi_prepare()
115 if (old != Q_REQUEUE_PI_NONE) in futex_requeue_pi_prepare()
119 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_prepare()
127 int old, new; in futex_requeue_pi_complete() local
129 old = atomic_read_acquire(&q->requeue_state); in futex_requeue_pi_complete()
131 if (old == Q_REQUEUE_PI_IGNORE) in futex_requeue_pi_complete()
136 WARN_ON_ONCE(old != Q_REQUEUE_PI_IN_PROGRESS && in futex_requeue_pi_complete()
137 old != Q_REQUEUE_PI_WAIT); in futex_requeue_pi_complete()
139 } else if (old == Q_REQUEUE_PI_IN_PROGRESS) { in futex_requeue_pi_complete()
144 WARN_ON_ONCE(old != Q_REQUEUE_PI_WAIT); in futex_requeue_pi_complete()
147 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_complete()
151 if (unlikely(old == Q_REQUEUE_PI_WAIT)) in futex_requeue_pi_complete()
158 int old, new; in futex_requeue_pi_wakeup_sync() local
160 old = atomic_read_acquire(&q->requeue_state); in futex_requeue_pi_wakeup_sync()
163 if (old >= Q_REQUEUE_PI_DONE) in futex_requeue_pi_wakeup_sync()
164 return old; in futex_requeue_pi_wakeup_sync()
171 if (old == Q_REQUEUE_PI_NONE) in futex_requeue_pi_wakeup_sync()
173 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_wakeup_sync()
176 if (old == Q_REQUEUE_PI_IN_PROGRESS) { in futex_requeue_pi_wakeup_sync()