Home
last modified time | relevance | path

Searched refs:oldval (Results 1 – 25 of 96) sorted by relevance

1234

/Linux-v6.6/arch/ia64/include/asm/
Dfutex.h9 #define __futex_atomic_op1(insn, ret, oldval, uaddr, oparg) \ argument
17 : "+r" (r8), "=r" (oldval) \
23 #define __futex_atomic_op2(insn, ret, oldval, uaddr, oparg) \ argument
38 : "+r" (r8), "=r" (val), "=&r" (oldval), \
44 } while (unlikely (val != oldval)); \
51 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
58 __futex_atomic_op1("xchg4 %1=[%2],%3", ret, oldval, uaddr, 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()
68 __futex_atomic_op2("and %3=%3,%5", ret, oldval, uaddr, in arch_futex_atomic_op_inuser()
[all …]
/Linux-v6.6/arch/arm/include/asm/
Dfutex.h25 #define __futex_atomic_op(insn, ret, oldval, tmp, uaddr, oparg) \ argument
39 : "=&r" (ret), "=&r" (oldval), "=&r" (tmp) \
47 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
70 : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT) in futex_atomic_cmpxchg_inatomic()
84 #define __futex_atomic_op(insn, ret, oldval, tmp, uaddr, oparg) \ argument
93 : "=&r" (ret), "=&r" (oldval), "=&r" (tmp) \
101 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
120 : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT) in futex_atomic_cmpxchg_inatomic()
135 int oldval = 0, ret, tmp; in arch_futex_atomic_op_inuser() local
146 __futex_atomic_op("mov %0, %4", ret, oldval, tmp, uaddr, oparg); in arch_futex_atomic_op_inuser()
[all …]
Dcmpxchg.h160 unsigned long oldval, res; in __cmpxchg() local
173 : "=&r" (res), "=&r" (oldval) in __cmpxchg()
185 : "=&r" (res), "=&r" (oldval) in __cmpxchg()
198 : "=&r" (res), "=&r" (oldval) in __cmpxchg()
205 oldval = 0; in __cmpxchg()
208 return oldval; in __cmpxchg()
249 unsigned long long oldval; in __cmpxchg64() local
263 : "=&r" (res), "=&r" (oldval), "+Qo" (*ptr) in __cmpxchg64()
267 return oldval; in __cmpxchg64()
Datomic.h108 int oldval; in arch_atomic_cmpxchg_relaxed() local
119 : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter) in arch_atomic_cmpxchg_relaxed()
124 return oldval; in arch_atomic_cmpxchg_relaxed()
130 int oldval, newval; in arch_atomic_fetch_add_unless() local
145 : "=&r" (oldval), "=&r" (newval), "=&r" (tmp), "+Qo" (v->counter) in arch_atomic_fetch_add_unless()
149 if (oldval != u) in arch_atomic_fetch_add_unless()
152 return oldval; in arch_atomic_fetch_add_unless()
413 s64 oldval; in ATOMIC64_OPS() local
425 : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter) in ATOMIC64_OPS()
430 return oldval; in ATOMIC64_OPS()
[all …]
/Linux-v6.6/arch/s390/include/asm/
Dfutex.h11 #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ argument
22 : "=d" (ret), "=&d" (oldval), "=&d" (newval), \
30 int oldval = 0, newval, ret; in arch_futex_atomic_op_inuser() local
35 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
39 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
43 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
47 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
51 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
58 *oval = oldval; in arch_futex_atomic_op_inuser()
64 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/sh/include/asm/
Dfutex.h21 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
26 return atomic_futex_op_cmpxchg_inatomic(uval, uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic()
32 u32 oldval, newval, prev; in arch_futex_atomic_op_inuser() local
36 ret = get_user(oldval, uaddr); 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()
63 ret = futex_atomic_cmpxchg_inatomic(&prev, uaddr, oldval, newval); in arch_futex_atomic_op_inuser()
64 } while (!ret && prev != oldval); in arch_futex_atomic_op_inuser()
[all …]
Dspinlock-llsc.h29 unsigned long oldval; in arch_spin_lock() local
40 : "=&z" (tmp), "=&r" (oldval) in arch_spin_lock()
63 unsigned long tmp, oldval; in arch_spin_trylock() local
73 : "=&z" (tmp), "=&r" (oldval) in arch_spin_trylock()
78 return oldval; in arch_spin_trylock()
154 unsigned long tmp, oldval; in arch_read_trylock() local
167 : "=&z" (tmp), "=&r" (oldval) in arch_read_trylock()
172 return (oldval > 0); in arch_read_trylock()
177 unsigned long tmp, oldval; in arch_write_trylock() local
190 : "=&z" (tmp), "=&r" (oldval) in arch_write_trylock()
[all …]
/Linux-v6.6/arch/xtensa/include/asm/
Dfutex.h43 : [oldval] "=&r" (old), [newval] "=&r" (ret) \
67 : [oldval] "=&r" (old), [newval] "=&r" (ret), \
77 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
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()
101 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
108 *oval = oldval; in arch_futex_atomic_op_inuser()
118 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/sparc/include/asm/
Dfutex_64.h9 #define __futex_cas_op(insn, ret, oldval, uaddr, oparg) \ argument
29 : "=&r" (ret), "=&r" (oldval), "=&r" (tem) \
36 int oldval = 0, ret, tem; in arch_futex_atomic_op_inuser() local
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()
62 *oval = oldval; in arch_futex_atomic_op_inuser()
69 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/openrisc/include/asm/
Dfutex.h11 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
27 : "=&r" (oldval), "=&r" (ret), "+m" (*uaddr) \
36 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
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()
62 *oval = oldval; in arch_futex_atomic_op_inuser()
69 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/mips/include/asm/
Dfutex.h25 #define __futex_atomic_op(op, insn, ret, oldval, uaddr, oparg) \ argument
51 : "=r" (ret), "=&r" (oldval), \
81 : "=r" (ret), "=&r" (oldval), \
95 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
102 __futex_atomic_op(op, "move $1, %z5", 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()
115 ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
119 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
126 *oval = oldval; in arch_futex_atomic_op_inuser()
[all …]
/Linux-v6.6/arch/hexagon/include/asm/
Dfutex.h13 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
29 : "=&r" (oldval), "=&r" (ret), "+m" (*uaddr) \
37 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
44 __futex_atomic_op("%1 = %4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
47 __futex_atomic_op("%1 = add(%0,%4)\n", ret, oldval, uaddr, in arch_futex_atomic_op_inuser()
51 __futex_atomic_op("%1 = or(%0,%4)\n", ret, oldval, uaddr, in arch_futex_atomic_op_inuser()
56 oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
59 __futex_atomic_op("%1 = xor(%0,%4)\n", ret, oldval, uaddr, in arch_futex_atomic_op_inuser()
67 *oval = oldval; in arch_futex_atomic_op_inuser()
73 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, in futex_atomic_cmpxchg_inatomic() argument
[all …]
Dbitops.h33 int oldval; in test_and_clear_bit() local
42 : "=&r" (oldval) in test_and_clear_bit()
47 return oldval; in test_and_clear_bit()
57 int oldval; in test_and_set_bit() local
66 : "=&r" (oldval) in test_and_set_bit()
72 return oldval; in test_and_set_bit()
83 int oldval; in test_and_change_bit() local
92 : "=&r" (oldval) in test_and_change_bit()
97 return oldval; in test_and_change_bit()
/Linux-v6.6/arch/microblaze/include/asm/
Dfutex.h11 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
27 : "=&r" (oldval), "=&r" (ret) \
35 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
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()
61 *oval = oldval; in arch_futex_atomic_op_inuser()
68 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/loongarch/include/asm/
Dfutex.h14 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
24 : "=r" (ret), "=&r" (oldval), \
33 int oldval = 0, ret = 0; in arch_futex_atomic_op_inuser() local
39 __futex_atomic_op("move $t0, %z5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
42 __futex_atomic_op("add.w $t0, %1, %z5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
45 __futex_atomic_op("or $t0, %1, %z5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 __futex_atomic_op("and $t0, %1, %z5", ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
51 __futex_atomic_op("xor $t0, %1, %z5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
60 *oval = oldval; in arch_futex_atomic_op_inuser()
66 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/alpha/include/asm/
Dfutex.h12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
25 : "=&r" (oldval), "=&r"(ret) \
32 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
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()
58 *oval = oldval; in arch_futex_atomic_op_inuser()
65 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/powerpc/include/asm/
Dfutex.h12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
27 : "=&r" (oldval), "=&r" (ret) \
34 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
41 __futex_atomic_op("mr %1,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
44 __futex_atomic_op("add %1,%0,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
47 __futex_atomic_op("or %1,%0,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
50 __futex_atomic_op("andc %1,%0,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
53 __futex_atomic_op("xor %1,%0,%4\n", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
60 *oval = oldval; in arch_futex_atomic_op_inuser()
67 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/csky/include/asm/
Dfutex.h14 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
33 : [r] "+r" (ret), [ov] "=&r" (oldval), \
44 int oldval = 0, ret = 0; in arch_futex_atomic_op_inuser() local
52 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
56 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
60 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
64 ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
68 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
75 *oval = oldval; in arch_futex_atomic_op_inuser()
84 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/arc/include/asm/
Dfutex.h18 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)\ argument
39 : "=&r" (ret), "=&r" (oldval) \
46 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)\ argument
66 : "=&r" (ret), "=&r" (oldval) \
76 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
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()
[all …]
/Linux-v6.6/arch/riscv/include/asm/
Dfutex.h22 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
29 : [r] "+r" (ret), [ov] "=&r" (oldval), \
39 int oldval = 0, ret = 0; in arch_futex_atomic_op_inuser() local
47 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
51 ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
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()
70 *oval = oldval; in arch_futex_atomic_op_inuser()
77 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/arm64/include/asm/
Dfutex.h15 #define __futex_atomic_op(insn, ret, oldval, uaddr, tmp, oparg) \ argument
33 : "=&r" (ret), "=&r" (oldval), "+Q" (*uaddr), "=&r" (tmp), \
43 int oldval = 0, ret, tmp; in arch_futex_atomic_op_inuser() local
52 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
56 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
60 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
64 ret, oldval, uaddr, tmp, ~oparg); in arch_futex_atomic_op_inuser()
68 ret, oldval, uaddr, tmp, oparg); in arch_futex_atomic_op_inuser()
75 *oval = oldval; in arch_futex_atomic_op_inuser()
82 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
[all …]
/Linux-v6.6/arch/x86/include/asm/
Dfutex.h17 int oldval = 0, ret; \
21 : "=r" (oldval), "=r" (ret), "+m" (*uaddr) \
25 *oval = oldval; \
31 int oldval = 0, ret, tem; \
40 : "=&a" (oldval), "=&r" (ret), \
45 *oval = oldval; \
83 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
93 : "+r" (ret), "=a" (oldval), "+m" (*uaddr) in futex_atomic_cmpxchg_inatomic()
94 : "r" (newval), "1" (oldval) in futex_atomic_cmpxchg_inatomic()
98 *uval = oldval; in futex_atomic_cmpxchg_inatomic()
/Linux-v6.6/include/asm-generic/
Dfutex.h16 #define futex_atomic_cmpxchg_inatomic(uval, uaddr, oldval, newval) \ argument
17 futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval)
40 int oldval, ret; in futex_atomic_op_inuser_local() local
46 if (unlikely(get_user(oldval, uaddr) != 0)) in futex_atomic_op_inuser_local()
50 tmp = oldval; in futex_atomic_op_inuser_local()
79 *oval = oldval; in futex_atomic_op_inuser_local()
100 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic_local() argument
110 if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) { in futex_atomic_cmpxchg_inatomic_local()
/Linux-v6.6/arch/powerpc/include/asm/book3s/64/
Dtlbflush.h166 static inline bool __pte_flags_need_flush(unsigned long oldval, in __pte_flags_need_flush() argument
169 unsigned long delta = oldval ^ newval; in __pte_flags_need_flush()
182 VM_WARN_ON_ONCE(!__pte_protnone(oldval) && oldval & _PAGE_PRIVILEGED); in __pte_flags_need_flush()
184 VM_WARN_ON_ONCE(!(oldval & _PAGE_PTE)); in __pte_flags_need_flush()
186 VM_WARN_ON_ONCE(!(oldval & _PAGE_PRESENT)); in __pte_flags_need_flush()
204 if ((delta & ~_PAGE_ACCESSED) & oldval) in __pte_flags_need_flush()
/Linux-v6.6/arch/parisc/include/asm/
Dfutex.h41 int oldval, ret; in arch_futex_atomic_op_inuser() local
48 if (unlikely(get_user(oldval, uaddr) != 0)) { in arch_futex_atomic_op_inuser()
54 tmp = oldval; in arch_futex_atomic_op_inuser()
84 *oval = oldval; in arch_futex_atomic_op_inuser()
91 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
116 if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) { in futex_atomic_cmpxchg_inatomic()

1234