Home
last modified time | relevance | path

Searched refs:oparg (Results 1 – 18 of 18) sorted by relevance

/arch/arc/include/asm/
Dfutex.h18 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)\ argument
40 : "r" (uaddr), "r" (oparg), "ir" (-EFAULT) \
46 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)\ argument
67 : "r" (uaddr), "r" (oparg), "ir" (-EFAULT) \
73 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
87 __futex_atomic_op("mov %0, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
91 __futex_atomic_op("add %0, %1, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
94 __futex_atomic_op("or %0, %1, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
97 __futex_atomic_op("bic %0, %1, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
100 __futex_atomic_op("xor %0, %1, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/ia64/include/asm/
Dfutex.h9 #define __futex_atomic_op1(insn, ret, oldval, uaddr, oparg) \ argument
18 : "r" (uaddr), "r" (oparg) \
23 #define __futex_atomic_op2(insn, ret, oldval, uaddr, oparg) \ argument
40 : "r" (uaddr), "r" (oparg) \
49 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
59 oparg); in arch_futex_atomic_op_inuser()
62 __futex_atomic_op2("add %3=%3,%5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
65 __futex_atomic_op2("or %3=%3,%5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
69 ~oparg); in arch_futex_atomic_op_inuser()
72 __futex_atomic_op2("xor %3=%3,%5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/x86/include/asm/
Dfutex.h15 #define unsafe_atomic_op1(insn, oval, uaddr, oparg, label) \ argument
26 : "i" (-EFAULT), "0" (oparg), "1" (0)); \
33 #define unsafe_atomic_op2(insn, oval, uaddr, oparg, label) \ argument
50 : "r" (oparg), "i" (-EFAULT), "1" (0)); \
56 static __always_inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
64 unsafe_atomic_op1("xchgl %0, %2", oval, uaddr, oparg, Efault); in arch_futex_atomic_op_inuser()
68 uaddr, oparg, Efault); in arch_futex_atomic_op_inuser()
71 unsafe_atomic_op2("orl %4, %3", oval, uaddr, oparg, Efault); in arch_futex_atomic_op_inuser()
74 unsafe_atomic_op2("andl %4, %3", oval, uaddr, ~oparg, Efault); in arch_futex_atomic_op_inuser()
77 unsafe_atomic_op2("xorl %4, %3", oval, uaddr, oparg, Efault); in arch_futex_atomic_op_inuser()
/arch/sparc/include/asm/
Dfutex_64.h9 #define __futex_cas_op(insn, ret, oldval, uaddr, oparg) \ argument
30 : "r" (uaddr), "r" (oparg), "i" (-EFAULT) \
33 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
43 __futex_cas_op("mov\t%4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
46 __futex_cas_op("add\t%2, %4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
49 __futex_cas_op("or\t%2, %4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
52 __futex_cas_op("andn\t%2, %4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
55 __futex_cas_op("xor\t%2, %4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/openrisc/include/asm/
Dfutex.h11 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
28 : "i" (-EFAULT), "r" (oparg) \
34 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
43 __futex_atomic_op("l.or %1,%4,%4", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
46 __futex_atomic_op("l.add %1,%0,%4", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
49 __futex_atomic_op("l.or %1,%0,%4", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
52 __futex_atomic_op("l.and %1,%0,%4", ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
55 __futex_atomic_op("l.xor %1,%0,%4", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/microblaze/include/asm/
Dfutex.h11 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
28 : "r" (uaddr), "i" (-EFAULT), "r" (oparg) \
33 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
42 __futex_atomic_op("or %1,%4,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
45 __futex_atomic_op("add %1,%0,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 __futex_atomic_op("or %1,%0,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
51 __futex_atomic_op("andn %1,%0,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
54 __futex_atomic_op("xor %1,%0,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/hexagon/include/asm/
Dfutex.h13 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
30 : "r" (uaddr), "r" (oparg), "i" (-EFAULT) \
35 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
44 __futex_atomic_op("%1 = %4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 oparg); in arch_futex_atomic_op_inuser()
52 oparg); in arch_futex_atomic_op_inuser()
56 oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
60 oparg); in arch_futex_atomic_op_inuser()
/arch/alpha/include/asm/
Dfutex.h12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
26 : "r" (uaddr), "r"(oparg) \
29 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
39 __futex_atomic_op("mov %3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
42 __futex_atomic_op("addl %0,%3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
45 __futex_atomic_op("or %0,%3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 __futex_atomic_op("andnot %0,%3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
51 __futex_atomic_op("xor %0,%3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/nds32/include/asm/
Dfutex.h22 #define __futex_atomic_op(insn, ret, oldval, tmp, uaddr, oparg) \ argument
34 : "r" (uaddr), "r" (oparg), "i" (-EFAULT) \
65 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
74 oparg); in arch_futex_atomic_op_inuser()
78 oparg); in arch_futex_atomic_op_inuser()
82 oparg); in arch_futex_atomic_op_inuser()
86 ~oparg); in arch_futex_atomic_op_inuser()
90 oparg); in arch_futex_atomic_op_inuser()
/arch/riscv/include/asm/
Dfutex.h21 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
39 : [op] "Jr" (oparg), [e] "i" (-EFAULT) \
45 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
55 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
59 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
63 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
67 ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
71 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/s390/include/asm/
Dfutex.h10 #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ argument
23 : "0" (-EFAULT), "d" (oparg), "a" (uaddr), \
26 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
36 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
40 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
44 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
52 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/powerpc/include/asm/
Dfutex.h12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
28 : "b" (uaddr), "i" (-EFAULT), "r" (oparg) \
31 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
42 __futex_atomic_op("mr %1,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
45 __futex_atomic_op("add %1,%0,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 __futex_atomic_op("or %1,%0,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
51 __futex_atomic_op("andc %1,%0,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
54 __futex_atomic_op("xor %1,%0,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/mips/include/asm/
Dfutex.h22 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
50 : "0" (0), GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oparg), \
80 : "0" (0), GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oparg), \
88 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
97 __futex_atomic_op("move $1, %z5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
102 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
106 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
110 ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
114 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/arm/include/asm/
Dfutex.h25 #define __futex_atomic_op(insn, ret, oldval, tmp, uaddr, oparg) \ argument
40 : "r" (uaddr), "r" (oparg), "Ir" (-EFAULT) \
84 #define __futex_atomic_op(insn, ret, oldval, tmp, uaddr, oparg) \ argument
94 : "r" (uaddr), "r" (oparg), "Ir" (-EFAULT) \
133 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
146 __futex_atomic_op("mov %0, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
149 __futex_atomic_op("add %0, %1, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
152 __futex_atomic_op("orr %0, %1, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
155 __futex_atomic_op("and %0, %1, %4", ret, oldval, tmp, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
158 __futex_atomic_op("eor %0, %1, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/arm64/include/asm/
Dfutex.h15 #define __futex_atomic_op(insn, ret, oldval, uaddr, tmp, oparg) \ argument
40 : "r" (oparg), "Ir" (-EFAULT), "Ir" (-EAGAIN) \
46 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *_uaddr) in arch_futex_atomic_op_inuser() argument
57 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
61 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
65 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
69 ret, oldval, uaddr, tmp, ~oparg); in arch_futex_atomic_op_inuser()
73 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
/arch/xtensa/include/asm/
Dfutex.h40 : [addr] "r" (uaddr), [oparg] "r" (arg), \
65 : [oparg] "r" (arg), [fault] "I" (-EFAULT) \
69 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
81 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
85 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
89 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
93 ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
97 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/sh/include/asm/
Dfutex.h29 static inline int arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, in arch_futex_atomic_op_inuser() argument
42 newval = oparg; in arch_futex_atomic_op_inuser()
45 newval = oldval + oparg; in arch_futex_atomic_op_inuser()
48 newval = oldval | oparg; in arch_futex_atomic_op_inuser()
51 newval = oldval & ~oparg; in arch_futex_atomic_op_inuser()
54 newval = oldval ^ oparg; in arch_futex_atomic_op_inuser()
/arch/parisc/include/asm/
Dfutex.h36 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
53 tmp = oparg; in arch_futex_atomic_op_inuser()
56 tmp += oparg; in arch_futex_atomic_op_inuser()
59 tmp |= oparg; in arch_futex_atomic_op_inuser()
62 tmp &= ~oparg; in arch_futex_atomic_op_inuser()
65 tmp ^= oparg; in arch_futex_atomic_op_inuser()