Home
last modified time | relevance | path

Searched refs:fpscr (Results 1 - 25 of 75) sorted by relevance

123

/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H 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,
27 extern void fps_fnmadds(u64 *fpscr, u3
[all...]
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H 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,
27 extern void fps_fnmadds(u64 *fpscr, u3
[all...]
/kernel/linux/linux-5.10/arch/powerpc/math-emu/
H 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()
181 fpscr |= FPSCR_ZX; in record_exception()
183 fpscr |= FPSCR_XX; in record_exception()
185 fpscr |= FPSCR_VX; in record_exception()
187 fpscr |= FPSCR_VXSNAN; in record_exception()
189 fpscr | in record_exception()
[all...]
H 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()
H A Dfctiwz.c15 u32 fpscr; in fctiwz() local
18 fpscr = __FPU_FPSCR; in fctiwz()
26 __FPU_FPSCR = fpscr; in fctiwz()
/kernel/linux/linux-6.6/arch/powerpc/math-emu/
H 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()
181 fpscr |= FPSCR_ZX; in record_exception()
183 fpscr |= FPSCR_XX; in record_exception()
185 fpscr |= FPSCR_VX; in record_exception()
187 fpscr |= FPSCR_VXSNAN; in record_exception()
189 fpscr | in record_exception()
[all...]
H 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()
H A Dfctiwz.c15 u32 fpscr; in fctiwz() local
18 fpscr = __FPU_FPSCR; in fctiwz()
26 __FPU_FPSCR = fpscr; in fctiwz()
/kernel/linux/linux-5.10/arch/arm/vfp/
H A Dvfpsingle.c69 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpscr,except)
70 u32 __vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions) in __vfp_single_normaliseround() argument
72 u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions, const char *func) in __vfp_single_normaliseround()
134 rmode = fpscr & FPSCR_RMODE_MASK; in __vfp_single_normaliseround()
216 struct vfp_single *vsm, u32 fpscr) in vfp_propagate_nan()
226 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
259 static u32 vfp_single_fabs(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fabs() argument
265 static u32 vfp_single_fcpy(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fcpy() argument
271 static u32 vfp_single_fneg(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fneg() argument
215 vfp_propagate_nan(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_single *vsm, u32 fpscr) vfp_propagate_nan() argument
316 vfp_single_fsqrt(int sd, int unused, s32 m, u32 fpscr) vfp_single_fsqrt() argument
403 vfp_compare(int sd, int signal_on_qnan, s32 m, u32 fpscr) vfp_compare() argument
462 vfp_single_fcmp(int sd, int unused, s32 m, u32 fpscr) vfp_single_fcmp() argument
467 vfp_single_fcmpe(int sd, int unused, s32 m, u32 fpscr) vfp_single_fcmpe() argument
472 vfp_single_fcmpz(int sd, int unused, s32 m, u32 fpscr) vfp_single_fcmpz() argument
477 vfp_single_fcmpez(int sd, int unused, s32 m, u32 fpscr) vfp_single_fcmpez() argument
482 vfp_single_fcvtd(int dd, int unused, s32 m, u32 fpscr) vfp_single_fcvtd() argument
525 vfp_single_fuito(int sd, int unused, s32 m, u32 fpscr) vfp_single_fuito() argument
536 vfp_single_fsito(int sd, int unused, s32 m, u32 fpscr) vfp_single_fsito() argument
547 vfp_single_ftoui(int sd, int unused, s32 m, u32 fpscr) vfp_single_ftoui() argument
622 vfp_single_ftouiz(int sd, int unused, s32 m, u32 fpscr) vfp_single_ftouiz() argument
627 vfp_single_ftosi(int sd, int unused, s32 m, u32 fpscr) vfp_single_ftosi() argument
701 vfp_single_ftosiz(int sd, int unused, s32 m, u32 fpscr) vfp_single_ftosiz() argument
729 vfp_single_fadd_nonnumber(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_single *vsm, u32 fpscr) vfp_single_fadd_nonnumber() argument
771 vfp_single_add(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_single *vsm, u32 fpscr) vfp_single_add() argument
835 vfp_single_multiply(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_single *vsm, u32 fpscr) vfp_single_multiply() argument
895 vfp_single_multiply_accumulate(int sd, int sn, s32 m, u32 fpscr, u32 negate, char *func) vfp_single_multiply_accumulate() argument
935 vfp_single_fmac(int sd, int sn, s32 m, u32 fpscr) vfp_single_fmac() argument
943 vfp_single_fnmac(int sd, int sn, s32 m, u32 fpscr) vfp_single_fnmac() argument
951 vfp_single_fmsc(int sd, int sn, s32 m, u32 fpscr) vfp_single_fmsc() argument
959 vfp_single_fnmsc(int sd, int sn, s32 m, u32 fpscr) vfp_single_fnmsc() argument
967 vfp_single_fmul(int sd, int sn, s32 m, u32 fpscr) vfp_single_fmul() argument
990 vfp_single_fnmul(int sd, int sn, s32 m, u32 fpscr) vfp_single_fnmul() argument
1014 vfp_single_fadd(int sd, int sn, s32 m, u32 fpscr) vfp_single_fadd() argument
1041 vfp_single_fsub(int sd, int sn, s32 m, u32 fpscr) vfp_single_fsub() argument
1052 vfp_single_fdiv(int sd, int sn, s32 m, u32 fpscr) vfp_single_fdiv() argument
1172 vfp_single_cpdo(u32 inst, u32 fpscr) vfp_single_cpdo() argument
[all...]
H A Dvfpdouble.c70 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char *func) in vfp_double_normaliseround() argument
129 rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_normaliseround()
208 struct vfp_double *vdm, u32 fpscr) in vfp_propagate_nan()
218 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
250 static u32 vfp_double_fabs(int dd, int unused, int dm, u32 fpscr) in vfp_double_fabs() argument
256 static u32 vfp_double_fcpy(int dd, int unused, int dm, u32 fpscr) in vfp_double_fcpy() argument
262 static u32 vfp_double_fneg(int dd, int unused, int dm, u32 fpscr) in vfp_double_fneg() argument
268 static u32 vfp_double_fsqrt(int dd, int unused, int dm, u32 fpscr) in vfp_double_fsqrt() argument
279 ret = vfp_propagate_nan(vdp, &vdm, NULL, fpscr); in vfp_double_fsqrt()
349 return vfp_double_normaliseround(dd, &vdd, fpscr, in vfp_double_fsqrt()
207 vfp_propagate_nan(struct vfp_double *vdd, struct vfp_double *vdn, struct vfp_double *vdm, u32 fpscr) vfp_propagate_nan() argument
358 vfp_compare(int dd, int signal_on_qnan, int dm, u32 fpscr) vfp_compare() argument
419 vfp_double_fcmp(int dd, int unused, int dm, u32 fpscr) vfp_double_fcmp() argument
424 vfp_double_fcmpe(int dd, int unused, int dm, u32 fpscr) vfp_double_fcmpe() argument
429 vfp_double_fcmpz(int dd, int unused, int dm, u32 fpscr) vfp_double_fcmpz() argument
434 vfp_double_fcmpez(int dd, int unused, int dm, u32 fpscr) vfp_double_fcmpez() argument
439 vfp_double_fcvts(int sd, int unused, int dm, u32 fpscr) vfp_double_fcvts() argument
482 vfp_double_fuito(int dd, int unused, int dm, u32 fpscr) vfp_double_fuito() argument
494 vfp_double_fsito(int dd, int unused, int dm, u32 fpscr) vfp_double_fsito() argument
506 vfp_double_ftoui(int sd, int unused, int dm, u32 fpscr) vfp_double_ftoui() argument
580 vfp_double_ftouiz(int sd, int unused, int dm, u32 fpscr) vfp_double_ftouiz() argument
585 vfp_double_ftosi(int sd, int unused, int dm, u32 fpscr) vfp_double_ftosi() argument
655 vfp_double_ftosiz(int dd, int unused, int dm, u32 fpscr) vfp_double_ftosiz() argument
683 vfp_double_fadd_nonnumber(struct vfp_double *vdd, struct vfp_double *vdn, struct vfp_double *vdm, u32 fpscr) vfp_double_fadd_nonnumber() argument
725 vfp_double_add(struct vfp_double *vdd, struct vfp_double *vdn, struct vfp_double *vdm, u32 fpscr) vfp_double_add() argument
790 vfp_double_multiply(struct vfp_double *vdd, struct vfp_double *vdn, struct vfp_double *vdm, u32 fpscr) vfp_double_multiply() argument
851 vfp_double_multiply_accumulate(int dd, int dn, int dm, u32 fpscr, u32 negate, char *func) vfp_double_multiply_accumulate() argument
886 vfp_double_fmac(int dd, int dn, int dm, u32 fpscr) vfp_double_fmac() argument
894 vfp_double_fnmac(int dd, int dn, int dm, u32 fpscr) vfp_double_fnmac() argument
902 vfp_double_fmsc(int dd, int dn, int dm, u32 fpscr) vfp_double_fmsc() argument
910 vfp_double_fnmsc(int dd, int dn, int dm, u32 fpscr) vfp_double_fnmsc() argument
918 vfp_double_fmul(int dd, int dn, int dm, u32 fpscr) vfp_double_fmul() argument
938 vfp_double_fnmul(int dd, int dn, int dm, u32 fpscr) vfp_double_fnmul() argument
960 vfp_double_fadd(int dd, int dn, int dm, u32 fpscr) vfp_double_fadd() argument
981 vfp_double_fsub(int dd, int dn, int dm, u32 fpscr) vfp_double_fsub() argument
1007 vfp_double_fdiv(int dd, int dn, int dm, u32 fpscr) vfp_double_fdiv() argument
1127 vfp_double_cpdo(u32 inst, u32 fpscr) vfp_double_cpdo() argument
[all...]
H A Dvfpmodule.c112 vfp->hard.fpscr = FPSCR_ROUND_NEAREST; in vfp_thread_flush()
243 static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_raise_exceptions() argument
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()
287 static u32 vfp_emulate_instruction(u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_emulate_instruction() argument
291 pr_debug("VFP: emulate: INST=0x%08x SCR=0x%08x\n", inst, fpscr); in vfp_emulate_instruction()
299 exceptions = vfp_single_cpdo(inst, fpscr); in vfp_emulate_instruction()
301 exceptions = vfp_double_cpdo(inst, fpscr); in vfp_emulate_instruction()
325 u32 fpscr, orig_fpscr, fpsid, exceptions; VFP_bounce() local
[all...]
H A Dvfp.h245 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpscr,except)
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 *func);
343 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char *func);
373 u32 (* const fn)(int dd, int dn, int dm, u32 fpscr);
/kernel/linux/linux-6.6/arch/arm/vfp/
H A Dvfpsingle.c69 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpscr,except)
70 u32 __vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions) in __vfp_single_normaliseround() argument
72 u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions, const char *func) in __vfp_single_normaliseround()
134 rmode = fpscr & FPSCR_RMODE_MASK; in __vfp_single_normaliseround()
216 struct vfp_single *vsm, u32 fpscr) in vfp_propagate_nan()
226 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
259 static u32 vfp_single_fabs(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fabs() argument
265 static u32 vfp_single_fcpy(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fcpy() argument
271 static u32 vfp_single_fneg(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fneg() argument
215 vfp_propagate_nan(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_single *vsm, u32 fpscr) vfp_propagate_nan() argument
316 vfp_single_fsqrt(int sd, int unused, s32 m, u32 fpscr) vfp_single_fsqrt() argument
403 vfp_compare(int sd, int signal_on_qnan, s32 m, u32 fpscr) vfp_compare() argument
462 vfp_single_fcmp(int sd, int unused, s32 m, u32 fpscr) vfp_single_fcmp() argument
467 vfp_single_fcmpe(int sd, int unused, s32 m, u32 fpscr) vfp_single_fcmpe() argument
472 vfp_single_fcmpz(int sd, int unused, s32 m, u32 fpscr) vfp_single_fcmpz() argument
477 vfp_single_fcmpez(int sd, int unused, s32 m, u32 fpscr) vfp_single_fcmpez() argument
482 vfp_single_fcvtd(int dd, int unused, s32 m, u32 fpscr) vfp_single_fcvtd() argument
525 vfp_single_fuito(int sd, int unused, s32 m, u32 fpscr) vfp_single_fuito() argument
536 vfp_single_fsito(int sd, int unused, s32 m, u32 fpscr) vfp_single_fsito() argument
547 vfp_single_ftoui(int sd, int unused, s32 m, u32 fpscr) vfp_single_ftoui() argument
622 vfp_single_ftouiz(int sd, int unused, s32 m, u32 fpscr) vfp_single_ftouiz() argument
627 vfp_single_ftosi(int sd, int unused, s32 m, u32 fpscr) vfp_single_ftosi() argument
701 vfp_single_ftosiz(int sd, int unused, s32 m, u32 fpscr) vfp_single_ftosiz() argument
729 vfp_single_fadd_nonnumber(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_single *vsm, u32 fpscr) vfp_single_fadd_nonnumber() argument
771 vfp_single_add(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_single *vsm, u32 fpscr) vfp_single_add() argument
835 vfp_single_multiply(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_single *vsm, u32 fpscr) vfp_single_multiply() argument
895 vfp_single_multiply_accumulate(int sd, int sn, s32 m, u32 fpscr, u32 negate, char *func) vfp_single_multiply_accumulate() argument
935 vfp_single_fmac(int sd, int sn, s32 m, u32 fpscr) vfp_single_fmac() argument
943 vfp_single_fnmac(int sd, int sn, s32 m, u32 fpscr) vfp_single_fnmac() argument
951 vfp_single_fmsc(int sd, int sn, s32 m, u32 fpscr) vfp_single_fmsc() argument
959 vfp_single_fnmsc(int sd, int sn, s32 m, u32 fpscr) vfp_single_fnmsc() argument
967 vfp_single_fmul(int sd, int sn, s32 m, u32 fpscr) vfp_single_fmul() argument
990 vfp_single_fnmul(int sd, int sn, s32 m, u32 fpscr) vfp_single_fnmul() argument
1014 vfp_single_fadd(int sd, int sn, s32 m, u32 fpscr) vfp_single_fadd() argument
1041 vfp_single_fsub(int sd, int sn, s32 m, u32 fpscr) vfp_single_fsub() argument
1052 vfp_single_fdiv(int sd, int sn, s32 m, u32 fpscr) vfp_single_fdiv() argument
1172 vfp_single_cpdo(u32 inst, u32 fpscr) vfp_single_cpdo() argument
[all...]
H A Dvfpdouble.c70 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char *func) in vfp_double_normaliseround() argument
129 rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_normaliseround()
208 struct vfp_double *vdm, u32 fpscr) in vfp_propagate_nan()
218 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
250 static u32 vfp_double_fabs(int dd, int unused, int dm, u32 fpscr) in vfp_double_fabs() argument
256 static u32 vfp_double_fcpy(int dd, int unused, int dm, u32 fpscr) in vfp_double_fcpy() argument
262 static u32 vfp_double_fneg(int dd, int unused, int dm, u32 fpscr) in vfp_double_fneg() argument
268 static u32 vfp_double_fsqrt(int dd, int unused, int dm, u32 fpscr) in vfp_double_fsqrt() argument
279 ret = vfp_propagate_nan(vdp, &vdm, NULL, fpscr); in vfp_double_fsqrt()
349 return vfp_double_normaliseround(dd, &vdd, fpscr, in vfp_double_fsqrt()
207 vfp_propagate_nan(struct vfp_double *vdd, struct vfp_double *vdn, struct vfp_double *vdm, u32 fpscr) vfp_propagate_nan() argument
358 vfp_compare(int dd, int signal_on_qnan, int dm, u32 fpscr) vfp_compare() argument
419 vfp_double_fcmp(int dd, int unused, int dm, u32 fpscr) vfp_double_fcmp() argument
424 vfp_double_fcmpe(int dd, int unused, int dm, u32 fpscr) vfp_double_fcmpe() argument
429 vfp_double_fcmpz(int dd, int unused, int dm, u32 fpscr) vfp_double_fcmpz() argument
434 vfp_double_fcmpez(int dd, int unused, int dm, u32 fpscr) vfp_double_fcmpez() argument
439 vfp_double_fcvts(int sd, int unused, int dm, u32 fpscr) vfp_double_fcvts() argument
482 vfp_double_fuito(int dd, int unused, int dm, u32 fpscr) vfp_double_fuito() argument
494 vfp_double_fsito(int dd, int unused, int dm, u32 fpscr) vfp_double_fsito() argument
506 vfp_double_ftoui(int sd, int unused, int dm, u32 fpscr) vfp_double_ftoui() argument
580 vfp_double_ftouiz(int sd, int unused, int dm, u32 fpscr) vfp_double_ftouiz() argument
585 vfp_double_ftosi(int sd, int unused, int dm, u32 fpscr) vfp_double_ftosi() argument
655 vfp_double_ftosiz(int dd, int unused, int dm, u32 fpscr) vfp_double_ftosiz() argument
683 vfp_double_fadd_nonnumber(struct vfp_double *vdd, struct vfp_double *vdn, struct vfp_double *vdm, u32 fpscr) vfp_double_fadd_nonnumber() argument
725 vfp_double_add(struct vfp_double *vdd, struct vfp_double *vdn, struct vfp_double *vdm, u32 fpscr) vfp_double_add() argument
790 vfp_double_multiply(struct vfp_double *vdd, struct vfp_double *vdn, struct vfp_double *vdm, u32 fpscr) vfp_double_multiply() argument
851 vfp_double_multiply_accumulate(int dd, int dn, int dm, u32 fpscr, u32 negate, char *func) vfp_double_multiply_accumulate() argument
886 vfp_double_fmac(int dd, int dn, int dm, u32 fpscr) vfp_double_fmac() argument
894 vfp_double_fnmac(int dd, int dn, int dm, u32 fpscr) vfp_double_fnmac() argument
902 vfp_double_fmsc(int dd, int dn, int dm, u32 fpscr) vfp_double_fmsc() argument
910 vfp_double_fnmsc(int dd, int dn, int dm, u32 fpscr) vfp_double_fnmsc() argument
918 vfp_double_fmul(int dd, int dn, int dm, u32 fpscr) vfp_double_fmul() argument
938 vfp_double_fnmul(int dd, int dn, int dm, u32 fpscr) vfp_double_fnmul() argument
960 vfp_double_fadd(int dd, int dn, int dm, u32 fpscr) vfp_double_fadd() argument
981 vfp_double_fsub(int dd, int dn, int dm, u32 fpscr) vfp_double_fsub() argument
1007 vfp_double_fdiv(int dd, int dn, int dm, u32 fpscr) vfp_double_fdiv() argument
1127 vfp_double_cpdo(u32 inst, u32 fpscr) vfp_double_cpdo() argument
[all...]
H A Dvfpmodule.c112 vfp->hard.fpscr = FPSCR_ROUND_NEAREST; in vfp_thread_flush()
243 static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_raise_exceptions() argument
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()
287 static u32 vfp_emulate_instruction(u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_emulate_instruction() argument
291 pr_debug("VFP: emulate: INST=0x%08x SCR=0x%08x\n", inst, fpscr); in vfp_emulate_instruction()
299 exceptions = vfp_single_cpdo(inst, fpscr); in vfp_emulate_instruction()
301 exceptions = vfp_double_cpdo(inst, fpscr); in vfp_emulate_instruction()
326 u32 fpscr, orig_fpscr, fpsid, exceptions; VFP_bounce() local
754 u32 fpscr = fmrx(FPSCR); vfp_support_entry() local
[all...]
H A Dvfp.h245 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpscr,except)
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 *func);
343 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char *func);
373 u32 (* const fn)(int dd, int dn, int dm, u32 fpscr);
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4/
H A Dfpu.c47 "sts.l fpscr, @-%0\n\t" in save_fpu()
48 "lds %2, fpscr\n\t" in save_fpu()
83 "lds %3, fpscr\n\t":"=r" (dummy) in save_fpu()
96 asm volatile ("lds %2, fpscr\n\t" in restore_fpu()
131 "lds.l @%0+, fpscr\n\t" in restore_fpu()
230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
242 int fpscr; in ieee_fpe_handler() local
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
251 prec = fpscr in ieee_fpe_handler()
280 int fpscr; ieee_fpe_handler() local
324 int fpscr; ieee_fpe_handler() local
[all...]
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh4/
H A Dfpu.c47 "sts.l fpscr, @-%0\n\t" in save_fpu()
48 "lds %2, fpscr\n\t" in save_fpu()
83 "lds %3, fpscr\n\t":"=r" (dummy) in save_fpu()
96 asm volatile ("lds %2, fpscr\n\t" in restore_fpu()
131 "lds.l @%0+, fpscr\n\t" in restore_fpu()
230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
242 int fpscr; in ieee_fpe_handler() local
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
251 prec = fpscr in ieee_fpe_handler()
280 int fpscr; ieee_fpe_handler() local
324 int fpscr; ieee_fpe_handler() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Dbook3s_paired_singles.c493 void (*func)(u64 *fpscr, in kvmppc_ps_three_in()
513 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2, &ps0_in3); in kvmppc_ps_three_in()
530 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in1, &ps1_in2, &ps1_in3); in kvmppc_ps_three_in()
541 void (*func)(u64 *fpscr, in kvmppc_ps_two_in()
562 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2); in kvmppc_ps_two_in()
578 func(&vcpu->arch.fp.fpscr, &ps1_out, &ps1_in1, &ps1_in2); in kvmppc_ps_two_in()
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()
1099 fpd_fadds(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1103 fpd_fsubs(&vcpu->arch.fp.fpscr, in kvmppc_emulate_paired_single()
490 kvmppc_ps_three_in(struct kvm_vcpu *vcpu, bool rc, int reg_out, int reg_in1, int reg_in2, int reg_in3, int scalar, void (*func)(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2, u32 *src3)) kvmppc_ps_three_in() argument
538 kvmppc_ps_two_in(struct kvm_vcpu *vcpu, bool rc, int reg_out, int reg_in1, int reg_in2, int scalar, void (*func)(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2)) kvmppc_ps_two_in() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Dbook3s_paired_singles.c493 void (*func)(u64 *fpscr, in kvmppc_ps_three_in()
513 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2, &ps0_in3); in kvmppc_ps_three_in()
530 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in1, &ps1_in2, &ps1_in3); in kvmppc_ps_three_in()
541 void (*func)(u64 *fpscr, in kvmppc_ps_two_in()
562 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2); in kvmppc_ps_two_in()
578 func(&vcpu->arch.fp.fpscr, &ps1_out, &ps1_in1, &ps1_in2); in kvmppc_ps_two_in()
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()
1101 fpd_fadds(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1105 fpd_fsubs(&vcpu->arch.fp.fpscr, in kvmppc_emulate_paired_single()
490 kvmppc_ps_three_in(struct kvm_vcpu *vcpu, bool rc, int reg_out, int reg_in1, int reg_in2, int reg_in3, int scalar, void (*func)(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2, u32 *src3)) kvmppc_ps_three_in() argument
538 kvmppc_ps_two_in(struct kvm_vcpu *vcpu, bool rc, int reg_out, int reg_in1, int reg_in2, int scalar, void (*func)(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2)) kvmppc_ps_two_in() argument
[all...]
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2a/
H A Dfpu.c33 "sts.l fpscr, @-%0\n\t" in save_fpu()
50 "lds %3, fpscr\n\t" in save_fpu()
81 "lds.l @%0+, fpscr\n\t" in restore_fpu()
456 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
467 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 in ieee_fpe_handler()
510 int fpscr; ieee_fpe_handler() local
[all...]
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh2a/
H A Dfpu.c33 "sts.l fpscr, @-%0\n\t" in save_fpu()
50 "lds %3, fpscr\n\t" in save_fpu()
81 "lds.l @%0+, fpscr\n\t" in restore_fpu()
456 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
467 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 in ieee_fpe_handler()
510 int fpscr; ieee_fpe_handler() local
[all...]
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dsignal32.c28 compat_ulong_t fpscr; member
100 compat_ulong_t fpscr, fpexc; in compat_preserve_vfp_context() local
127 /* Create an AArch32 fpscr from the fpsr and the fpcr. */ in compat_preserve_vfp_context()
128 fpscr = (fpsimd->fpsr & VFP_FPSCR_STAT_MASK) | in compat_preserve_vfp_context()
130 __put_user_error(fpscr, &frame->ufp.fpscr, err); in compat_preserve_vfp_context()
149 compat_ulong_t fpscr; in compat_restore_vfp_context() local
169 /* Extract the fpsr and the fpcr from the fpscr */ in compat_restore_vfp_context()
170 __get_user_error(fpscr, &frame->ufp.fpscr, er in compat_restore_vfp_context()
[all...]
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Dsignal32.c28 compat_ulong_t fpscr; member
98 compat_ulong_t fpscr, fpexc; in compat_preserve_vfp_context() local
125 /* Create an AArch32 fpscr from the fpsr and the fpcr. */ in compat_preserve_vfp_context()
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
167 /* Extract the fpsr and the fpcr from the fpscr */ in compat_restore_vfp_context()
168 __get_user_error(fpscr, &frame->ufp.fpscr, er in compat_restore_vfp_context()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
H A Dptrace-novsx.c18 * u64 fpscr;
24 BUILD_BUG_ON(offsetof(struct thread_fp_state, fpscr) != in fpr_get()
41 * u64 fpscr;
49 BUILD_BUG_ON(offsetof(struct thread_fp_state, fpscr) != in fpr_set()

Completed in 17 milliseconds

123