Lines Matching refs:ret
11 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
28 : "=&r" (oldval), "=&r"(ret) \
38 int oldval = 0, ret; in futex_atomic_op_inuser() local
49 __futex_atomic_op("mov %3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
52 __futex_atomic_op("addl %0,%3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
55 __futex_atomic_op("or %0,%3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
58 __futex_atomic_op("andnot %0,%3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
61 __futex_atomic_op("xor %0,%3,%1\n", 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()
71 case FUTEX_OP_CMP_EQ: ret = (oldval == cmparg); break; in futex_atomic_op_inuser()
72 case FUTEX_OP_CMP_NE: ret = (oldval != cmparg); break; in futex_atomic_op_inuser()
73 case FUTEX_OP_CMP_LT: ret = (oldval < cmparg); break; in futex_atomic_op_inuser()
74 case FUTEX_OP_CMP_GE: ret = (oldval >= cmparg); break; in futex_atomic_op_inuser()
75 case FUTEX_OP_CMP_LE: ret = (oldval <= cmparg); break; in futex_atomic_op_inuser()
76 case FUTEX_OP_CMP_GT: ret = (oldval > cmparg); break; in futex_atomic_op_inuser()
77 default: ret = -ENOSYS; in futex_atomic_op_inuser()
80 return ret; in futex_atomic_op_inuser()
87 int ret = 0, cmp; in futex_atomic_cmpxchg_inatomic() local
110 : "+r"(ret), "=&r"(prev), "=&r"(cmp) in futex_atomic_cmpxchg_inatomic()
115 return ret; in futex_atomic_cmpxchg_inatomic()