/Linux-v4.19/arch/sh/kernel/cpu/sh4/ |
D | fpu.c | 87 :"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/ |
D | process.c | 31 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()
|
D | traps_64.c | 356 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 …]
|
D | ptrace_32.c | 200 &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()
|
D | ptrace_64.c | 92 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()
|
D | process_32.c | 188 prefetch(next_t->xstate); in __switch_to()
|
D | signal_32.c | 86 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()
|
D | signal_64.c | 160 err |= __copy_from_user(¤t->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu() 185 err |= __copy_to_user(&sc->sc_fpregs[0], ¤t->thread.xstate->hardfpu, in setup_sigcontext_fpu()
|
D | process_64.c | 363 memcpy(fpu, &tsk->thread.xstate->hardfpu, sizeof(*fpu)); in dump_fpu()
|
/Linux-v4.19/arch/sh/kernel/cpu/sh2a/ |
D | fpu.c | 55 : "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/ |
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-v4.19/arch/x86/include/asm/fpu/ |
D | internal.h | 282 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 …]
|
D | xstate.h | 49 void *get_xsave_addr(struct xregs_state *xsave, int xstate);
|
/Linux-v4.19/arch/sh/kernel/cpu/sh5/ |
D | fpu.c | 57 : "r" (&tsk->thread.xstate->hardfpu) in save_fpu() 100 : "r" (&tsk->thread.xstate->hardfpu) in restore_fpu()
|
/Linux-v4.19/arch/x86/kernel/fpu/ |
D | Makefile | 5 obj-y += init.o bugs.o core.o regset.o signal.o xstate.o
|
/Linux-v4.19/arch/sh/math-emu/ |
D | math.c | 554 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/ |
D | processor_32.h | 114 union thread_xstate *xstate; member
|
D | processor_64.h | 128 union thread_xstate *xstate; member
|
/Linux-v4.19/drivers/net/ppp/ |
D | ppp_generic.c | 127 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 …]
|