Lines Matching refs:curval
314 u32 curval; in cmpxchg_futex_value_locked() local
317 curval = futex_atomic_cmpxchg_inatomic(uaddr, uval, newval); in cmpxchg_futex_value_locked()
320 return curval; in cmpxchg_futex_value_locked()
637 u32 curval, newval; in wake_futex_pi() local
664 curval = cmpxchg_futex_value_locked(uaddr, uval, newval); in wake_futex_pi()
666 if (curval == -EFAULT) in wake_futex_pi()
668 else if (curval != uval) in wake_futex_pi()
907 u32 curval; in futex_requeue() local
909 ret = get_futex_value_locked(&curval, uaddr1); in futex_requeue()
916 ret = get_user(curval, uaddr1); in futex_requeue()
923 if (curval != *cmpval) { in futex_requeue()
1097 u32 uval, curval, newval; in fixup_pi_state_owner() local
1130 curval = cmpxchg_futex_value_locked(uaddr, uval, newval); in fixup_pi_state_owner()
1132 if (curval == -EFAULT) in fixup_pi_state_owner()
1134 if (curval == uval) in fixup_pi_state_owner()
1136 uval = curval; in fixup_pi_state_owner()
1387 u32 uval, newval, curval; in futex_lock_pi() local
1422 curval = cmpxchg_futex_value_locked(uaddr, 0, newval); in futex_lock_pi()
1424 if (unlikely(curval == -EFAULT)) in futex_lock_pi()
1431 if (unlikely((curval & FUTEX_TID_MASK) == task_pid_vnr(current))) { in futex_lock_pi()
1439 if (unlikely(!curval)) in futex_lock_pi()
1442 uval = curval; in futex_lock_pi()
1448 newval = curval | FUTEX_WAITERS; in futex_lock_pi()
1458 if (unlikely(ownerdied || !(curval & FUTEX_TID_MASK))) { in futex_lock_pi()
1460 newval = (curval & ~FUTEX_TID_MASK) | task_pid_vnr(current); in futex_lock_pi()
1465 curval = cmpxchg_futex_value_locked(uaddr, uval, newval); in futex_lock_pi()
1467 if (unlikely(curval == -EFAULT)) in futex_lock_pi()
1469 if (unlikely(curval != uval)) in futex_lock_pi()
1502 if (get_futex_value_locked(&curval, uaddr)) in futex_lock_pi()
1510 if (curval & FUTEX_OWNER_DIED) { in futex_lock_pi()
2049 u32 curval; in futex_init() local
2062 curval = cmpxchg_futex_value_locked(NULL, 0, 0); in futex_init()
2063 if (curval == -EFAULT) in futex_init()