Home
last modified time | relevance | path

Searched refs:fpscr (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.3-rc2/arch/powerpc/include/asm/
A Dkvm_fpu.h14 extern void fps_fres(u64 *fpscr, u32 *dst, u32 *src1);
15 extern void fps_frsqrte(u64 *fpscr, u32 *dst, u32 *src1);
16 extern void fps_fsqrts(u64 *fpscr, u32 *dst, u32 *src1);
18 extern void fps_fadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
19 extern void fps_fdivs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
20 extern void fps_fmuls(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
21 extern void fps_fsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
23 extern void fps_fmadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
25 extern void fps_fmsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
31 extern void fps_fsel(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
[all …]
/linux-6.3-rc2/arch/arm/vfp/
A Dvfpsingle.c69 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpsc… argument
134 rmode = fpscr & FPSCR_RMODE_MASK; in __vfp_single_normaliseround()
216 struct vfp_single *vsm, u32 fpscr) in vfp_propagate_nan() argument
226 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
464 return vfp_compare(sd, 0, m, fpscr); in vfp_single_fcmp()
469 return vfp_compare(sd, 1, m, fpscr); in vfp_single_fcmpe()
474 return vfp_compare(sd, 0, 0, fpscr); in vfp_single_fcmpz()
479 return vfp_compare(sd, 1, 0, fpscr); in vfp_single_fcmpez()
551 int rmode = fpscr & FPSCR_RMODE_MASK; in vfp_single_ftoui()
631 int rmode = fpscr & FPSCR_RMODE_MASK; in vfp_single_ftosi()
[all …]
A Dvfpdouble.c129 rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_normaliseround()
208 struct vfp_double *vdm, u32 fpscr) in vfp_propagate_nan() argument
218 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
421 return vfp_compare(dd, 0, dm, fpscr); in vfp_double_fcmp()
426 return vfp_compare(dd, 1, dm, fpscr); in vfp_double_fcmpe()
510 int rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_ftoui()
589 int rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_ftosi()
684 struct vfp_double *vdm, u32 fpscr) in vfp_double_fadd_nonnumber() argument
791 struct vfp_double *vdm, u32 fpscr) in vfp_double_multiply() argument
1127 u32 vfp_double_cpdo(u32 inst, u32 fpscr) in vfp_double_cpdo() argument
[all …]
A Dvfpmodule.c112 vfp->hard.fpscr = FPSCR_ROUND_NEAREST; in vfp_thread_flush()
261 fpscr &= ~(FPSCR_N|FPSCR_Z|FPSCR_C|FPSCR_V); in vfp_raise_exceptions()
263 fpscr |= exceptions; in vfp_raise_exceptions()
265 fmxr(FPSCR, fpscr); in vfp_raise_exceptions()
268 if (exceptions & stat && fpscr & en) \ in vfp_raise_exceptions()
325 u32 fpscr, orig_fpscr, fpsid, exceptions; in VFP_bounce() local
345 orig_fpscr = fpscr = fmrx(FPSCR); in VFP_bounce()
351 && (fpscr & FPSCR_IXE)) { in VFP_bounce()
387 fpscr &= ~FPSCR_LENGTH_MASK; in VFP_bounce()
569 ufp->fpscr = hwstate->fpscr; in vfp_preserve_user_clear_hwstate()
[all …]
A Dvfpinstr.h97 u32 vfp_single_cpdo(u32 inst, u32 fpscr);
98 u32 vfp_single_cprt(u32 inst, u32 fpscr, struct pt_regs *regs);
100 u32 vfp_double_cpdo(u32 inst, u32 fpscr);
A Dvfp.h245 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpsc… argument
246 u32 __vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions);
248 u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions, const char …
343 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char …
373 u32 (* const fn)(int dd, int dn, int dm, u32 fpscr);
/linux-6.3-rc2/arch/powerpc/math-emu/
A Dmath.c170 u32 fpscr; in record_exception() local
172 fpscr = __FPU_FPSCR; in record_exception()
175 fpscr |= FPSCR_FX; in record_exception()
177 fpscr |= FPSCR_OX; in record_exception()
179 fpscr |= FPSCR_UX; in record_exception()
210 fpscr |= FPSCR_VX; in record_exception()
213 if (((fpscr & FPSCR_VX) && (fpscr & FPSCR_VE)) || in record_exception()
214 ((fpscr & FPSCR_OX) && (fpscr & FPSCR_OE)) || in record_exception()
215 ((fpscr & FPSCR_UX) && (fpscr & FPSCR_UE)) || in record_exception()
216 ((fpscr & FPSCR_ZX) && (fpscr & FPSCR_ZE)) || in record_exception()
[all …]
A Dmtfsf.c13 u32 fpscr; in mtfsf() local
30 fpscr = ((__FPU_FPSCR & ~mask) | (frB[1] & mask)) & in mtfsf()
33 if (fpscr & (FPSCR_VXSNAN | FPSCR_VXISI | FPSCR_VXIDI | in mtfsf()
36 fpscr |= FPSCR_VX; in mtfsf()
42 if (fpscr & (fpscr >> 22) & 0xf8) in mtfsf()
43 fpscr |= FPSCR_FEX; in mtfsf()
45 __FPU_FPSCR = fpscr; in mtfsf()
A Dfctiwz.c15 u32 fpscr; in fctiwz() local
18 fpscr = __FPU_FPSCR; in fctiwz()
26 __FPU_FPSCR = fpscr; in fctiwz()
/linux-6.3-rc2/arch/sh/kernel/cpu/sh4/
A Dfpu.c242 int fpscr; in ieee_fpe_handler() local
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
251 prec = fpscr & FPSCR_DBL_PRECISION; in ieee_fpe_handler()
253 if ((fpscr & FPSCR_CAUSE_ERROR) in ieee_fpe_handler()
280 int fpscr; in ieee_fpe_handler() local
288 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
289 prec = fpscr & FPSCR_DBL_PRECISION; in ieee_fpe_handler()
291 if ((fpscr & FPSCR_CAUSE_ERROR) in ieee_fpe_handler()
324 int fpscr; in ieee_fpe_handler() local
332 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
[all …]
/linux-6.3-rc2/arch/powerpc/kvm/
A Dbook3s_paired_singles.c493 void (*func)(u64 *fpscr, in kvmppc_ps_three_in() argument
541 void (*func)(u64 *fpscr, in kvmppc_ps_two_in() argument
604 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in); in kvmppc_ps_one_in()
613 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in); in kvmppc_ps_one_in()
1111 fpd_fres(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1152 *fpr_d = vcpu->arch.fp.fpscr; in kvmppc_emulate_paired_single()
1157 vcpu->arch.fp.fpscr = *fpr_b; in kvmppc_emulate_paired_single()
1182 fpd_fneg(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1188 fpd_fabs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1203 fpd_fctiw(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
[all …]
/linux-6.3-rc2/arch/sh/kernel/cpu/sh2a/
A Dfpu.c467 int fpscr; in ieee_fpe_handler() local
475 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
476 prec = fpscr & (1 << 19); in ieee_fpe_handler()
478 if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
494 } else if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
510 int fpscr; in ieee_fpe_handler() local
518 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
519 prec = fpscr & (1 << 19); in ieee_fpe_handler()
521 if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
537 } else if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
[all …]
/linux-6.3-rc2/arch/arm64/kernel/
A Dsignal32.c28 compat_ulong_t fpscr; member
98 compat_ulong_t fpscr, fpexc; in compat_preserve_vfp_context() local
126 fpscr = (fpsimd->fpsr & VFP_FPSCR_STAT_MASK) | in compat_preserve_vfp_context()
128 __put_user_error(fpscr, &frame->ufp.fpscr, err); in compat_preserve_vfp_context()
147 compat_ulong_t fpscr; in compat_restore_vfp_context() local
168 __get_user_error(fpscr, &frame->ufp.fpscr, err); in compat_restore_vfp_context()
169 fpsimd.fpsr = fpscr & VFP_FPSCR_STAT_MASK; in compat_restore_vfp_context()
170 fpsimd.fpcr = fpscr & VFP_FPSCR_CTRL_MASK; in compat_restore_vfp_context()
/linux-6.3-rc2/arch/powerpc/kernel/ptrace/
A Dptrace-vsx.c32 buf[32] = target->thread.fp_state.fpscr; in fpr_get()
60 buf[32] = target->thread.fp_state.fpscr; in fpr_set()
69 target->thread.fp_state.fpscr = buf[32]; in fpr_set()
A Dptrace-novsx.c25 BUILD_BUG_ON(offsetof(struct thread_fp_state, fpscr) != in fpr_get()
54 BUILD_BUG_ON(offsetof(struct thread_fp_state, fpscr) != in fpr_set()
A Dptrace-fpu.c27 *data = child->thread.fp_state.fpscr; in ptrace_get_fpr()
53 child->thread.fp_state.fpscr = data; in ptrace_put_fpr()
/linux-6.3-rc2/arch/sh/kernel/cpu/
A Dfpu.c32 fp->fpscr = FPSCR_INIT; in init_fpu()
36 fp->fpscr = FPSCR_INIT; in init_fpu()
/linux-6.3-rc2/arch/sh/include/asm/
A Dprocessor_32.h69 unsigned long fpscr; member
79 unsigned long fpscr; member
A Duser.h34 unsigned long fpscr; member
/linux-6.3-rc2/arch/powerpc/kernel/
A Dsignal.h58 unsafe_put_user(__t->thread.fp_state.fpscr, &buf[i], label); \
78 unsafe_get_user(__t->thread.fp_state.fpscr, &buf[i], label); \
99 unsafe_put_user(__t->thread.ckfp_state.fpscr, &buf[i], label); \
119 unsafe_get_user(__t->thread.ckfp_state.fpscr, &buf[i], failed); \
A Dsignal.c38 buf[i] = task->thread.fp_state.fpscr; in copy_fpr_to_user()
52 task->thread.fp_state.fpscr = buf[i]; in copy_fpr_from_user()
92 buf[i] = task->thread.ckfp_state.fpscr; in copy_ckfpr_to_user()
106 task->thread.ckfp_state.fpscr = buf[i]; in copy_ckfpr_from_user()
A Dtraps.c1167 static inline int __parse_fpscr(unsigned long fpscr) in __parse_fpscr() argument
1172 if ((fpscr & FPSCR_VE) && (fpscr & FPSCR_VX)) in __parse_fpscr()
1176 else if ((fpscr & FPSCR_OE) && (fpscr & FPSCR_OX)) in __parse_fpscr()
1180 else if ((fpscr & FPSCR_UE) && (fpscr & FPSCR_UX)) in __parse_fpscr()
1184 else if ((fpscr & FPSCR_ZE) && (fpscr & FPSCR_ZX)) in __parse_fpscr()
1188 else if ((fpscr & FPSCR_XE) && (fpscr & FPSCR_XX)) in __parse_fpscr()
1201 code = __parse_fpscr(current->thread.fp_state.fpscr); in parse_fpe()
1460 code = __parse_fpscr(current->thread.fp_state.fpscr); in emulate_math()
/linux-6.3-rc2/arch/arm/kernel/
A Dptrace.c619 const size_t user_fpscr_offset = offsetof(struct user_vfp, fpscr); in vfp_get()
625 return membuf_store(&to, vfp->fpscr); in vfp_get()
642 const size_t user_fpscr_offset = offsetof(struct user_vfp, fpscr); in vfp_set()
659 &new_vfp.fpscr, in vfp_set()
661 user_fpscr_offset + sizeof(new_vfp.fpscr)); in vfp_set()
/linux-6.3-rc2/arch/arm/include/asm/
A Duser.h87 unsigned long fpscr; member
A Dfpstate.h33 __u32 fpscr; member

Completed in 48 milliseconds

12