Lines Matching refs:uaddr
274 int arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, u32 __user *uaddr) in arch_futex_atomic_op_inuser() argument
278 unsigned long addr = (unsigned long) uaddr; in arch_futex_atomic_op_inuser()
282 if (!access_ok(uaddr, sizeof(*uaddr))) in arch_futex_atomic_op_inuser()
298 uaddr = (u32 *) addr; in arch_futex_atomic_op_inuser()
299 oldval = *uaddr; in arch_futex_atomic_op_inuser()
305 *uaddr = oparg; in arch_futex_atomic_op_inuser()
308 *uaddr += oparg; in arch_futex_atomic_op_inuser()
311 *uaddr |= oparg; in arch_futex_atomic_op_inuser()
314 *uaddr &= ~oparg; in arch_futex_atomic_op_inuser()
317 *uaddr ^= oparg; in arch_futex_atomic_op_inuser()
354 int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument
361 if (!access_ok(uaddr, sizeof(*uaddr))) in futex_atomic_cmpxchg_inatomic()
365 pte = maybe_map((unsigned long) uaddr, 1); in futex_atomic_cmpxchg_inatomic()
372 uaddr = page_address(page) + (((unsigned long) uaddr) & ~PAGE_MASK); in futex_atomic_cmpxchg_inatomic()
374 uaddr = kmap_atomic(page) + ((unsigned long) uaddr & ~PAGE_MASK); in futex_atomic_cmpxchg_inatomic()
377 *uval = *uaddr; in futex_atomic_cmpxchg_inatomic()
379 ret = cmpxchg(uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic()
384 kunmap_atomic(uaddr); in futex_atomic_cmpxchg_inatomic()