Home
last modified time | relevance | path

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

/Linux-v5.4/arch/sh/kernel/cpu/sh4/
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 …]
/Linux-v5.4/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.c353 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
357 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
358 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load()
361 current->thread.xstate->hardfpu.fp_regs[destreg] = bufhi; in misaligned_fpu_load()
362 current->thread.xstate->hardfpu.fp_regs[destreg+1] = buflo; in misaligned_fpu_load()
364 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
365 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load()
420 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store()
424 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store()
425 bufhi = current->thread.xstate->hardfpu.fp_regs[srcreg+1]; in misaligned_fpu_store()
[all …]
Dptrace_32.c197 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
200 &target->thread.xstate->softfpu, 0, -1); in fpregs_get()
218 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
221 &target->thread.xstate->softfpu, 0, -1); in fpregs_set()
399 tmp = ((unsigned long *)child->thread.xstate) in arch_ptrace()
434 ((unsigned long *)child->thread.xstate) in arch_ptrace()
Dptrace_64.c89 tmp = ((long *)task->thread.xstate)[addr / sizeof(unsigned long)]; in get_fpu_long()
124 ((long *)task->thread.xstate)[addr / sizeof(unsigned long)] = data; in put_fpu_long()
226 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
243 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
Dprocess_32.c185 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.c157 err |= __copy_from_user(&current->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
182 err |= __copy_to_user(&sc->sc_fpregs[0], &current->thread.xstate->hardfpu, in setup_sigcontext_fpu()
Dprocess_64.c360 memcpy(fpu, &tsk->thread.xstate->hardfpu, sizeof(*fpu)); in dump_fpu()
/Linux-v5.4/arch/sh/kernel/cpu/sh2a/
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 …]
/Linux-v5.4/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-v5.4/arch/x86/include/asm/fpu/
Dinternal.h274 static inline void copy_xregs_to_kernel_booting(struct xregs_state *xstate) in copy_xregs_to_kernel_booting() argument
284 XSTATE_OP(XSAVES, xstate, lmask, hmask, err); in copy_xregs_to_kernel_booting()
286 XSTATE_OP(XSAVE, xstate, lmask, hmask, err); in copy_xregs_to_kernel_booting()
296 static inline void copy_kernel_to_xregs_booting(struct xregs_state *xstate) in copy_kernel_to_xregs_booting() argument
306 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in copy_kernel_to_xregs_booting()
308 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in copy_kernel_to_xregs_booting()
320 static inline void copy_xregs_to_kernel(struct xregs_state *xstate) in copy_xregs_to_kernel() argument
329 XSTATE_XSAVE(xstate, lmask, hmask, err); in copy_xregs_to_kernel()
338 static inline void copy_kernel_to_xregs(struct xregs_state *xstate, u64 mask) in copy_kernel_to_xregs() argument
343 XSTATE_XRESTORE(xstate, lmask, hmask); in copy_kernel_to_xregs()
[all …]
/Linux-v5.4/arch/sh/kernel/cpu/sh5/
Dfpu.c54 : "r" (&tsk->thread.xstate->hardfpu) in save_fpu()
97 : "r" (&tsk->thread.xstate->hardfpu) in restore_fpu()
/Linux-v5.4/arch/x86/kernel/fpu/
DMakefile6 obj-y += init.o bugs.o core.o regset.o signal.o xstate.o
/Linux-v5.4/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-v5.4/arch/sh/include/asm/
Dprocessor_32.h108 union thread_xstate *xstate; member
Dprocessor_64.h110 union thread_xstate *xstate; member
/Linux-v5.4/drivers/net/ppp/
Dppp_generic.c123 unsigned int xstate; /* transmit state bits 68 */ member
675 val = ppp->flags | ppp->xstate | ppp->rstate; in ppp_ioctl()
1580 if ((ppp->xstate & SC_COMP_RUN) && ppp->xc_state && in ppp_send_frame()
2768 ppp->xstate &= ~SC_COMP_RUN; in ppp_set_compress()
2831 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek()
2844 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek()
2872 ppp->xstate |= SC_COMP_RUN; in ppp_ccp_peek()
2886 if (ppp->xc_state && (ppp->xstate & SC_COMP_RUN)) in ppp_ccp_peek()
2897 void *xstate, *rstate; in ppp_ccp_closed() local
2902 ppp->xstate = 0; in ppp_ccp_closed()
[all …]