/linux-6.1.9/arch/parisc/math-emu/ |
D | fpudispatch.c | 158 static void parisc_linux_get_fpu_type(u_int fpregs[]) in parisc_linux_get_fpu_type() argument 164 fpregs[FPU_TYPE_FLAG_POS] = TIMEX_EXTEN_FLAG; in parisc_linux_get_fpu_type() 167 fpregs[FPU_TYPE_FLAG_POS] = ROLEX_EXTEN_FLAG; in parisc_linux_get_fpu_type() 169 fpregs[FPU_TYPE_FLAG_POS] = PA2_0_FPU_FLAG; in parisc_linux_get_fpu_type() 182 fpudispatch(u_int ir, u_int excp_code, u_int holder, u_int fpregs[]) in fpudispatch() argument 190 parisc_linux_get_fpu_type(fpregs); in fpudispatch() 192 fpu_type_flags=fpregs[FPU_TYPE_FLAG_POS]; /* get fpu type flags */ in fpudispatch() 209 return(decode_0c(ir,class,subop,fpregs)); in fpudispatch() 211 return(decode_0e(ir,class,subop,fpregs)); in fpudispatch() 213 return(decode_06(ir,fpregs)); in fpudispatch() [all …]
|
/linux-6.1.9/arch/s390/include/asm/fpu/ |
D | internal.h | 41 static inline void fpregs_store(_s390_fp_regs *fpregs, struct fpu *fpu) in fpregs_store() argument 43 fpregs->pad = 0; in fpregs_store() 44 fpregs->fpc = fpu->fpc; in fpregs_store() 46 convert_vx_to_fp((freg_t *)&fpregs->fprs, fpu->vxrs); in fpregs_store() 48 memcpy((freg_t *)&fpregs->fprs, fpu->fprs, in fpregs_store() 49 sizeof(fpregs->fprs)); in fpregs_store() 52 static inline void fpregs_load(_s390_fp_regs *fpregs, struct fpu *fpu) in fpregs_load() argument 54 fpu->fpc = fpregs->fpc; in fpregs_load() 56 convert_fp_to_vx(fpu->vxrs, (freg_t *)&fpregs->fprs); in fpregs_load() 58 memcpy(fpu->fprs, (freg_t *)&fpregs->fprs, in fpregs_load() [all …]
|
/linux-6.1.9/arch/x86/um/ |
D | ptrace_32.c | 200 struct user_i387_struct fpregs; in get_fpregs() local 203 (unsigned long *) &fpregs); in get_fpregs() 207 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs() 217 struct user_i387_struct fpregs; in set_fpregs() local 219 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs() 224 (unsigned long *) &fpregs); in set_fpregs() 230 struct user_fxsr_struct fpregs; in get_fpxregs() local 232 err = save_fpx_registers(userspace_pid[cpu], (unsigned long *) &fpregs); in get_fpxregs() 236 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpxregs() 246 struct user_fxsr_struct fpregs; in set_fpxregs() local [all …]
|
D | ptrace_64.c | 220 struct user_i387_struct fpregs; in get_fpregs() local 223 (unsigned long *) &fpregs); in get_fpregs() 227 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs() 237 struct user_i387_struct fpregs; in set_fpregs() local 239 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs() 244 (unsigned long *) &fpregs); in set_fpregs()
|
/linux-6.1.9/arch/csky/abiv2/ |
D | fpu.c | 153 unsigned long *fpregs; in save_to_user_fp() local 163 fpregs = &user_fp->vr[0]; in save_to_user_fp() 172 : "+a"(fpregs) in save_to_user_fp() 177 : "+a"(fpregs) in save_to_user_fp() 203 "=a"(tmp4), "+a"(fpregs) in save_to_user_fp() 215 unsigned long *fpregs; in restore_from_user_fp() local 225 fpregs = &user_fp->vr[0]; in restore_from_user_fp() 234 : "+a"(fpregs) in restore_from_user_fp() 239 : "+a"(fpregs) in restore_from_user_fp() 265 "=a"(tmp4), "+a"(fpregs) in restore_from_user_fp()
|
/linux-6.1.9/arch/sparc/kernel/ |
D | sigutil_64.c | 17 unsigned long *fpregs = current_thread_info()->fpregs; in save_fpu_state() local 23 err |= copy_to_user(&fpu->si_float_regs[0], fpregs, in save_fpu_state() 26 err |= copy_to_user(&fpu->si_float_regs[32], fpregs+16, in save_fpu_state() 37 unsigned long *fpregs = current_thread_info()->fpregs; in restore_fpu_state() local 48 err |= copy_from_user(fpregs, &fpu->si_float_regs[0], in restore_fpu_state() 51 err |= copy_from_user(fpregs+16, &fpu->si_float_regs[32], in restore_fpu_state()
|
D | ptrace_64.c | 354 membuf_write(&to, t->fpregs, 16 * sizeof(u64)); in fpregs64_get() 359 membuf_write(&to, t->fpregs + 16, 16 * sizeof(u64)); in fpregs64_get() 376 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_set() local 384 fpregs, in fpregs64_set() 689 membuf_write(&to, t->fpregs, 32 * sizeof(u32)); in fpregs32_get() 704 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_set() local 714 fpregs, in fpregs32_set() 839 membuf_write(&to, t->fpregs, 32 * sizeof(u32)); in getfpregs_get() 852 unsigned long *fpregs = task_thread_info(target)->fpregs; in setfpregs_set() local 862 fpregs, in setfpregs_set()
|
D | signal_64.c | 111 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_set_context() local 117 err |= copy_from_user(fpregs, in sparc64_set_context() 121 err |= copy_from_user(fpregs+16, in sparc64_set_context() 209 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_get_context() local 214 err |= copy_to_user(&(mcp->mc_fpregs.mcfpu_fregs), fpregs, in sparc64_get_context() 218 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, in sparc64_get_context()
|
D | ptrace_32.c | 186 unsigned long *fpregs = target->thread.float_regs; in fpregs32_set() local 194 fpregs, in fpregs32_set() 304 unsigned long *fpregs = target->thread.float_regs; in setfpregs_set() local 312 fpregs, in setfpregs_set()
|
D | entry.h | 40 void fpsave(unsigned long *fpregs, unsigned long *fsr, 42 void fpload(unsigned long *fpregs, unsigned long *fsr);
|
/linux-6.1.9/arch/m68k/kernel/ |
D | signal.c | 335 fpregset_t fpregs; in rt_restore_fpu_state() local 341 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state() 345 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state() 383 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state() 384 sizeof(fpregs))) in rt_restore_fpu_state() 393 : "m" (fpregs.f_fpregs[0]), in rt_restore_fpu_state() 394 "m" (fpregs.f_fpcntl[0]), in rt_restore_fpu_state() 395 "m" (fpregs.f_fpcntl[1]), in rt_restore_fpu_state() 396 "m" (fpregs.f_fpcntl[2])); in rt_restore_fpu_state() 403 : "m" (*fpregs.f_fpregs), in rt_restore_fpu_state() [all …]
|
D | process.c | 222 memcpy(fpu->fpregs, current->thread.fp, 96); in dump_fpu() 227 fpu->fpregs[i] = ((fpu->fpregs[i] & 0xffff0000) << 15) | in dump_fpu() 228 ((fpu->fpregs[i] & 0x0000ffff) << 16); in dump_fpu() 249 "m" (fpu->fpregs[0]) in dump_fpu() 258 : "m" (fpu->fpregs[0]) in dump_fpu()
|
/linux-6.1.9/arch/x86/kernel/fpu/ |
D | signal.c | 341 union fpregs_state *fpregs; in __fpu_restore_sig() local 397 fpregs = &fpu->fpstate->regs; in __fpu_restore_sig() 402 if (__copy_from_user(&fpregs->fxsave, buf_fx, in __fpu_restore_sig() 403 sizeof(fpregs->fxsave))) in __fpu_restore_sig() 408 if (fpregs->fxsave.mxcsr & ~mxcsr_feature_mask) in __fpu_restore_sig() 412 fpregs->fxsave.mxcsr &= mxcsr_feature_mask; in __fpu_restore_sig() 417 fpregs->xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in __fpu_restore_sig() 421 convert_to_fxsr(&fpregs->fxsave, &env); in __fpu_restore_sig() 436 fpregs->xsave.header.xfeatures &= mask; in __fpu_restore_sig() 440 success = !fxrstor_safe(&fpregs->fxsave); in __fpu_restore_sig()
|
/linux-6.1.9/arch/mips/kernel/ |
D | signal.c | 73 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_to_sigcontext() local 82 &fpregs[i]); in copy_fp_to_sigcontext() 92 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_from_sigcontext() local 100 err |= __get_user(fpr_val, &fpregs[i]); in copy_fp_from_sigcontext() 128 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in save_hw_fp_context() local 131 return _save_fp_context(fpregs, csr); in save_hw_fp_context() 137 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in restore_hw_fp_context() local 140 return _restore_fp_context(fpregs, csr); in restore_hw_fp_context() 327 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in protected_save_fp_context() local 361 err = __put_user(0, &fpregs[0]) | in protected_save_fp_context() [all …]
|
D | signal-common.h | 36 _save_fp_context(void __user *fpregs, void __user *csr); 38 _restore_fp_context(void __user *fpregs, void __user *csr);
|
/linux-6.1.9/arch/arm/include/asm/ |
D | user.h | 43 } fpregs[8]; member 86 unsigned long long fpregs[32]; member
|
D | fpstate.h | 25 __u64 fpregs[32]; member 27 __u64 fpregs[16];
|
/linux-6.1.9/arch/arm/vfp/ |
D | vfpmodule.c | 561 memcpy(&ufp->fpregs, &hwstate->fpregs, sizeof(hwstate->fpregs)); in vfp_preserve_user_clear_hwstate() 600 memcpy(&hwstate->fpregs, &ufp->fpregs, sizeof(hwstate->fpregs)); in vfp_restore_user_hwstate()
|
/linux-6.1.9/arch/arm/kernel/ |
D | ptrace.c | 623 membuf_write(&to, vfp->fpregs, sizeof(vfp->fpregs)); in vfp_get() 624 membuf_zero(&to, user_fpscr_offset - sizeof(vfp->fpregs)); in vfp_get() 641 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_set() 648 &new_vfp.fpregs, in vfp_set() 650 user_fpregs_offset + sizeof(new_vfp.fpregs)); in vfp_set() 655 user_fpregs_offset + sizeof(new_vfp.fpregs), in vfp_set()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | signal32.c | 27 compat_u64 fpregs[32]; member 116 for (i = 0; i < ARRAY_SIZE(frame->ufp.fpregs); i += 2) { in compat_preserve_vfp_context() 121 __put_user_error(vreg.lo, &frame->ufp.fpregs[i], err); in compat_preserve_vfp_context() 122 __put_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err); in compat_preserve_vfp_context() 159 for (i = 0; i < ARRAY_SIZE(frame->ufp.fpregs); i += 2) { in compat_restore_vfp_context() 162 __get_user_error(vreg.lo, &frame->ufp.fpregs[i], err); in compat_restore_vfp_context() 163 __get_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err); in compat_restore_vfp_context()
|
/linux-6.1.9/arch/sparc/include/asm/ |
D | fpumacro.h | 18 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
|
D | switch_to_32.h | 103 void fpsave(unsigned long *fpregs, unsigned long *fsr,
|
/linux-6.1.9/arch/m68k/include/asm/ |
D | ucontext.h | 17 fpregset_t fpregs; member
|
D | user.h | 33 unsigned long fpregs[8*3]; /* fp0-fp7 registers */ member
|
/linux-6.1.9/arch/s390/include/uapi/asm/ |
D | sigcontext.h | 64 _s390_fp_regs fpregs; member
|