• Home
  • Raw
  • Download

Lines Matching refs:__user

87 static inline int put_sigset_t(compat_sigset_t __user *uset, sigset_t *set)  in put_sigset_t()
93 const compat_sigset_t __user *uset) in get_sigset_t()
102 struct mcontext __user *frame) in save_general_regs()
123 struct mcontext __user *sr) in restore_general_regs()
141 static inline int put_sigset_t(sigset_t __user *uset, sigset_t *set) in put_sigset_t()
146 static inline int get_sigset_t(sigset_t *set, const sigset_t __user *uset) in get_sigset_t()
152 #define from_user_ptr(p) ((void __user *)(p))
155 struct mcontext __user *frame) in save_general_regs()
162 struct mcontext __user *sr) in restore_general_regs()
238 static int save_user_regs(struct pt_regs *regs, struct mcontext __user *frame, in save_user_regs()
239 struct mcontext __user *tm_frame, int sigret, in save_user_regs()
272 if (__put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32])) in save_user_regs()
311 if (__put_user(current->thread.spefscr, (u32 __user *)&frame->mc_vregs + ELF_NEVRREG)) in save_user_regs()
346 struct mcontext __user *frame, in save_tm_user_regs()
347 struct mcontext __user *tm_frame, int sigret, in save_tm_user_regs()
398 (u32 __user *)&frame->mc_vregs[32])) in save_tm_user_regs()
402 (u32 __user *)&tm_frame->mc_vregs[32])) in save_tm_user_regs()
406 (u32 __user *)&tm_frame->mc_vregs[32])) in save_tm_user_regs()
458 if (__put_user(current->thread.spefscr, (u32 __user *)&frame->mc_vregs + ELF_NEVRREG)) in save_tm_user_regs()
482 struct mcontext __user *sr, int sig) in restore_user_regs()
526 if (__get_user(current->thread.vrsave, (u32 __user *)&sr->mc_vregs[32])) in restore_user_regs()
572 if (__get_user(current->thread.spefscr, (u32 __user *)&sr->mc_vregs + ELF_NEVRREG)) in restore_user_regs()
586 struct mcontext __user *sr, in restore_tm_user_regs()
587 struct mcontext __user *tm_sr) in restore_tm_user_regs()
636 (u32 __user *)&sr->mc_vregs[32]) || in restore_tm_user_regs()
638 (u32 __user *)&tm_sr->mc_vregs[32])) in restore_tm_user_regs()
682 if (__get_user(current->thread.spefscr, (u32 __user *)&sr->mc_vregs in restore_tm_user_regs()
754 struct rt_sigframe __user *rt_sf; in handle_rt_signal32()
755 struct mcontext __user *frame; in handle_rt_signal32()
756 struct mcontext __user *tm_frame = NULL; in handle_rt_signal32()
757 void __user *addr; in handle_rt_signal32()
821 addr = (void __user *)regs->gpr[1]; in handle_rt_signal32()
822 if (put_user(regs->gpr[1], (u32 __user *)newsp)) in handle_rt_signal32()
848 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext()
851 struct mcontext __user *mcp; in do_setcontext()
861 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext()
878 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
879 struct ucontext __user *tm_ucp, in do_setcontext_tm()
883 struct mcontext __user *mcp; in do_setcontext_tm()
884 struct mcontext __user *tm_mcp; in do_setcontext_tm()
894 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext_tm()
895 tm_mcp = (struct mcontext __user *)(u64)tm_cmcp; in do_setcontext_tm()
907 COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3() argument
908 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3()
910 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
911 struct ucontext __user *, new_ctx, long, ctx_size) in COMPAT_SYSCALL_DEFINE3()
921 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE3()
931 mcp = (struct mcontext __user *)(u64)cmcp; in COMPAT_SYSCALL_DEFINE3()
959 struct mcontext __user *mctx; in COMPAT_SYSCALL_DEFINE3()
968 mctx = (struct mcontext __user *) in COMPAT_SYSCALL_DEFINE3()
979 fault_in_pages_readable((u8 __user *)new_ctx, ctx_size)) in COMPAT_SYSCALL_DEFINE3()
1006 struct rt_sigframe __user *rt_sf; in COMPAT_SYSCALL_DEFINE0()
1010 struct ucontext __user *uc_transact; in COMPAT_SYSCALL_DEFINE0()
1017 rt_sf = (struct rt_sigframe __user *) in COMPAT_SYSCALL_DEFINE0()
1038 uc_transact = (struct ucontext __user *)(uintptr_t)tmp; in COMPAT_SYSCALL_DEFINE0()
1041 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE0()
1045 mcp = (struct mcontext __user *)(u64)cmcp; in COMPAT_SYSCALL_DEFINE0()
1107 SYSCALL_DEFINE3(debug_setcontext, struct ucontext __user *, ctx, in SYSCALL_DEFINE3() argument
1108 int, ndbg, struct sig_dbg_op __user *, dbg) in SYSCALL_DEFINE3() argument
1169 fault_in_pages_readable((u8 __user *)ctx, sizeof(*ctx))) in SYSCALL_DEFINE3()
1216 struct sigcontext __user *sc; in handle_signal32()
1217 struct sigframe __user *frame; in handle_signal32()
1218 struct mcontext __user *tm_mctx = NULL; in handle_signal32()
1234 sc = (struct sigcontext __user *) &frame->sctx; in handle_signal32()
1278 if (put_user(regs->gpr[1], (u32 __user *)newsp)) in handle_signal32()
1310 struct sigframe __user *sf; in COMPAT_SYSCALL_DEFINE0()
1311 struct sigcontext __user *sc; in COMPAT_SYSCALL_DEFINE0()
1313 struct mcontext __user *sr; in COMPAT_SYSCALL_DEFINE0()
1314 void __user *addr; in COMPAT_SYSCALL_DEFINE0()
1317 struct mcontext __user *mcp, *tm_mcp; in COMPAT_SYSCALL_DEFINE0()
1324 sf = (struct sigframe __user *)(regs->gpr[1] + __SIGNAL_FRAMESIZE); in COMPAT_SYSCALL_DEFINE0()
1343 mcp = (struct mcontext __user *)&sf->mctx; in COMPAT_SYSCALL_DEFINE0()
1344 tm_mcp = (struct mcontext __user *)&sf->mctx_transact; in COMPAT_SYSCALL_DEFINE0()
1355 sr = (struct mcontext __user *)from_user_ptr(sigctx.regs); in COMPAT_SYSCALL_DEFINE0()