Home
last modified time | relevance | path

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

/Linux-v4.19/arch/sh/kernel/cpu/sh4/
Dfpu.c87 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
137 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
233 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
235 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
251 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
252 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
253 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
263 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
265 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
267 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/Linux-v4.19/arch/sh/kernel/
Dprocess.c31 if (src->thread.xstate) { in arch_dup_task_struct()
32 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
34 if (!dst->thread.xstate) in arch_dup_task_struct()
36 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
44 if (tsk->thread.xstate) { in free_thread_xstate()
45 kmem_cache_free(task_xstate_cachep, tsk->thread.xstate); in free_thread_xstate()
46 tsk->thread.xstate = NULL; in free_thread_xstate()
Dtraps_64.c356 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
360 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
361 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load()
364 current->thread.xstate->hardfpu.fp_regs[destreg] = bufhi; in misaligned_fpu_load()
365 current->thread.xstate->hardfpu.fp_regs[destreg+1] = buflo; in misaligned_fpu_load()
367 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
368 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load()
423 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store()
427 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store()
428 bufhi = current->thread.xstate->hardfpu.fp_regs[srcreg+1]; in misaligned_fpu_store()
[all …]
Dptrace_32.c200 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
203 &target->thread.xstate->softfpu, 0, -1); in fpregs_get()
221 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
224 &target->thread.xstate->softfpu, 0, -1); in fpregs_set()
402 tmp = ((unsigned long *)child->thread.xstate) in arch_ptrace()
437 ((unsigned long *)child->thread.xstate) in arch_ptrace()
Dptrace_64.c92 tmp = ((long *)task->thread.xstate)[addr / sizeof(unsigned long)]; in get_fpu_long()
127 ((long *)task->thread.xstate)[addr / sizeof(unsigned long)] = data; in put_fpu_long()
229 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
246 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
Dprocess_32.c188 prefetch(next_t->xstate); in __switch_to()
Dsignal_32.c86 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
110 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu()
Dsignal_64.c160 err |= __copy_from_user(&current->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
185 err |= __copy_to_user(&sc->sc_fpregs[0], &current->thread.xstate->hardfpu, in setup_sigcontext_fpu()
Dprocess_64.c363 memcpy(fpu, &tsk->thread.xstate->hardfpu, sizeof(*fpu)); in dump_fpu()
/Linux-v4.19/arch/sh/kernel/cpu/sh2a/
Dfpu.c55 : "0" ((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
87 : "0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
459 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
461 denormal_to_double (&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
476 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
477 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
478 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
488 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler()
490 | tsk->thread.xstate->hardfpu.fp_regs[m+1]; in ieee_fpe_handler()
495 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/Linux-v4.19/arch/sh/kernel/cpu/
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()
/Linux-v4.19/arch/x86/include/asm/fpu/
Dinternal.h282 static inline void copy_xregs_to_kernel_booting(struct xregs_state *xstate) in copy_xregs_to_kernel_booting() argument
292 XSTATE_OP(XSAVES, xstate, lmask, hmask, err); in copy_xregs_to_kernel_booting()
294 XSTATE_OP(XSAVE, xstate, lmask, hmask, err); in copy_xregs_to_kernel_booting()
304 static inline void copy_kernel_to_xregs_booting(struct xregs_state *xstate) in copy_kernel_to_xregs_booting() argument
314 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in copy_kernel_to_xregs_booting()
316 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in copy_kernel_to_xregs_booting()
328 static inline void copy_xregs_to_kernel(struct xregs_state *xstate) in copy_xregs_to_kernel() argument
337 XSTATE_XSAVE(xstate, lmask, hmask, err); in copy_xregs_to_kernel()
346 static inline void copy_kernel_to_xregs(struct xregs_state *xstate, u64 mask) in copy_kernel_to_xregs() argument
351 XSTATE_XRESTORE(xstate, lmask, hmask); in copy_kernel_to_xregs()
[all …]
Dxstate.h49 void *get_xsave_addr(struct xregs_state *xsave, int xstate);
/Linux-v4.19/arch/sh/kernel/cpu/sh5/
Dfpu.c57 : "r" (&tsk->thread.xstate->hardfpu) in save_fpu()
100 : "r" (&tsk->thread.xstate->hardfpu) in restore_fpu()
/Linux-v4.19/arch/x86/kernel/fpu/
DMakefile5 obj-y += init.o bugs.o core.o regset.o signal.o xstate.o
/Linux-v4.19/arch/sh/math-emu/
Dmath.c554 if ((tsk->thread.xstate->softfpu.fpscr & (1 << 17))) { in ieee_fpe_handler()
556 denormal_to_double (&tsk->thread.xstate->softfpu, in ieee_fpe_handler()
558 tsk->thread.xstate->softfpu.fpscr &= in ieee_fpe_handler()
598 struct sh_fpu_soft_struct *fpu = &(tsk->thread.xstate->softfpu); in do_fpu_inst()
/Linux-v4.19/arch/sh/include/asm/
Dprocessor_32.h114 union thread_xstate *xstate; member
Dprocessor_64.h128 union thread_xstate *xstate; member
/Linux-v4.19/drivers/net/ppp/
Dppp_generic.c127 unsigned int xstate; /* transmit state bits 68 */ member
679 val = ppp->flags | ppp->xstate | ppp->rstate; in ppp_ioctl()
1584 if ((ppp->xstate & SC_COMP_RUN) && ppp->xc_state && in ppp_send_frame()
2724 ppp->xstate &= ~SC_COMP_RUN; in ppp_set_compress()
2787 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek()
2800 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek()
2828 ppp->xstate |= SC_COMP_RUN; in ppp_ccp_peek()
2842 if (ppp->xc_state && (ppp->xstate & SC_COMP_RUN)) in ppp_ccp_peek()
2853 void *xstate, *rstate; in ppp_ccp_closed() local
2858 ppp->xstate = 0; in ppp_ccp_closed()
[all …]