Lines Matching refs:ret
21 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
47 : "=r" (ret), "=&r" (oldval), \
76 : "=r" (ret), "=&r" (oldval), \
82 ret = -ENOSYS; \
92 int oldval = 0, ret; in futex_atomic_op_inuser() local
103 __futex_atomic_op("move $1, %z5", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
108 ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
112 ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
116 ret, oldval, uaddr, ~oparg); in futex_atomic_op_inuser()
120 ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
123 ret = -ENOSYS; in futex_atomic_op_inuser()
128 if (!ret) { in futex_atomic_op_inuser()
130 case FUTEX_OP_CMP_EQ: ret = (oldval == cmparg); break; in futex_atomic_op_inuser()
131 case FUTEX_OP_CMP_NE: ret = (oldval != cmparg); break; in futex_atomic_op_inuser()
132 case FUTEX_OP_CMP_LT: ret = (oldval < cmparg); break; in futex_atomic_op_inuser()
133 case FUTEX_OP_CMP_GE: ret = (oldval >= cmparg); break; in futex_atomic_op_inuser()
134 case FUTEX_OP_CMP_LE: ret = (oldval <= cmparg); break; in futex_atomic_op_inuser()
135 case FUTEX_OP_CMP_GT: ret = (oldval > cmparg); break; in futex_atomic_op_inuser()
136 default: ret = -ENOSYS; in futex_atomic_op_inuser()
139 return ret; in futex_atomic_op_inuser()
146 int ret = 0; in futex_atomic_cmpxchg_inatomic() local
177 : "+r" (ret), "=&r" (val), "=" GCC_OFF_SMALL_ASM() (*uaddr) in futex_atomic_cmpxchg_inatomic()
206 : "+r" (ret), "=&r" (val), "=" GCC_OFF_SMALL_ASM() (*uaddr) in futex_atomic_cmpxchg_inatomic()
214 return ret; in futex_atomic_cmpxchg_inatomic()