• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/um/sys-i386/

Lines Matching refs:to

67 int copy_sc_to_user_skas(struct sigcontext __user *to, struct _fpstate __user *to_fp,
102 to_fp = (to_fp ? to_fp : (struct _fpstate __user *) (to + 1));
108 return copy_to_user(to, &sc, sizeof(sc)) ||
115 /* These copy a sigcontext to/from userspace. They copy the fpstate pointer,
118 * fpstate pointer, and the sigcontext that it should be restored to are both
123 int copy_sc_from_user_tt(struct sigcontext *to, struct sigcontext __user *from,
131 to_fp = to->fpstate;
132 sigs = to->oldmask;
133 err = copy_from_user(to, from, sizeof(*to));
134 from_fp = to->fpstate;
135 to->oldmask = sigs;
136 to->fpstate = to_fp;
142 int copy_sc_to_user_tt(struct sigcontext __user *to, struct _fpstate __user *fp,
149 to_fp = (fp ? fp : (struct _fpstate __user *) (to + 1));
151 err = copy_to_user(to, from, sizeof(*to));
155 * to be restored, so we stick it in separately.
157 err |= copy_to_user(&SC_SP(to), &sp, sizeof(sp));
160 err |= copy_to_user(&to->fpstate, &to_fp, sizeof(to->fpstate));
167 static int copy_sc_from_user(struct pt_regs *to, void __user *from)
171 ret = CHOOSE_MODE(copy_sc_from_user_tt(UPT_SC(&to->regs), from,
173 copy_sc_from_user_skas(to, from));
177 static int copy_sc_to_user(struct sigcontext __user *to, struct _fpstate __user *fp,
180 return CHOOSE_MODE(copy_sc_to_user_tt(to, fp, UPT_SC(&from->regs),
182 copy_sc_to_user_skas(to, fp, from, sp));
239 /* Update SP now because the page fault handler refuses to extend
243 * When writing the sigcontext to the stack, we have to write the
244 * original value, so that's passed to copy_sc_to_user, which does
261 * reasons and because gdb uses it as a signature to notice
319 * reasons and because gdb uses it as a signature to notice