Lines Matching refs:__user

92 __unsafe_save_general_regs(struct pt_regs *regs, struct mcontext __user *frame)  in __unsafe_save_general_regs()
113 __unsafe_restore_general_regs(struct pt_regs *regs, struct mcontext __user *sr) in __unsafe_restore_general_regs()
134 sigset_t __user *__us = uset ; \
143 #define from_user_ptr(p) ((void __user *)(p))
146 __unsafe_save_general_regs(struct pt_regs *regs, struct mcontext __user *frame) in __unsafe_save_general_regs()
156 int __unsafe_restore_general_regs(struct pt_regs *regs, struct mcontext __user *sr) in __unsafe_restore_general_regs()
267 static int __unsafe_save_user_regs(struct pt_regs *regs, struct mcontext __user *frame, in __unsafe_save_user_regs()
268 struct mcontext __user *tm_frame, int ctx_has_vsx_region) in __unsafe_save_user_regs()
292 unsafe_put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32], in __unsafe_save_user_regs()
327 (u32 __user *)&frame->mc_vregs + ELF_NEVRREG, failed); in __unsafe_save_user_regs()
367 static int save_tm_user_regs_unsafe(struct pt_regs *regs, struct mcontext __user *frame, in save_tm_user_regs_unsafe()
368 struct mcontext __user *tm_frame, unsigned long msr) in save_tm_user_regs_unsafe()
407 (u32 __user *)&frame->mc_vregs[32], failed); in save_tm_user_regs_unsafe()
410 (u32 __user *)&tm_frame->mc_vregs[32], failed); in save_tm_user_regs_unsafe()
413 (u32 __user *)&tm_frame->mc_vregs[32], failed); in save_tm_user_regs_unsafe()
447 static int save_tm_user_regs_unsafe(struct pt_regs *regs, struct mcontext __user *frame, in save_tm_user_regs_unsafe()
448 struct mcontext __user *tm_frame, unsigned long msr) in save_tm_user_regs_unsafe()
464 struct mcontext __user *sr, int sig) in restore_user_regs()
506 unsafe_get_user(current->thread.vrsave, (u32 __user *)&sr->mc_vregs[32], failed); in restore_user_regs()
552 unsafe_get_user(current->thread.spefscr, (u32 __user *)&sr->mc_vregs + ELF_NEVRREG, failed); in restore_user_regs()
570 struct mcontext __user *sr, in restore_tm_user_regs()
571 struct mcontext __user *tm_sr) in restore_tm_user_regs()
610 (u32 __user *)&sr->mc_vregs[32], failed); in restore_tm_user_regs()
646 (u32 __user *)&tm_sr->mc_vregs[32], failed); in restore_tm_user_regs()
716 static long restore_tm_user_regs(struct pt_regs *regs, struct mcontext __user *sr, in restore_tm_user_regs()
717 struct mcontext __user *tm_sr) in restore_tm_user_regs()
736 struct rt_sigframe __user *frame; in handle_rt_signal32()
737 struct mcontext __user *mctx; in handle_rt_signal32()
738 struct mcontext __user *tm_mctx = NULL; in handle_rt_signal32()
805 if (put_user(regs->gpr[1], (u32 __user *)newsp)) in handle_rt_signal32()
835 struct sigcontext __user *sc; in handle_signal32()
836 struct sigframe __user *frame; in handle_signal32()
837 struct mcontext __user *mctx; in handle_signal32()
838 struct mcontext __user *tm_mctx = NULL; in handle_signal32()
858 sc = (struct sigcontext __user *) &frame->sctx; in handle_signal32()
896 if (put_user(regs->gpr[1], (u32 __user *)newsp)) in handle_signal32()
917 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext()
920 struct mcontext __user *mcp; in do_setcontext()
931 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext()
950 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
951 struct ucontext __user *tm_ucp, in do_setcontext_tm()
955 struct mcontext __user *mcp; in do_setcontext_tm()
956 struct mcontext __user *tm_mcp; in do_setcontext_tm()
970 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext_tm()
971 tm_mcp = (struct mcontext __user *)(u64)tm_cmcp; in do_setcontext_tm()
987 COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3() argument
988 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3()
990 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
991 struct ucontext __user *, new_ctx, long, ctx_size) in COMPAT_SYSCALL_DEFINE3()
1001 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE3()
1011 mcp = (struct mcontext __user *)(u64)cmcp; in COMPAT_SYSCALL_DEFINE3()
1039 struct mcontext __user *mctx; in COMPAT_SYSCALL_DEFINE3()
1048 mctx = (struct mcontext __user *) in COMPAT_SYSCALL_DEFINE3()
1061 fault_in_readable((char __user *)new_ctx, ctx_size)) in COMPAT_SYSCALL_DEFINE3()
1094 struct rt_sigframe __user *rt_sf; in COMPAT_SYSCALL_DEFINE0()
1098 struct ucontext __user *uc_transact; in COMPAT_SYSCALL_DEFINE0()
1105 rt_sf = (struct rt_sigframe __user *) in COMPAT_SYSCALL_DEFINE0()
1126 uc_transact = (struct ucontext __user *)(uintptr_t)tmp; in COMPAT_SYSCALL_DEFINE0()
1129 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE0()
1133 mcp = (struct mcontext __user *)(u64)cmcp; in COMPAT_SYSCALL_DEFINE0()
1190 SYSCALL_DEFINE3(debug_setcontext, struct ucontext __user *, ctx, in SYSCALL_DEFINE3() argument
1191 int, ndbg, struct sig_dbg_op __user *, dbg) in SYSCALL_DEFINE3() argument
1252 fault_in_readable((char __user *)ctx, sizeof(*ctx))) in SYSCALL_DEFINE3()
1298 struct sigframe __user *sf; in COMPAT_SYSCALL_DEFINE0()
1299 struct sigcontext __user *sc; in COMPAT_SYSCALL_DEFINE0()
1301 struct mcontext __user *sr; in COMPAT_SYSCALL_DEFINE0()
1303 struct mcontext __user *mcp; in COMPAT_SYSCALL_DEFINE0()
1304 struct mcontext __user *tm_mcp = NULL; in COMPAT_SYSCALL_DEFINE0()
1310 sf = (struct sigframe __user *)(regs->gpr[1] + __SIGNAL_FRAMESIZE); in COMPAT_SYSCALL_DEFINE0()
1327 mcp = (struct mcontext __user *)&sf->mctx; in COMPAT_SYSCALL_DEFINE0()
1329 tm_mcp = (struct mcontext __user *)&sf->mctx_transact; in COMPAT_SYSCALL_DEFINE0()
1339 sr = (struct mcontext __user *)from_user_ptr(sigctx.regs); in COMPAT_SYSCALL_DEFINE0()