Lines Matching refs:old

102 	int old, new;  in futex_requeue_pi_prepare()  local
109 old = atomic_read_acquire(&q->requeue_state); in futex_requeue_pi_prepare()
111 if (old == Q_REQUEUE_PI_IGNORE) in futex_requeue_pi_prepare()
122 if (old != Q_REQUEUE_PI_NONE) in futex_requeue_pi_prepare()
126 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_prepare()
134 int old, new; in futex_requeue_pi_complete() local
136 old = atomic_read_acquire(&q->requeue_state); in futex_requeue_pi_complete()
138 if (old == Q_REQUEUE_PI_IGNORE) in futex_requeue_pi_complete()
143 WARN_ON_ONCE(old != Q_REQUEUE_PI_IN_PROGRESS && in futex_requeue_pi_complete()
144 old != Q_REQUEUE_PI_WAIT); in futex_requeue_pi_complete()
146 } else if (old == Q_REQUEUE_PI_IN_PROGRESS) { in futex_requeue_pi_complete()
151 WARN_ON_ONCE(old != Q_REQUEUE_PI_WAIT); in futex_requeue_pi_complete()
154 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_complete()
158 if (unlikely(old == Q_REQUEUE_PI_WAIT)) in futex_requeue_pi_complete()
165 int old, new; in futex_requeue_pi_wakeup_sync() local
167 old = atomic_read_acquire(&q->requeue_state); in futex_requeue_pi_wakeup_sync()
170 if (old >= Q_REQUEUE_PI_DONE) in futex_requeue_pi_wakeup_sync()
171 return old; in futex_requeue_pi_wakeup_sync()
178 if (old == Q_REQUEUE_PI_NONE) in futex_requeue_pi_wakeup_sync()
180 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_wakeup_sync()
183 if (old == Q_REQUEUE_PI_IN_PROGRESS) { in futex_requeue_pi_wakeup_sync()