Lines Matching refs:uc

243 	struct ucontext uc;  member
331 static inline int rt_restore_fpu_state(struct ucontext __user *uc) in rt_restore_fpu_state() argument
341 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
345 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
350 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state()
383 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state()
408 __copy_from_user(fpstate + 4, (long __user *)&uc->uc_fpstate + 1, in rt_restore_fpu_state()
482 static inline int rt_save_fpu_state(struct ucontext __user *uc, struct pt_regs *regs) in rt_save_fpu_state() argument
490 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpcntl, in rt_save_fpu_state()
493 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpregs, in rt_save_fpu_state()
507 err |= __put_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate); in rt_save_fpu_state()
541 err |= copy_to_user(&uc->uc_mcontext.fpregs, &fpregs, in rt_save_fpu_state()
545 err |= copy_to_user((long __user *)&uc->uc_fpstate + 1, fpstate + 4, in rt_save_fpu_state()
560 static inline int rt_restore_fpu_state(struct ucontext __user *uc) in rt_restore_fpu_state() argument
569 static inline int rt_save_fpu_state(struct ucontext __user *uc, struct pt_regs *regs) in rt_save_fpu_state() argument
710 struct ucontext __user *uc) in rt_restore_ucontext() argument
713 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext()
720 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext()
745 err |= __get_user(temp, &uc->uc_formatvec); in rt_restore_ucontext()
747 err |= rt_restore_fpu_state(uc); in rt_restore_ucontext()
748 err |= restore_altstack(&uc->uc_stack); in rt_restore_ucontext()
753 return mangle_kernel_stack(regs, temp, &uc->uc_extra); in rt_restore_ucontext()
792 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in do_rt_sigreturn()
797 size = rt_restore_ucontext(regs, sw, &frame->uc); in do_rt_sigreturn()
829 static inline int rt_setup_ucontext(struct ucontext __user *uc, struct pt_regs *regs) in rt_setup_ucontext() argument
833 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext()
836 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()
855 err |= __put_user((tregs->format << 12) | tregs->vector, &uc->uc_formatvec); in rt_setup_ucontext()
856 err |= rt_save_fpu_state(uc, regs); in rt_setup_ucontext()
964 err |= copy_to_user (&frame->uc.uc_extra, regs + 1, fsize); in setup_rt_frame()
968 err |= __put_user(&frame->uc, &frame->puc); in setup_rt_frame()
972 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame()
973 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame()
974 err |= __save_altstack(&frame->uc.uc_stack, rdusp()); in setup_rt_frame()
975 err |= rt_setup_ucontext(&frame->uc, regs); in setup_rt_frame()
976 err |= copy_to_user (&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()