Lines Matching refs:err
19 int err = 0; in save_fpu_state() local
23 err |= copy_to_user(&fpu->si_float_regs[0], fpregs, in save_fpu_state()
26 err |= copy_to_user(&fpu->si_float_regs[32], fpregs+16, in save_fpu_state()
28 err |= __put_user(current_thread_info()->xfsr[0], &fpu->si_fsr); in save_fpu_state()
29 err |= __put_user(current_thread_info()->gsr[0], &fpu->si_gsr); in save_fpu_state()
30 err |= __put_user(fprs, &fpu->si_fprs); in save_fpu_state()
32 return err; in save_fpu_state()
39 int err; in restore_fpu_state() local
44 err = get_user(fprs, &fpu->si_fprs); in restore_fpu_state()
48 err |= copy_from_user(fpregs, &fpu->si_float_regs[0], in restore_fpu_state()
51 err |= copy_from_user(fpregs+16, &fpu->si_float_regs[32], in restore_fpu_state()
53 err |= __get_user(current_thread_info()->xfsr[0], &fpu->si_fsr); in restore_fpu_state()
54 err |= __get_user(current_thread_info()->gsr[0], &fpu->si_gsr); in restore_fpu_state()
56 return err; in restore_fpu_state()
61 int i, err = __put_user(wsaved, &rwin->wsaved); in save_rwin_state() local
67 err |= copy_to_user(&rwin->reg_window[i], rp, in save_rwin_state()
69 err |= __put_user(fp, &rwin->rwbuf_stkptrs[i]); in save_rwin_state()
71 return err; in save_rwin_state()
77 int i, wsaved, err; in restore_rwin_state() local
86 err = 0; in restore_rwin_state()
88 err |= copy_from_user(&t->reg_window[i], in restore_rwin_state()
91 err |= __get_user(t->rwbuf_stkptrs[i], in restore_rwin_state()
94 if (err) in restore_rwin_state()
95 return err; in restore_rwin_state()