Lines Matching refs:uaddr
249 int arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
253 unsigned long addr = (unsigned long) uaddr; in arch_futex_atomic_op_inuser()
257 if (!access_ok(uaddr, sizeof(*uaddr))) in arch_futex_atomic_op_inuser()
273 uaddr = (u32 *) addr; in arch_futex_atomic_op_inuser()
274 oldval = *uaddr; in arch_futex_atomic_op_inuser()
280 *uaddr = oparg; in arch_futex_atomic_op_inuser()
283 *uaddr += oparg; in arch_futex_atomic_op_inuser()
286 *uaddr |= oparg; in arch_futex_atomic_op_inuser()
289 *uaddr &= ~oparg; in arch_futex_atomic_op_inuser()
292 *uaddr ^= oparg; in arch_futex_atomic_op_inuser()
328 int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument
335 if (!access_ok(uaddr, sizeof(*uaddr))) in futex_atomic_cmpxchg_inatomic()
339 pte = maybe_map((unsigned long) uaddr, 1); in futex_atomic_cmpxchg_inatomic()
346 uaddr = page_address(page) + (((unsigned long) uaddr) & ~PAGE_MASK); in futex_atomic_cmpxchg_inatomic()
348 uaddr = kmap_atomic(page) + ((unsigned long) uaddr & ~PAGE_MASK); in futex_atomic_cmpxchg_inatomic()
351 *uval = *uaddr; in futex_atomic_cmpxchg_inatomic()
353 ret = cmpxchg(uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic()
358 kunmap_atomic(uaddr); in futex_atomic_cmpxchg_inatomic()