Lines Matching refs:ret
10 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
26 : "=&r" (oldval), "=&r" (ret) \
38 int oldval = 0, ret; in futex_atomic_op_inuser() local
49 __futex_atomic_op("or %1,%4,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
52 __futex_atomic_op("add %1,%0,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
55 __futex_atomic_op("or %1,%0,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
58 __futex_atomic_op("andn %1,%0,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
61 __futex_atomic_op("xor %1,%0,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
64 ret = -ENOSYS; in futex_atomic_op_inuser()
69 if (!ret) { in futex_atomic_op_inuser()
72 ret = (oldval == cmparg); in futex_atomic_op_inuser()
75 ret = (oldval != cmparg); in futex_atomic_op_inuser()
78 ret = (oldval < cmparg); in futex_atomic_op_inuser()
81 ret = (oldval >= cmparg); in futex_atomic_op_inuser()
84 ret = (oldval <= cmparg); in futex_atomic_op_inuser()
87 ret = (oldval > cmparg); in futex_atomic_op_inuser()
90 ret = -ENOSYS; in futex_atomic_op_inuser()
93 return ret; in futex_atomic_op_inuser()
100 int ret = 0, cmp; in futex_atomic_cmpxchg_inatomic() local
120 : "+r" (ret), "=&r" (prev), "=&r"(cmp) \ in futex_atomic_cmpxchg_inatomic()
124 return ret; in futex_atomic_cmpxchg_inatomic()