Home
last modified time | relevance | path

Searched refs:oparg (Results 1 – 18 of 18) 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/ia64/include/asm/
Dfutex.h8 #define __futex_atomic_op1(insn, ret, oldval, uaddr, oparg) \ argument
17 : "r" (uaddr), "r" (oparg) \
22 #define __futex_atomic_op2(insn, ret, oldval, uaddr, oparg) \ argument
39 : "r" (uaddr), "r" (oparg) \
52 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
56 oparg = 1 << oparg; in futex_atomic_op_inuser()
66 oparg); in futex_atomic_op_inuser()
69 __futex_atomic_op2("add %3=%3,%5", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
72 __futex_atomic_op2("or %3=%3,%5", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
76 ~oparg); in futex_atomic_op_inuser()
[all …]
/arch/x86/include/asm/
Dfutex.h13 #define __futex_atomic_op1(insn, ret, oldval, uaddr, oparg) \ argument
21 : "i" (-EFAULT), "0" (oparg), "1" (0))
23 #define __futex_atomic_op2(insn, ret, oldval, uaddr, oparg) \ argument
37 : "r" (oparg), "i" (-EFAULT), "1" (0))
43 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
48 oparg = 1 << oparg; in futex_atomic_op_inuser()
63 __futex_atomic_op1("xchgl %0, %2", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
67 uaddr, oparg); in futex_atomic_op_inuser()
70 __futex_atomic_op2("orl %4, %3", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
73 __futex_atomic_op2("andl %4, %3", ret, oldval, uaddr, ~oparg); in futex_atomic_op_inuser()
[all …]
/arch/hexagon/include/asm/
Dfutex.h12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
29 : "r" (uaddr), "r" (oparg), "i" (-EFAULT) \
38 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
42 oparg = 1 << oparg; in futex_atomic_op_inuser()
51 __futex_atomic_op("%1 = %4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
55 oparg); in futex_atomic_op_inuser()
59 oparg); in futex_atomic_op_inuser()
63 oldval, uaddr, oparg); in futex_atomic_op_inuser()
67 oparg); in futex_atomic_op_inuser()
/arch/sparc/include/asm/
Dfutex_64.h8 #define __futex_cas_op(insn, ret, oldval, uaddr, oparg) \ argument
29 : "r" (uaddr), "r" (oparg), "i" (-EFAULT) \
36 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
46 oparg = 1 << oparg; in futex_atomic_op_inuser()
52 __futex_cas_op("mov\t%4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
55 __futex_cas_op("add\t%2, %4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
58 __futex_cas_op("or\t%2, %4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
61 __futex_cas_op("andn\t%2, %4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
64 __futex_cas_op("xor\t%2, %4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
/arch/powerpc/include/asm/
Dfutex.h12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
31 : "b" (uaddr), "i" (-EFAULT), "r" (oparg) \
38 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
42 oparg = 1 << oparg; in futex_atomic_op_inuser()
51 __futex_atomic_op("mr %1,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
54 __futex_atomic_op("add %1,%0,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
57 __futex_atomic_op("or %1,%0,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
60 __futex_atomic_op("andc %1,%0,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
63 __futex_atomic_op("xor %1,%0,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
/arch/microblaze/include/asm/
Dfutex.h10 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
27 : "r" (uaddr), "i" (-EFAULT), "r" (oparg) \
36 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
40 oparg = 1 << oparg; in futex_atomic_op_inuser()
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()
/arch/alpha/include/asm/
Dfutex.h11 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
29 : "r" (uaddr), "r"(oparg) \
36 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
40 oparg = 1 << oparg; in futex_atomic_op_inuser()
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()
/arch/sh/include/asm/
Dfutex-irq.h5 static inline int atomic_futex_op_xchg_set(int oparg, u32 __user *uaddr, in atomic_futex_op_xchg_set() argument
15 ret = put_user(oparg, uaddr); in atomic_futex_op_xchg_set()
22 static inline int atomic_futex_op_xchg_add(int oparg, u32 __user *uaddr, in atomic_futex_op_xchg_add() argument
32 ret = put_user(*oldval + oparg, uaddr); in atomic_futex_op_xchg_add()
39 static inline int atomic_futex_op_xchg_or(int oparg, u32 __user *uaddr, in atomic_futex_op_xchg_or() argument
49 ret = put_user(*oldval | oparg, uaddr); in atomic_futex_op_xchg_or()
56 static inline int atomic_futex_op_xchg_and(int oparg, u32 __user *uaddr, in atomic_futex_op_xchg_and() argument
66 ret = put_user(*oldval & oparg, uaddr); in atomic_futex_op_xchg_and()
73 static inline int atomic_futex_op_xchg_xor(int oparg, u32 __user *uaddr, in atomic_futex_op_xchg_xor() argument
83 ret = put_user(*oldval ^ oparg, uaddr); in atomic_futex_op_xchg_xor()
Dfutex.h17 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
22 oparg = 1 << oparg; in futex_atomic_op_inuser()
31 ret = atomic_futex_op_xchg_set(oparg, uaddr, &oldval); in futex_atomic_op_inuser()
34 ret = atomic_futex_op_xchg_add(oparg, uaddr, &oldval); in futex_atomic_op_inuser()
37 ret = atomic_futex_op_xchg_or(oparg, uaddr, &oldval); in futex_atomic_op_inuser()
40 ret = atomic_futex_op_xchg_and(~oparg, uaddr, &oldval); in futex_atomic_op_inuser()
43 ret = atomic_futex_op_xchg_xor(oparg, uaddr, &oldval); in futex_atomic_op_inuser()
/arch/mips/include/asm/
Dfutex.h19 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
45 : "0" (0), "R" (*uaddr), "Jr" (oparg), "i" (-EFAULT) \
71 : "0" (0), "R" (*uaddr), "Jr" (oparg), "i" (-EFAULT) \
82 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
86 oparg = 1 << oparg; in futex_atomic_op_inuser()
95 __futex_atomic_op("move $1, %z5", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
100 ret, oldval, uaddr, oparg); in futex_atomic_op_inuser()
104 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()
/arch/arm/include/asm/
Dfutex.h28 #define __futex_atomic_op(insn, ret, oldval, tmp, uaddr, oparg) \ argument
39 : "r" (uaddr), "r" (oparg), "Ir" (-EFAULT) \
76 #define __futex_atomic_op(insn, ret, oldval, tmp, uaddr, oparg) \ argument
84 : "r" (uaddr), "r" (oparg), "Ir" (-EFAULT) \
118 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
123 oparg = 1 << oparg; in futex_atomic_op_inuser()
132 __futex_atomic_op("mov %0, %4", ret, oldval, tmp, uaddr, oparg); in futex_atomic_op_inuser()
135 __futex_atomic_op("add %0, %1, %4", ret, oldval, tmp, uaddr, oparg); in futex_atomic_op_inuser()
138 __futex_atomic_op("orr %0, %1, %4", ret, oldval, tmp, uaddr, oparg); in futex_atomic_op_inuser()
141 __futex_atomic_op("and %0, %1, %4", ret, oldval, tmp, uaddr, ~oparg); in futex_atomic_op_inuser()
[all …]
/arch/tile/include/asm/
Dfutex.h60 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
66 oparg = 1 << oparg; in futex_atomic_op_inuser()
74 asm_ret = futex_set(uaddr, oparg); in futex_atomic_op_inuser()
77 asm_ret = futex_add(uaddr, oparg); in futex_atomic_op_inuser()
80 asm_ret = futex_or(uaddr, oparg); in futex_atomic_op_inuser()
83 asm_ret = futex_andn(uaddr, oparg); in futex_atomic_op_inuser()
86 asm_ret = futex_xor(uaddr, oparg); in futex_atomic_op_inuser()
/arch/parisc/include/asm/
Dfutex.h41 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
45 oparg = 1 << oparg; in futex_atomic_op_inuser()
59 ret = put_user(oparg, uaddr); in futex_atomic_op_inuser()
65 val = oldval + oparg; in futex_atomic_op_inuser()
73 val = oldval | oparg; in futex_atomic_op_inuser()
81 val = oldval & ~oparg; in futex_atomic_op_inuser()
89 val = oldval ^ oparg; in futex_atomic_op_inuser()
/arch/s390/include/asm/
Dfutex.h14 int oparg = (encoded_op << 8) >> 20; in futex_atomic_op_inuser() local
19 oparg = 1 << oparg; in futex_atomic_op_inuser()
25 ret = uaccess.futex_atomic_op(op, uaddr, oparg, &oldval); in futex_atomic_op_inuser()
Duaccess.h88 int (*futex_atomic_op)(int op, u32 __user *, int oparg, int *old);
/arch/s390/lib/
Duaccess_std.c243 #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ argument
255 : "0" (-EFAULT), "d" (oparg), "a" (uaddr), \
258 int futex_atomic_op_std(int op, u32 __user *uaddr, int oparg, int *old) in futex_atomic_op_std() argument
265 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_std()
269 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_std()
273 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_std()
277 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_std()
281 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_std()
Duaccess_pt.c292 #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ argument
302 : "0" (-EFAULT), "d" (oparg), "a" (uaddr), \
305 static int __futex_atomic_op_pt(int op, u32 __user *uaddr, int oparg, int *old) in __futex_atomic_op_pt() argument
312 ret, oldval, newval, uaddr, oparg); in __futex_atomic_op_pt()
316 ret, oldval, newval, uaddr, oparg); in __futex_atomic_op_pt()
320 ret, oldval, newval, uaddr, oparg); in __futex_atomic_op_pt()
324 ret, oldval, newval, uaddr, oparg); in __futex_atomic_op_pt()
328 ret, oldval, newval, uaddr, oparg); in __futex_atomic_op_pt()
338 int futex_atomic_op_pt(int op, u32 __user *uaddr, int oparg, int *old) in futex_atomic_op_pt() argument
343 return __futex_atomic_op_pt(op, uaddr, oparg, old); in futex_atomic_op_pt()
[all …]