Lines Matching refs:uaddr
12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument
28 : "b" (uaddr), "i" (-EFAULT), "r" (oparg) \
32 u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
36 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser()
38 allow_read_write_user(uaddr, uaddr, sizeof(*uaddr)); in arch_futex_atomic_op_inuser()
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()
62 prevent_read_write_user(uaddr, uaddr, sizeof(*uaddr)); in arch_futex_atomic_op_inuser()
67 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument
73 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
76 allow_read_write_user(uaddr, uaddr, sizeof(*uaddr)); in futex_atomic_cmpxchg_inatomic()
92 : "+r" (ret), "=&r" (prev), "+m" (*uaddr) in futex_atomic_cmpxchg_inatomic()
93 : "r" (uaddr), "r" (oldval), "r" (newval), "i" (-EFAULT) in futex_atomic_cmpxchg_inatomic()
97 prevent_read_write_user(uaddr, uaddr, sizeof(*uaddr)); in futex_atomic_cmpxchg_inatomic()