Home
last modified time | relevance | path

Searched refs:fpstate (Results 1 – 25 of 36) sorted by relevance

12

/linux/arch/x86/kernel/fpu/
A Dcore.c196 static void __fpstate_reset(struct fpstate *fpstate, u64 xfd);
220 struct fpstate *fpstate; in fpu_alloc_guest_fpstate() local
225 if (!fpstate) in fpu_alloc_guest_fpstate()
234 gfpu->fpstate = fpstate; in fpu_alloc_guest_fpstate()
259 struct fpstate *fps = gfpu->fpstate; in fpu_free_guest_fpstate()
319 struct fpstate *fps = current->thread.fpu.fpstate; in fpu_sync_guest_vmexit_xfd_state()
332 struct fpstate *guest_fps = guest_fpu->fpstate; in fpu_swap_kvm_fpstate()
334 struct fpstate *cur_fps = fpu->fpstate; in fpu_swap_kvm_fpstate()
374 struct fpstate *kstate = gfpu->fpstate; in fpu_copy_guest_fpstate_to_uabi()
393 struct fpstate *kstate = gfpu->fpstate; in fpu_copy_uabi_to_guest_fpstate()
[all …]
A Dxstate.h45 extern void __copy_xstate_to_uabi_buf(struct membuf to, struct fpstate *fpstate,
141 extern void xfd_validate_state(struct fpstate *fpstate, u64 mask, bool rstor);
153 static inline void xfd_update_state(struct fpstate *fpstate) in xfd_update_state() argument
156 u64 xfd = fpstate->xfd; in xfd_update_state()
167 static inline void xfd_update_state(struct fpstate *fpstate) { } in xfd_update_state() argument
180 static inline void os_xsave(struct fpstate *fpstate) in os_xsave() argument
201 static inline void os_xrstor(struct fpstate *fpstate, u64 mask) in os_xrstor() argument
211 static inline void os_xrstor_supervisor(struct fpstate *fpstate) in os_xrstor_supervisor() argument
266 struct fpstate *fpstate = current->thread.fpu.fpstate; in xsave_to_user_sigframe() local
310 static inline int os_xrstor_safe(struct fpstate *fpstate, u64 mask) in os_xrstor_safe() argument
[all …]
A Dsignal.c32 void __user *fpstate = fxbuf; in check_xstate_in_sigframe() local
116 struct fpstate *fpstate) in save_sw_bytes() argument
128 struct fpstate *fpstate) in save_xstate_epilog() argument
208 struct fpstate *fpstate = tsk->thread.fpu.fpstate; in copy_fpstate_to_sigframe() local
304 xfd_update_state(fpu->fpstate); in restore_fpregs_from_user()
345 os_xrstor_supervisor(fpu->fpstate); in restore_fpregs_from_user()
404 os_xsave(fpu->fpstate); in __fpu_restore_sig()
411 fpregs = &fpu->fpstate->regs; in __fpu_restore_sig()
451 success = !os_xrstor_safe(fpu->fpstate, in __fpu_restore_sig()
464 static inline unsigned int xstate_sigframe_size(struct fpstate *fpstate) in xstate_sigframe_size() argument
[all …]
A Dxstate.c407 struct fpstate *fpstate) in validate_user_xstate_header() argument
1083 void __copy_xstate_to_uabi_buf(struct membuf to, struct fpstate *fpstate, in __copy_xstate_to_uabi_buf() argument
1256 static int copy_uabi_to_xstate(struct fpstate *fpstate, const void *kbuf, in copy_uabi_to_xstate() argument
1434 static bool xstate_op_valid(struct fpstate *fpstate, u64 mask, bool rstor) in xstate_op_valid() argument
1438 if (fpstate->xfd == xfd) in xstate_op_valid()
1445 if (fpstate->xfd == current->thread.fpu.fpstate->xfd) in xstate_op_valid()
1480 void xfd_validate_state(struct fpstate *fpstate, u64 mask, bool rstor) in xfd_validate_state() argument
1500 if (fpu->fpstate && fpu->fpstate != &fpu->__fpstate) in arch_initcall()
1501 vfree(fpu->fpstate); in arch_initcall()
1540 curfps = guest_fpu ? guest_fpu->fpstate : fpu->fpstate; in fpstate_realloc()
[all …]
A Dregset.c82 return membuf_write(&to, &fpu->fpstate->regs.fxsave, in xfpregs_get()
83 sizeof(fpu->fpstate->regs.fxsave)); in xfpregs_get()
116 memcpy(&fpu->fpstate->regs.fxsave, &newstate, sizeof(newstate)); in xfpregs_set()
121 memset(&fpu->fpstate->regs.fxsave.xmm_space[8*4], 0, 8 * 16); in xfpregs_set()
125 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in xfpregs_set()
217 struct xregs_state *xsave = &fpu->fpstate->regs.xsave; in ssp_set()
413 return membuf_write(&to, &fpu->fpstate->regs.fsave, in fpregs_get()
424 fx = &fpu->fpstate->regs.fxsave; in fpregs_get()
453 convert_to_fxsr(&fpu->fpstate->regs.fxsave, &env); in fpregs_set()
455 memcpy(&fpu->fpstate->regs.fsave, &env, sizeof(env)); in fpregs_set()
[all …]
A Dinternal.h5 extern struct fpstate init_fpstate;
25 extern void fpstate_init_user(struct fpstate *fpstate);
A Dcontext.h74 restore_fpregs_from_fpstate(fpu->fpstate, XFEATURE_MASK_FPSTATE); in fpregs_restore_userregs()
/linux/arch/m68k/kernel/
A Dsignal.c354 if (CPU_IS_060 ? fpstate[2] : fpstate[0]) { in rt_restore_fpu_state()
356 context_size = fpstate[1]; in rt_restore_fpu_state()
374 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state()
375 fpstate[3] == 0x60 || in rt_restore_fpu_state()
376 fpstate[3] == 0xe0)) in rt_restore_fpu_state()
381 fpstate[3] == 0xe5)) in rt_restore_fpu_state()
420 : : "m" (*fpstate)); in rt_restore_fpu_state()
510 if (CPU_IS_060 ? fpstate[2] : fpstate[0]) { in rt_save_fpu_state()
513 context_size = fpstate[1]; in rt_save_fpu_state()
514 fpu_version = fpstate[0]; in rt_save_fpu_state()
[all …]
A Dprocess.c185 asm volatile ("fsave %0" : : "m" (p->thread.fpstate[0]) : "memory"); in copy_thread()
187 if (!CPU_IS_060 ? p->thread.fpstate[0] : p->thread.fpstate[2]) { in copy_thread()
210 asm volatile ("frestore %0" : : "m" (p->thread.fpstate[0])); in copy_thread()
/linux/arch/x86/um/
A Dsignal.c211 &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0], in copy_sc_from_user()
216 err = convert_fxsr_from_user(&fpx, (void *)sc.fpstate); in copy_sc_from_user()
230 err = copy_from_user(regs->regs.fp, (void *)sc.fpstate, in copy_sc_from_user()
286 sc.fpstate = (unsigned long)to_fp; in copy_sc_to_user()
304 err = convert_fxsr_to_user(&to_fp->fpstate, &fpx); in copy_sc_to_user()
308 err |= __put_user(fpx.swd, &to_fp->fpstate.status); in copy_sc_to_user()
313 if (copy_to_user(&to_fp->fpstate._fxsr_env[0], &fpx, in copy_sc_to_user()
344 struct _xstate fpstate; member
357 struct _xstate fpstate; member
486 struct _xstate fpstate; member
[all …]
/linux/arch/x86/include/asm/fpu/
A Dtypes.h358 struct fpstate { struct
478 struct fpstate *fpstate; member
486 struct fpstate *__task_fpstate;
510 struct fpstate __fpstate;
547 struct fpstate *fpstate; member
A Dapi.h142 extern void fpstate_clear_xstate_component(struct fpstate *fps, unsigned int xfeature);
169 gfpu->fpstate->is_confidential = true; in fpstate_set_confidential()
174 return gfpu->fpstate->is_confidential; in fpstate_is_confidential()
A Dsignal.h36 extern void restore_fpregs_from_fpstate(struct fpstate *fpstate, u64 mask);
/linux/arch/x86/include/uapi/asm/
A Dsigcontext.h193 struct _fpstate fpstate; member
230 __u32 fpstate; /* Zero when no FPU/extended context */ member
273 __u64 fpstate; /* Zero when no FPU/extended context */ member
320 struct _fpstate __user *fpstate; member
380 struct _fpstate __user *fpstate; /* Zero when no FPU context */ member
/linux/tools/testing/selftests/x86/
A Dcorrupt_xstate_header.c48 uint8_t *fpstate = (uint8_t *)uc->uc_mcontext.fpregs; in sigusr1() local
49 uint64_t *xfeatures = (uint64_t *)(fpstate + 512); in sigusr1()
/linux/arch/x86/include/asm/trace/
A Dfpu.h25 __entry->xfeatures = fpu->fpstate->regs.xsave.header.xfeatures;
26 __entry->xcomp_bv = fpu->fpstate->regs.xsave.header.xcomp_bv;
/linux/arch/x86/kernel/
A Dsignal.c95 void __user **fpstate) in get_sigframe() argument
133 *fpstate = (void __user *)sp; in get_sigframe()
163 if (!copy_fpstate_to_sigframe(*fpstate, (void __user *)buf_fx, math_size, pkru)) { in get_sigframe()
A Dsignal_32.c122 return fpu__restore_sig(compat_ptr(sc.fpstate), 1); in ia32_restore_sigcontext()
184 void __user *fpstate, in __unsafe_setup_sigcontext32() argument
214 unsafe_put_user(ptr_to_compat(fpstate), &sc->fpstate, Efault); in __unsafe_setup_sigcontext32()
A Dsignal_64.c95 return fpu__restore_sig((void __user *)sc.fpstate, 0); in restore_sigcontext()
99 __unsafe_setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, in __unsafe_setup_sigcontext() argument
128 unsafe_put_user(fpstate, (unsigned long __user *)&sc->fpstate, Efault); in __unsafe_setup_sigcontext()
/linux/arch/x86/include/asm/
A Dsighandling.h20 void __user **fpstate);
/linux/arch/arm/nwfpe/
A Dfpa11.h13 #define GET_FPA11() ((FPA11 *)(&current_thread_info()->fpstate))
A Dfpmodule.c53 nwfpe_init_fpa(&thread->fpstate); in nwfpe_notify()
/linux/arch/arm/kernel/
A Dptrace.c301 return copy_to_user(ufp, &thread->fpstate.iwmmxt, IWMMXT_SIZE) in ptrace_getwmmxregs()
315 return copy_from_user(&thread->fpstate.iwmmxt, ufp, IWMMXT_SIZE) in ptrace_setwmmxregs()
576 return membuf_write(&to, &task_thread_info(target)->fpstate, in fpa_get()
588 &thread->fpstate, in fpa_set()
A Dasm-offsets.c53 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
65 DEFINE(TI_IWMMXT_STATE, offsetof(struct thread_info, fpstate.iwmmxt)); in main()
/linux/arch/m68k/include/asm/
A Dprocessor.h115 unsigned char fpstate[FPSTATESIZE]; /* floating point state */ member

Completed in 45 milliseconds

12