• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/include/asm/

Lines Matching defs:fpu

110 static inline void fpu_clear(struct fpu *fpu)
112 struct xsave_struct *xstate = &fpu->state->xsave;
113 struct i387_fxsave_struct *fx = &fpu->state->fxsave;
132 fpu_clear(&tsk->thread.fpu);
164 static inline void fpu_fxsave(struct fpu *fpu)
171 : "=m" (fpu->state->fxsave)
172 : "cdaSDb" (&fpu->state->fxsave));
175 static inline void fpu_save_init(struct fpu *fpu)
178 fpu_xsave(fpu);
180 fpu_fxsave(fpu);
182 fpu_clear(fpu);
187 fpu_save_init(&tsk->thread.fpu);
232 static inline void fpu_save_init(struct fpu *fpu)
235 struct xsave_struct *xstate = &fpu->state->xsave;
236 struct i387_fxsave_struct *fx = &fpu->state->fxsave;
238 fpu_xsave(fpu);
262 [fx] "m" (fpu->state->fxsave),
263 [fsw] "m" (fpu->state->fxsave.swd) : "memory");
280 fpu_save_init(&tsk->thread.fpu);
287 static inline int fpu_fxrstor_checking(struct fpu *fpu)
289 return fxrstor_checking(&fpu->state->fxsave);
292 static inline int fpu_restore_checking(struct fpu *fpu)
295 return fpu_xrstor_checking(fpu);
297 return fpu_fxrstor_checking(fpu);
302 return fpu_restore_checking(&tsk->thread.fpu);
357 * in interrupt context interacting wrongly with other user/kernel fpu usage, we
430 return tsk->thread.fpu.state->fxsave.cwd;
432 return (unsigned short)tsk->thread.fpu.state->fsave.cwd;
439 return tsk->thread.fpu.state->fxsave.swd;
441 return (unsigned short)tsk->thread.fpu.state->fsave.swd;
448 return tsk->thread.fpu.state->fxsave.mxcsr;
454 static bool fpu_allocated(struct fpu *fpu)
456 return fpu->state != NULL;
459 static inline int fpu_alloc(struct fpu *fpu)
461 if (fpu_allocated(fpu))
463 fpu->state = kmem_cache_alloc(task_xstate_cachep, GFP_KERNEL);
464 if (!fpu->state)
466 WARN_ON((unsigned long)fpu->state & 15);
470 static inline void fpu_free(struct fpu *fpu)
472 if (fpu->state) {
473 kmem_cache_free(task_xstate_cachep, fpu->state);
474 fpu->state = NULL;
478 static inline void fpu_copy(struct fpu *dst, struct fpu *src)
483 extern void fpu_finit(struct fpu *fpu);