Lines Matching refs:sf

100 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs,  in stash_usr_regs()  argument
130 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs()
131 sizeof(sf->uc.uc_mcontext.regs.scratch)); in stash_usr_regs()
134 err |= save_arcv2_regs(&(sf->uc.uc_mcontext), regs); in stash_usr_regs()
136 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t)); in stash_usr_regs()
141 static int restore_usr_regs(struct pt_regs *regs, struct rt_sigframe __user *sf) in restore_usr_regs() argument
147 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_usr_regs()
149 &(sf->uc.uc_mcontext.regs.scratch), in restore_usr_regs()
150 sizeof(sf->uc.uc_mcontext.regs.scratch)); in restore_usr_regs()
153 err |= restore_arcv2_regs(&(sf->uc.uc_mcontext), regs); in restore_usr_regs()
196 struct rt_sigframe __user *sf; in SYSCALL_DEFINE0() local
210 sf = (struct rt_sigframe __force __user *)(regs->sp); in SYSCALL_DEFINE0()
212 if (!access_ok(sf, sizeof(*sf))) in SYSCALL_DEFINE0()
215 if (__get_user(magic, &sf->sigret_magic)) in SYSCALL_DEFINE0()
219 if (restore_altstack(&sf->uc.uc_stack)) in SYSCALL_DEFINE0()
222 if (restore_usr_regs(regs, sf)) in SYSCALL_DEFINE0()
271 struct rt_sigframe __user *sf; in setup_rt_frame() local
275 sf = get_sigframe(ksig, regs, sizeof(struct rt_sigframe)); in setup_rt_frame()
276 if (!sf) in setup_rt_frame()
286 err |= stash_usr_regs(sf, regs, set); in setup_rt_frame()
295 err |= copy_siginfo_to_user(&sf->info, &ksig->info); in setup_rt_frame()
296 err |= __put_user(0, &sf->uc.uc_flags); in setup_rt_frame()
297 err |= __put_user(NULL, &sf->uc.uc_link); in setup_rt_frame()
298 err |= __save_altstack(&sf->uc.uc_stack, regs->sp); in setup_rt_frame()
301 regs->r1 = (unsigned long)&sf->info; in setup_rt_frame()
302 regs->r2 = (unsigned long)&sf->uc; in setup_rt_frame()
311 err |= __put_user(magic, &sf->sigret_magic); in setup_rt_frame()
331 regs->sp = (unsigned long)sf; in setup_rt_frame()