Lines Matching defs:fxsave
27 static inline unsigned long twd_fxsr_to_i387(struct i387_fxsave_struct *fxsave)
30 unsigned long tos = (fxsave->swd >> 11) & 7;
31 unsigned long twd = (unsigned long) fxsave->twd;
40 st = FPREG_ADDR( fxsave, (i - tos) & 7 );
74 static inline int convert_fxsr_from_user(struct i387_fxsave_struct *fxsave,
84 G(0, fxsave->cwd);
85 G(1, fxsave->swd);
86 G(2, fxsave->twd);
87 fxsave->twd = twd_i387_to_fxsr(fxsave->twd);
88 G(3, fxsave->rip);
90 fxsave->fop = v>>16; /* cs ignored */
91 G(5, fxsave->rdp);
97 to = (struct _fpxreg *)&fxsave->st_space[0];
108 struct i387_fxsave_struct *fxsave,
129 P(0, (u32)fxsave->cwd | 0xffff0000);
130 P(1, (u32)fxsave->swd | 0xffff0000);
131 P(2, twd_fxsr_to_i387(fxsave));
132 P(3, (u32)fxsave->rip);
133 P(4, cs | ((u32)fxsave->fop) << 16);
134 P(5, fxsave->rdp);
142 from = (struct _fpxreg *) &fxsave->st_space[0];
154 if (__copy_from_user(&tsk->thread.i387.fxsave,
158 tsk->thread.i387.fxsave.mxcsr &= mxcsr_feature_mask;
161 return convert_fxsr_from_user(&tsk->thread.i387.fxsave, buf);
172 if (convert_fxsr_to_user(buf, &tsk->thread.i387.fxsave, regs, tsk))
176 err |= __put_user(tsk->thread.i387.fxsave.swd, &buf->status);
180 err |= __copy_to_user(&buf->_fxsr_env[0], &tsk->thread.i387.fxsave,