Lines Matching refs:v
147 unsigned int v = atomic_load_relaxed (&sem->value); in __new_sem_wait_fast()
150 if ((v >> SEM_VALUE_SHIFT) == 0) in __new_sem_wait_fast()
153 &v, v - (1 << SEM_VALUE_SHIFT))) in __new_sem_wait_fast()
248 unsigned int v; in __new_sem_wait_slow64() local
262 v = atomic_load_relaxed (&sem->value); in __new_sem_wait_slow64()
275 if ((v & SEM_NWAITERS_MASK) != 0) in __new_sem_wait_slow64()
279 &v, v | SEM_NWAITERS_MASK)); in __new_sem_wait_slow64()
281 if ((v >> SEM_VALUE_SHIFT) == 0) in __new_sem_wait_slow64()
294 v = atomic_load_relaxed (&sem->value); in __new_sem_wait_slow64()
298 while ((v >> SEM_VALUE_SHIFT) == 0); in __new_sem_wait_slow64()
304 &v, v - (1 << SEM_VALUE_SHIFT))); in __new_sem_wait_slow64()
346 unsigned int v = atomic_fetch_or_relaxed (&sem->value, in __sem_wait_32_finish() local
353 v >>= SEM_VALUE_SHIFT; in __sem_wait_32_finish()
354 if (v > 0) in __sem_wait_32_finish()
355 futex_wake (&sem->value, v, sem->private); in __sem_wait_32_finish()