Home
last modified time | relevance | path

Searched refs:xstate (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/arch/sh/kernel/cpu/sh4/
H A Dfpu.c84 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
134 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
232 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
248 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
249 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
260 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
262 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
264 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/openbmc/linux/arch/sh/kernel/
H A Dprocess.c29 if (src->thread.xstate) { in arch_dup_task_struct()
30 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
32 if (!dst->thread.xstate) in arch_dup_task_struct()
34 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
42 if (tsk->thread.xstate) { in free_thread_xstate()
43 kmem_cache_free(task_xstate_cachep, tsk->thread.xstate); in free_thread_xstate()
44 tsk->thread.xstate = NULL; in free_thread_xstate()
H A Dptrace_32.c177 return membuf_write(&to, target->thread.xstate, in fpregs_get()
196 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
199 &target->thread.xstate->softfpu, 0, -1); in fpregs_set()
369 tmp = ((unsigned long *)child->thread.xstate) in arch_ptrace()
404 ((unsigned long *)child->thread.xstate) in arch_ptrace()
H A Dprocess_32.c157 prefetch(next_t->xstate); in __switch_to()
H A Dsignal_32.c85 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
109 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu()
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Damx_test.c79 static inline void __xsavec(struct xstate *xstate, uint64_t rfbm) in __xsavec() argument
85 : : "D" (xstate), "a" (rfbm_lo), "d" (rfbm_hi) in __xsavec()
147 struct xstate *xstate) in guest_code() argument
169 xstate->header.xstate_bv = XFEATURE_MASK_XTILE_DATA; in guest_code()
170 __xsavec(xstate, XFEATURE_MASK_XTILE_DATA); in guest_code()
171 GUEST_ASSERT(!(xstate->header.xstate_bv & XFEATURE_MASK_XTILE_DATA)); in guest_code()
172 GUEST_ASSERT(xstate->header.xcomp_bv & XFEATURE_MASK_XTILE_DATA); in guest_code()
181 xstate->header.xstate_bv = XFEATURE_MASK_XTILE_DATA; in guest_code()
182 __xsavec(xstate, XFEATURE_MASK_XTILE_DATA); in guest_code()
183 GUEST_ASSERT(!(xstate->header.xstate_bv & XFEATURE_MASK_XTILE_DATA)); in guest_code()
[all …]
/openbmc/linux/arch/sh/kernel/cpu/sh2a/
H A Dfpu.c52 : "0" ((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
84 : "0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
456 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
458 denormal_to_double (&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
473 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
474 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
475 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
485 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler()
487 | tsk->thread.xstate->hardfpu.fp_regs[m+1]; in ieee_fpe_handler()
492 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/openbmc/linux/arch/sh/kernel/cpu/
H A Dfpu.c22 if (!tsk->thread.xstate) { in init_fpu()
23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu()
25 if (!tsk->thread.xstate) in init_fpu()
30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu()
34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu()
/openbmc/linux/arch/x86/kernel/fpu/
H A Dxstate.h296 struct xregs_state *xstate = ((__force struct xregs_state *)buf); in xrstor_from_user_sigframe() local
304 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in xrstor_from_user_sigframe()
316 struct xregs_state *xstate = &fpstate->regs.xsave; in os_xrstor_safe() local
325 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in os_xrstor_safe()
327 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in os_xrstor_safe()
H A Dxstate.c313 static __init void os_xrstor_booting(struct xregs_state *xstate) in os_xrstor_booting() argument
321 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in os_xrstor_booting()
323 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in os_xrstor_booting()
1046 static void copy_feature(bool from_xstate, struct membuf *to, void *xstate, in copy_feature() argument
1049 membuf_write(to, from_xstate ? xstate : init_xstate, size); in copy_feature()
1364 void xsaves(struct xregs_state *xstate, u64 mask) in xsaves() argument
1371 XSTATE_OP(XSAVES, xstate, (u32)mask, (u32)(mask >> 32), err); in xsaves()
1388 void xrstors(struct xregs_state *xstate, u64 mask) in xrstors() argument
1395 XSTATE_OP(XRSTORS, xstate, (u32)mask, (u32)(mask >> 32), err); in xrstors()
H A DMakefile6 obj-y += init.o bugs.o core.o regset.o signal.o xstate.o
H A Dcore.c560 struct cet_user_state *xstate; in update_fpu_shstk() local
566 xstate = get_xsave_addr(&dst->thread.fpu.fpstate->regs.xsave, in update_fpu_shstk()
575 if (WARN_ON_ONCE(!xstate)) in update_fpu_shstk()
578 xstate->user_ssp = (u64)ssp; in update_fpu_shstk()
/openbmc/qemu/linux-user/i386/
H A Dsignal.c614 void *xstate; in xrstor_sigcontext() local
647 xstate = lock_user(VERIFY_READ, fxstate_addr, in xrstor_sigcontext()
649 if (!xstate) { in xrstor_sigcontext()
659 magic2 = tswap32(*(uint32_t *)(xstate + xstate_size)); in xrstor_sigcontext()
661 unlock_user(xstate, fxstate_addr, 0); in xrstor_sigcontext()
665 ok = cpu_x86_xrstor(env, xstate, xstate_size, xfeatures); in xrstor_sigcontext()
666 unlock_user(xstate, fxstate_addr, 0); in xrstor_sigcontext()
/openbmc/linux/Documentation/arch/x86/
H A Dindex.rst45 xstate
H A Dxstate.rst79 the handler allocates a larger xstate buffer for the task so the large
H A Dsva.rst135 and the cleared IA32_PASID MSR reduces context switch overhead by xstate
/openbmc/linux/arch/sh/include/asm/
H A Dprocessor_32.h108 union thread_xstate *xstate; member
/openbmc/linux/drivers/net/ppp/
H A Dppp_generic.c126 unsigned int xstate; /* transmit state bits 68 */ member
835 val = ppp->flags | ppp->xstate | ppp->rstate; in ppp_ioctl()
1834 if ((ppp->xstate & SC_COMP_RUN) && ppp->xc_state && in ppp_send_frame()
3059 ppp->xstate &= ~SC_COMP_RUN; in ppp_set_compress()
3122 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek()
3135 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek()
3163 ppp->xstate |= SC_COMP_RUN; in ppp_ccp_peek()
3177 if (ppp->xc_state && (ppp->xstate & SC_COMP_RUN)) in ppp_ccp_peek()
3188 void *xstate, *rstate; in ppp_ccp_closed() local
3193 ppp->xstate = 0; in ppp_ccp_closed()
[all …]
/openbmc/linux/arch/sh/math-emu/
H A Dmath.c495 struct sh_fpu_soft_struct *fpu = &(tsk->thread.xstate->softfpu); in do_fpu_inst()
/openbmc/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dprocessor.h57 struct xstate { struct
/openbmc/qemu/target/i386/
H A Dcpu.c6766 uint64_t xstate = x86_cpu_xsave_xcr0_components(cpu) | in cpu_x86_cpuid() local
6770 *ebx = xsave_area_size(xstate, true); in cpu_x86_cpuid()
/openbmc/linux/
H A Dopengrok2.0.log[all...]
H A Dopengrok1.0.log[all...]
H A Dopengrok0.0.log[all...]