Home
last modified time | relevance | path

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

/arch/frv/kernel/
Dfutex.c21 static inline int atomic_futex_op_xchg_set(int oparg, u32 __user *uaddr, int *_oldval) in atomic_futex_op_xchg_set() argument
44 : "+U"(*uaddr), "=&r"(oldval), "=&r"(ret), "=r"(oparg) in atomic_futex_op_xchg_set()
45 : "3"(oparg), "i"(-EFAULT) in atomic_futex_op_xchg_set()
53 static inline int atomic_futex_op_xchg_add(int oparg, u32 __user *uaddr, int *_oldval) in atomic_futex_op_xchg_add() argument
77 : "+U"(*uaddr), "=&r"(oldval), "=&r"(ret), "=r"(oparg) in atomic_futex_op_xchg_add()
78 : "3"(oparg), "i"(-EFAULT) in atomic_futex_op_xchg_add()
86 static inline int atomic_futex_op_xchg_or(int oparg, u32 __user *uaddr, int *_oldval) in atomic_futex_op_xchg_or() argument
110 : "+U"(*uaddr), "=&r"(oldval), "=&r"(ret), "=r"(oparg) in atomic_futex_op_xchg_or()
111 : "3"(oparg), "i"(-EFAULT) in atomic_futex_op_xchg_or()
119 static inline int atomic_futex_op_xchg_and(int oparg, u32 __user *uaddr, int *_oldval) in atomic_futex_op_xchg_and() argument
[all …]
/arch/x86/include/asm/
Dfutex.h15 #define __futex_atomic_op1(insn, ret, oldval, uaddr, oparg) \ argument
25 : "i" (-EFAULT), "0" (oparg), "1" (0))
27 #define __futex_atomic_op2(insn, ret, oldval, uaddr, oparg) \ argument
43 : "r" (oparg), "i" (-EFAULT), "1" (0))
45 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
54 __futex_atomic_op1("xchgl %0, %2", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
58 uaddr, oparg); in arch_futex_atomic_op_inuser()
61 __futex_atomic_op2("orl %4, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
64 __futex_atomic_op2("andl %4, %3", ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
67 __futex_atomic_op2("xorl %4, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/arc/include/asm/
Dfutex.h21 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)\ argument
43 : "r" (uaddr), "r" (oparg), "ir" (-EFAULT) \
49 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)\ argument
70 : "r" (uaddr), "r" (oparg), "ir" (-EFAULT) \
76 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
88 __futex_atomic_op("mov %0, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
92 __futex_atomic_op("add %0, %1, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
95 __futex_atomic_op("or %0, %1, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
98 __futex_atomic_op("bic %0, %1, %3", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
101 __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
58 oparg); in arch_futex_atomic_op_inuser()
61 __futex_atomic_op2("add %3=%3,%5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
64 __futex_atomic_op2("or %3=%3,%5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
68 ~oparg); in arch_futex_atomic_op_inuser()
71 __futex_atomic_op2("xor %3=%3,%5", 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
42 __futex_atomic_op("l.or %1,%4,%4", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
45 __futex_atomic_op("l.add %1,%0,%4", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 __futex_atomic_op("l.or %1,%0,%4", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
51 __futex_atomic_op("l.and %1,%0,%4", ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
54 __futex_atomic_op("l.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
43 __futex_atomic_op("%1 = %4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
47 oparg); in arch_futex_atomic_op_inuser()
51 oparg); in arch_futex_atomic_op_inuser()
55 oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
59 oparg); 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
45 __futex_cas_op("mov\t%4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 __futex_cas_op("add\t%2, %4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
51 __futex_cas_op("or\t%2, %4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
54 __futex_cas_op("andn\t%2, %4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
57 __futex_cas_op("xor\t%2, %4, %1", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/xtensa/include/asm/
Dfutex.h24 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
44 : "r" (uaddr), "I" (-EFAULT), "r" (oparg) \
47 static inline int arch_futex_atomic_op_inuser(int op, int oparg, int *oval, in arch_futex_atomic_op_inuser() argument
60 __futex_atomic_op("mov %1, %4", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
64 oparg); in arch_futex_atomic_op_inuser()
68 oparg); in arch_futex_atomic_op_inuser()
72 ~oparg); in arch_futex_atomic_op_inuser()
76 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
41 __futex_atomic_op("or %1,%4,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
44 __futex_atomic_op("add %1,%0,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
47 __futex_atomic_op("or %1,%0,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
50 __futex_atomic_op("andn %1,%0,%4;", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
53 __futex_atomic_op("xor %1,%0,%4;", 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
22 : "0" (-EFAULT), "d" (oparg), "a" (uaddr), \
25 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/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
38 __futex_atomic_op("mov %3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
41 __futex_atomic_op("addl %0,%3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
44 __futex_atomic_op("or %0,%3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
47 __futex_atomic_op("andnot %0,%3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
50 __futex_atomic_op("xor %0,%3,%1\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/powerpc/include/asm/
Dfutex.h13 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
30 : "b" (uaddr), "i" (-EFAULT), "r" (oparg) \
33 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.h21 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
49 : "0" (0), GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oparg), \
78 : "0" (0), GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oparg), \
86 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
94 __futex_atomic_op("move $1, %z5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
99 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
103 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
107 ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
111 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/tile/include/asm/
Dfutex.h51 : "r" (uaddr), "r" (oparg), "i" (-EFAULT))
56 #define __futex_andn() ({ oparg = ~oparg; __futex_asm(fetchand4); })
62 u32 oldval, n = oparg; \
65 oparg = oldval ^ n; \
78 struct __get_user gu = FN((u32 __force *)uaddr, lock, oparg); \
92 lock, oldval, oparg); \
109 static inline int arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, in arch_futex_atomic_op_inuser() argument
149 u32 oldval, u32 oparg) in futex_atomic_cmpxchg_inatomic() argument
/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) \
132 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
143 __futex_atomic_op("mov %0, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
146 __futex_atomic_op("add %0, %1, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
149 __futex_atomic_op("orr %0, %1, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
152 __futex_atomic_op("and %0, %1, %4", ret, oldval, tmp, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
155 __futex_atomic_op("eor %0, %1, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
/arch/arm64/include/asm/
Dfutex.h28 #define __futex_atomic_op(insn, ret, oldval, uaddr, tmp, oparg) \ argument
53 : "r" (oparg), "Ir" (-EFAULT), "Ir" (-EAGAIN) \
59 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *_uaddr) in arch_futex_atomic_op_inuser() argument
69 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
73 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
77 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
81 ret, oldval, uaddr, tmp, ~oparg); in arch_futex_atomic_op_inuser()
85 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
/arch/sh/include/asm/
Dfutex.h31 static inline int arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, in arch_futex_atomic_op_inuser() argument
49 newval = oparg; in arch_futex_atomic_op_inuser()
52 newval = oldval + oparg; in arch_futex_atomic_op_inuser()
55 newval = oldval | oparg; in arch_futex_atomic_op_inuser()
58 newval = oldval & ~oparg; in arch_futex_atomic_op_inuser()
61 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
54 tmp = oparg; in arch_futex_atomic_op_inuser()
57 tmp += oparg; in arch_futex_atomic_op_inuser()
60 tmp |= oparg; in arch_futex_atomic_op_inuser()
63 tmp &= ~oparg; in arch_futex_atomic_op_inuser()
66 tmp ^= oparg; in arch_futex_atomic_op_inuser()
/arch/frv/include/asm/
Dfutex.h11 extern int arch_futex_atomic_op_inuser(int op, int oparg, int *oval,