Lines Matching refs:ucp
43 struct ucontext __user *ucp = (struct ucontext __user *) in sparc64_set_context() local
54 (((unsigned long)ucp) & (sizeof(unsigned long)-1)) || in sparc64_set_context()
55 (!__access_ok(ucp, sizeof(*ucp)))) in sparc64_set_context()
57 grp = &ucp->uc_mcontext.mc_gregs; in sparc64_set_context()
66 if (__get_user(set.sig[0], &ucp->uc_sigmask.sig[0])) in sparc64_set_context()
69 if (__copy_from_user(&set, &ucp->uc_sigmask, sizeof(sigset_t))) in sparc64_set_context()
102 err |= __get_user(fp, &(ucp->uc_mcontext.mc_fp)); in sparc64_set_context()
103 err |= __get_user(i7, &(ucp->uc_mcontext.mc_i7)); in sparc64_set_context()
109 err |= __get_user(fenab, &(ucp->uc_mcontext.mc_fpregs.mcfpu_enab)); in sparc64_set_context()
115 err |= __get_user(fprs, &(ucp->uc_mcontext.mc_fpregs.mcfpu_fprs)); in sparc64_set_context()
118 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs), in sparc64_set_context()
122 ((unsigned long __user *)&(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs))+16, in sparc64_set_context()
125 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fsr)); in sparc64_set_context()
127 &(ucp->uc_mcontext.mc_fpregs.mcfpu_gsr)); in sparc64_set_context()
142 struct ucontext __user *ucp = (struct ucontext __user *) in sparc64_get_context() local
152 if (get_thread_wsaved() || clear_user(ucp, sizeof(*ucp))) in sparc64_get_context()
161 mcp = &ucp->uc_mcontext; in sparc64_get_context()
175 (unsigned long __user *)&ucp->uc_sigmask); in sparc64_get_context()
177 err |= __copy_to_user(&ucp->uc_sigmask, ¤t->blocked, in sparc64_get_context()