Home
last modified time | relevance | path

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

/linux-4.4.14/arch/sh/kernel/cpu/sh4/
Dfpu.c88 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
138 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
234 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
236 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
252 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
253 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
254 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
264 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
266 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
268 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/linux-4.4.14/arch/sh/kernel/
Dprocess.c28 if (src->thread.xstate) { in arch_dup_task_struct()
29 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
31 if (!dst->thread.xstate) in arch_dup_task_struct()
33 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
41 if (tsk->thread.xstate) { in free_thread_xstate()
42 kmem_cache_free(task_xstate_cachep, tsk->thread.xstate); in free_thread_xstate()
43 tsk->thread.xstate = NULL; in free_thread_xstate()
Dtraps_64.c355 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
359 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
360 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load()
363 current->thread.xstate->hardfpu.fp_regs[destreg] = bufhi; in misaligned_fpu_load()
364 current->thread.xstate->hardfpu.fp_regs[destreg+1] = buflo; in misaligned_fpu_load()
366 current->thread.xstate->hardfpu.fp_regs[destreg] = buflo; in misaligned_fpu_load()
367 current->thread.xstate->hardfpu.fp_regs[destreg+1] = bufhi; in misaligned_fpu_load()
422 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store()
426 buflo = current->thread.xstate->hardfpu.fp_regs[srcreg]; in misaligned_fpu_store()
427 bufhi = current->thread.xstate->hardfpu.fp_regs[srcreg+1]; in misaligned_fpu_store()
[all …]
Dptrace_32.c199 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
202 &target->thread.xstate->softfpu, 0, -1); in fpregs_get()
220 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
223 &target->thread.xstate->softfpu, 0, -1); in fpregs_set()
401 tmp = ((unsigned long *)child->thread.xstate) in arch_ptrace()
436 ((unsigned long *)child->thread.xstate) in arch_ptrace()
Dptrace_64.c91 tmp = ((long *)task->thread.xstate)[addr / sizeof(unsigned long)]; in get_fpu_long()
126 ((long *)task->thread.xstate)[addr / sizeof(unsigned long)] = data; in put_fpu_long()
228 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
245 &target->thread.xstate->hardfpu, 0, -1); in fpregs_set()
Dprocess_32.c193 prefetch(next_t->xstate); in __switch_to()
Dsignal_32.c84 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
108 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.c361 memcpy(fpu, &tsk->thread.xstate->hardfpu, sizeof(*fpu)); in dump_fpu()
/linux-4.4.14/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-4.4.14/arch/x86/include/asm/fpu/
Dinternal.h244 static inline void copy_xregs_to_kernel_booting(struct xregs_state *xstate) in copy_xregs_to_kernel_booting() argument
257 : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err) in copy_xregs_to_kernel_booting()
263 : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err) in copy_xregs_to_kernel_booting()
274 static inline void copy_kernel_to_xregs_booting(struct xregs_state *xstate) in copy_kernel_to_xregs_booting() argument
287 : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err) in copy_kernel_to_xregs_booting()
293 : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err) in copy_kernel_to_xregs_booting()
303 static inline void copy_xregs_to_kernel(struct xregs_state *xstate) in copy_xregs_to_kernel() argument
329 [xstate] "D" (xstate), "a" (lmask), "d" (hmask) : in copy_xregs_to_kernel()
343 static inline void copy_kernel_to_xregs(struct xregs_state *xstate, u64 mask) in copy_kernel_to_xregs() argument
357 "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask) in copy_kernel_to_xregs()
[all …]
Dxstate.h48 void *get_xsave_addr(struct xregs_state *xsave, int xstate);
/linux-4.4.14/arch/sh/kernel/cpu/
Dfpu.c18 if (!tsk->thread.xstate) { in init_fpu()
19 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu()
21 if (!tsk->thread.xstate) in init_fpu()
26 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu()
30 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu()
/linux-4.4.14/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-4.4.14/arch/x86/kernel/fpu/
DMakefile5 obj-y += init.o bugs.o core.o regset.o signal.o xstate.o
/linux-4.4.14/arch/sh/math-emu/
Dmath.c555 if ((tsk->thread.xstate->softfpu.fpscr & (1 << 17))) { in ieee_fpe_handler()
557 denormal_to_double (&tsk->thread.xstate->softfpu, in ieee_fpe_handler()
559 tsk->thread.xstate->softfpu.fpscr &= in ieee_fpe_handler()
602 struct sh_fpu_soft_struct *fpu = &(tsk->thread.xstate->softfpu); in do_fpu_inst()
/linux-4.4.14/drivers/net/ppp/
Dppp_generic.c123 unsigned int xstate; /* transmit state bits 68 */ member
679 val = ppp->flags | ppp->xstate | ppp->rstate; in ppp_ioctl()
1319 if ((ppp->xstate & SC_COMP_RUN) && ppp->xc_state && in ppp_send_frame()
2451 ppp->xstate &= ~SC_COMP_RUN; in ppp_set_compress()
2514 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek()
2527 ppp->xstate &= ~SC_COMP_RUN; in ppp_ccp_peek()
2555 ppp->xstate |= SC_COMP_RUN; in ppp_ccp_peek()
2569 if (ppp->xc_state && (ppp->xstate & SC_COMP_RUN)) in ppp_ccp_peek()
2580 void *xstate, *rstate; in ppp_ccp_closed() local
2585 ppp->xstate = 0; in ppp_ccp_closed()
[all …]
/linux-4.4.14/arch/sh/include/asm/
Dprocessor_32.h113 union thread_xstate *xstate; member
Dprocessor_64.h128 union thread_xstate *xstate; member