| /linux/arch/sh/kernel/cpu/sh4/ |
| H A D | fpu.c | 84 :"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 …]
|
| /linux/tools/testing/selftests/x86/ |
| H A D | xstate.c | 38 static struct xstate_info xstate; variable 49 static inline void load_rand_xstate(struct xstate_info *xstate, struct xsave_buffer *xbuf) in load_rand_xstate() argument 52 set_xstatebv(xbuf, xstate->mask); in load_rand_xstate() 53 set_rand_data(xstate, xbuf); in load_rand_xstate() 54 xrstor(xbuf, xstate->mask); in load_rand_xstate() 57 static inline void load_init_xstate(struct xstate_info *xstate, struct xsave_buffer *xbuf) in load_init_xstate() argument 60 xrstor(xbuf, xstate->mask); in load_init_xstate() 65 memcpy(&xbuf_dst->bytes[xstate.xbuf_offset], in copy_xstate() 66 &xbuf_src->bytes[xstate.xbuf_offset], in copy_xstate() 67 xstate.size); in copy_xstate() [all …]
|
| H A D | xstate.h | 135 struct xstate_info xstate = { }; in get_xstate_info() local 140 return xstate; in get_xstate_info() 143 xstate.name = xfeature_names[xfeature_num]; in get_xstate_info() 144 xstate.num = xfeature_num; in get_xstate_info() 145 xstate.mask = 1 << xfeature_num; in get_xstate_info() 149 xstate.size = eax; in get_xstate_info() 150 xstate.xbuf_offset = ebx; in get_xstate_info() 151 return xstate; in get_xstate_info() 198 static inline void set_rand_data(struct xstate_info *xstate, struct xsave_buffer *xbuf) in set_rand_data() argument 200 int *ptr = (int *)&xbuf->bytes[xstate->xbuf_offset]; in set_rand_data() [all …]
|
| H A D | sigframe_fpu_portability.c | 80 struct xstate_info xstate; in check_avx_support() local 91 xstate = get_xstate_info(XFEATURE_YMM); in check_avx_support() 92 if (!xstate.size) in check_avx_support() 95 ymm_offset = xstate.xbuf_offset; in check_avx_support() 96 xstate_size_ymm = xstate.xbuf_offset + xstate.size; in check_avx_support()
|
| H A D | Makefile | 139 $(OUTPUT)/amx_64: EXTRA_FILES += xstate.c 140 $(OUTPUT)/avx_64: EXTRA_FILES += xstate.c 141 $(OUTPUT)/apx_64: EXTRA_FILES += xstate.c
|
| /linux/arch/sh/kernel/ |
| H A D | process.c | 29 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 D | process_32.c | 157 prefetch(next_t->xstate); in __switch_to()
|
| H A D | signal_32.c | 85 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()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | amx_test.c | 83 static inline void __xsavec(struct xstate *xstate, u64 rfbm) in __xsavec() argument 89 : : "D" (xstate), "a" (rfbm_lo), "d" (rfbm_hi) in __xsavec() 149 struct xstate *xstate) in guest_code() argument 183 xstate->header.xstate_bv = XFEATURE_MASK_XTILE_DATA; in guest_code() 184 __xsavec(xstate, XFEATURE_MASK_XTILE_DATA); in guest_code() 185 GUEST_ASSERT(!(xstate->header.xstate_bv & XFEATURE_MASK_XTILE_DATA)); in guest_code() 186 GUEST_ASSERT(xstate->header.xcomp_bv & XFEATURE_MASK_XTILE_DATA); in guest_code() 197 xstate in guest_code() 239 gva_t amx_cfg, tiledata, xstate; main() local [all...] |
| /linux/arch/sh/kernel/cpu/sh2a/ |
| H A D | fpu.c | 52 : "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 …]
|
| /linux/arch/sh/kernel/cpu/ |
| H A D | fpu.c | 22 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()
|
| /linux/Documentation/arch/x86/ |
| H A D | xstate.rst | 79 the handler allocates a larger xstate buffer for the task so the large 201 xstate context is present; 0 for a legacy frame. 205 - ``xfeatures``: The mask of xstate features saved in the frame. 206 - ``xstate_size``: The actual size of the xstate context for the enabled 209 The kernel uses ``xstate_size`` in conjunction with the pointer to the xstate 211 the xstate context (at ``xstate_context + xstate_size``). In 64-bit signal frames, 212 the ``fpstate`` pointer points directly to the xstate context. In 32-bit signal 215 FPU state followed by the 512-byte FXSR state (and any extended xstate). Since 217 state, the xstate context starts at ``fpstate + 112`` (and ``extended_size``
|
| H A D | index.rst | 46 xstate
|
| H A D | sva.rst | 135 and the cleared IA32_PASID MSR reduces context switch overhead by xstate
|
| /linux/arch/x86/kernel/fpu/ |
| H A D | xstate.c | 339 static __init void os_xrstor_booting(struct xregs_state *xstate) in os_xrstor_booting() argument 347 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in os_xrstor_booting() 349 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in os_xrstor_booting() 1141 static void copy_feature(bool from_xstate, struct membuf *to, void *xstate, in copy_feature() argument 1144 membuf_write(to, from_xstate ? xstate : init_xstate, size); in copy_feature() 1459 void xsaves(struct xregs_state *xstate, u64 mask) in xsaves() argument 1466 XSTATE_OP(XSAVES, xstate, (u32)mask, (u32)(mask >> 32), err); in xsaves() 1483 void xrstors(struct xregs_state *xstate, u64 mask) in xrstors() argument 1490 XSTATE_OP(XRSTORS, xstate, (u32)mask, (u32)(mask >> 32), err); in xrstors() 1506 void xsaves_nmi(struct xregs_state *xstate, u64 mask) in xsaves_nmi() argument [all …]
|
| H A D | Makefile | 6 obj-y += init.o bugs.o core.o regset.o signal.o xstate.o
|
| H A D | core.c | 653 struct cet_user_state *xstate; in update_fpu_shstk() local 659 xstate = get_xsave_addr(&x86_task_fpu(dst)->fpstate->regs.xsave, in update_fpu_shstk() 668 if (WARN_ON_ONCE(!xstate)) in update_fpu_shstk() 671 xstate->user_ssp = (u64)ssp; in update_fpu_shstk()
|
| /linux/arch/sh/include/asm/ |
| H A D | processor_32.h | 108 union thread_xstate *xstate; member
|
| /linux/drivers/net/ppp/ |
| H A D | ppp_generic.c | 132 unsigned int xstate; /* transmit state bits 68 */ 164 * Bits in xstate: SC_COMP_RUN 836 val = ppp->flags | ppp->xstate | ppp->rstate; in ppp_ioctl() 1864 if ((ppp->xstate & SC_COMP_RUN) && ppp->xc_state && in ppp_prepare_tx_skb() 3166 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek() 3229 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_closed() 3242 ppp->xstate &= ~SC_COMP_RUN; in find_comp_entry() 3273 ppp->xstate |= SC_COMP_RUN; 3287 if (ppp->xc_state && (ppp->xstate & SC_COMP_RUN)) in ppp_unregister_compressor() 3298 void *xstate, *rstat in find_compressor() 131 unsigned int xstate; /* transmit state bits 68 */ global() member 3206 void *xstate, *rstate; ppp_ccp_closed() local [all...] |
| /linux/arch/x86/events/intel/ |
| H A D | ds.c | 2736 if (xer_header->xstate & XFEATURE_MASK_SSE) in setup_arch_pebs_sample_data() 2743 if (xer_header->xstate & XFEATURE_MASK_YMM) in setup_arch_pebs_sample_data() 2750 if (xer_header->xstate & XFEATURE_MASK_APX) in setup_arch_pebs_sample_data() 2757 if (xer_header->xstate & XFEATURE_MASK_OPMASK) in setup_arch_pebs_sample_data() 2764 if (xer_header->xstate & XFEATURE_MASK_ZMM_Hi256) in setup_arch_pebs_sample_data() 2771 if (xer_header->xstate & XFEATURE_MASK_Hi16_ZMM) in setup_arch_pebs_sample_data()
|
| /linux/arch/x86/include/asm/ |
| H A D | perf_event.h | 601 u64 xstate; member
|
| /linux/arch/sh/math-emu/ |
| H A D | math.c | 497 struct sh_fpu_soft_struct *fpu = &(tsk->thread.xstate->softfpu); in do_fpu_inst()
|
| /linux/tools/testing/selftests/kvm/include/x86/ |
| H A D | processor.h | 91 struct xstate { 71 struct xstate { global() struct 73 headerxstate global() argument 74 extended_state_areaxstate global() argument
|
| /linux/Documentation/ |
| H A D | .renames.txt | 1177 x86/xstate arch/x86/xstate
|
| /linux/arch/x86/kvm/ |
| H A D | x86.c | 78 #include <asm/fpu/xstate.h> 3191 union fpregs_state *xstate = (union fpregs_state *)guest_xsave->region; in kvm_vcpu_ioctl_x86_set_xsave() 3201 xstate->xsave.header.xfeatures &= ~vcpu->arch.guest_fpu.fpstate->xfd; in kvm_vcpu_ioctl_x86_get_xcrs() 3180 union fpregs_state *xstate = (union fpregs_state *)guest_xsave->region; kvm_vcpu_ioctl_x86_set_xsave() local
|