/arch/parisc/math-emu/ |
D | fpudispatch.c | 171 static void parisc_linux_get_fpu_type(u_int fpregs[]) in parisc_linux_get_fpu_type() argument 177 fpregs[FPU_TYPE_FLAG_POS] = TIMEX_EXTEN_FLAG; in parisc_linux_get_fpu_type() 180 fpregs[FPU_TYPE_FLAG_POS] = ROLEX_EXTEN_FLAG; in parisc_linux_get_fpu_type() 182 fpregs[FPU_TYPE_FLAG_POS] = PA2_0_FPU_FLAG; in parisc_linux_get_fpu_type() 195 fpudispatch(u_int ir, u_int excp_code, u_int holder, u_int fpregs[]) in fpudispatch() argument 203 parisc_linux_get_fpu_type(fpregs); in fpudispatch() 205 fpu_type_flags=fpregs[FPU_TYPE_FLAG_POS]; /* get fpu type flags */ in fpudispatch() 222 return(decode_0c(ir,class,subop,fpregs)); in fpudispatch() 224 return(decode_0e(ir,class,subop,fpregs)); in fpudispatch() 226 return(decode_06(ir,fpregs)); in fpudispatch() [all …]
|
/arch/s390/include/asm/fpu/ |
D | internal.h | 48 static inline void fpregs_store(_s390_fp_regs *fpregs, struct fpu *fpu) in fpregs_store() argument 50 fpregs->pad = 0; in fpregs_store() 51 fpregs->fpc = fpu->fpc; in fpregs_store() 53 convert_vx_to_fp((freg_t *)&fpregs->fprs, fpu->vxrs); in fpregs_store() 55 memcpy((freg_t *)&fpregs->fprs, fpu->fprs, in fpregs_store() 56 sizeof(fpregs->fprs)); in fpregs_store() 59 static inline void fpregs_load(_s390_fp_regs *fpregs, struct fpu *fpu) in fpregs_load() argument 61 fpu->fpc = fpregs->fpc; in fpregs_load() 63 convert_fp_to_vx(fpu->vxrs, (freg_t *)&fpregs->fprs); in fpregs_load() 65 memcpy(fpu->fprs, (freg_t *)&fpregs->fprs, in fpregs_load() [all …]
|
/arch/x86/um/ |
D | ptrace_32.c | 197 struct user_i387_struct fpregs; in get_fpregs() local 199 err = save_fp_registers(userspace_pid[cpu], (unsigned long *) &fpregs); in get_fpregs() 203 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs() 213 struct user_i387_struct fpregs; in set_fpregs() local 215 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs() 220 (unsigned long *) &fpregs); in set_fpregs() 226 struct user_fxsr_struct fpregs; in get_fpxregs() local 228 err = save_fpx_registers(userspace_pid[cpu], (unsigned long *) &fpregs); in get_fpxregs() 232 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpxregs() 242 struct user_fxsr_struct fpregs; in set_fpxregs() local [all …]
|
D | ptrace_64.c | 225 long fpregs[HOST_FP_SIZE]; in get_fpregs() local 227 BUG_ON(sizeof(*buf) != sizeof(fpregs)); in get_fpregs() 228 err = save_fp_registers(userspace_pid[cpu], fpregs); in get_fpregs() 232 n = copy_to_user(buf, fpregs, sizeof(fpregs)); in get_fpregs() 242 long fpregs[HOST_FP_SIZE]; in set_fpregs() local 244 BUG_ON(sizeof(*buf) != sizeof(fpregs)); in set_fpregs() 245 n = copy_from_user(fpregs, buf, sizeof(fpregs)); in set_fpregs() 249 return restore_fp_registers(userspace_pid[cpu], fpregs); in set_fpregs()
|
/arch/sparc/kernel/ |
D | sigutil_64.c | 16 unsigned long *fpregs = current_thread_info()->fpregs; in save_fpu_state() local 22 err |= copy_to_user(&fpu->si_float_regs[0], fpregs, in save_fpu_state() 25 err |= copy_to_user(&fpu->si_float_regs[32], fpregs+16, in save_fpu_state() 36 unsigned long *fpregs = current_thread_info()->fpregs; in restore_fpu_state() local 47 err |= copy_from_user(fpregs, &fpu->si_float_regs[0], in restore_fpu_state() 50 err |= copy_from_user(fpregs+16, &fpu->si_float_regs[32], in restore_fpu_state()
|
D | process_32.c | 419 int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) argument 422 memset(fpregs, 0, sizeof(*fpregs)); 423 fpregs->pr_q_entrysize = 8; 447 memcpy(&fpregs->pr_fr.pr_regs[0], 450 fpregs->pr_fsr = current->thread.fsr; 451 fpregs->pr_qcnt = current->thread.fpqdepth; 452 fpregs->pr_q_entrysize = 8; 453 fpregs->pr_en = 1; 454 if(fpregs->pr_qcnt != 0) { 455 memcpy(&fpregs->pr_q[0], [all …]
|
D | process_64.c | 699 int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) in dump_fpu() argument 701 unsigned long *kfpregs = current_thread_info()->fpregs; in dump_fpu() 705 elf_fpregset_t32 *fpregs32 = (elf_fpregset_t32 *)fpregs; in dump_fpu() 726 memcpy(&fpregs->pr_regs[0], kfpregs, in dump_fpu() 729 memset(&fpregs->pr_regs[0], 0, in dump_fpu() 732 memcpy(&fpregs->pr_regs[16], kfpregs+16, in dump_fpu() 735 memset(&fpregs->pr_regs[16], 0, in dump_fpu() 738 fpregs->pr_fsr = current_thread_info()->xfsr[0]; in dump_fpu() 739 fpregs->pr_gsr = current_thread_info()->gsr[0]; in dump_fpu() 741 fpregs->pr_fsr = fpregs->pr_gsr = 0; in dump_fpu() [all …]
|
D | ptrace_64.c | 336 const unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_get() local 347 fpregs, in fpregs64_get() 358 fpregs + 16, in fpregs64_get() 403 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_set() local 411 fpregs, in fpregs64_set() 699 const unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_get() local 718 fpregs, in fpregs32_get() 753 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_set() local 763 fpregs, in fpregs32_set()
|
D | signal_64.c | 114 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_set_context() local 120 err |= copy_from_user(fpregs, in sparc64_set_context() 124 err |= copy_from_user(fpregs+16, in sparc64_set_context() 212 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_get_context() local 217 err |= copy_to_user(&(mcp->mc_fpregs.mcfpu_fregs), fpregs, in sparc64_get_context() 221 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, in sparc64_get_context()
|
/arch/m68k/kernel/ |
D | signal.c | 353 fpregset_t fpregs; in rt_restore_fpu_state() local 359 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state() 363 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state() 401 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state() 402 sizeof(fpregs))) in rt_restore_fpu_state() 411 : "m" (fpregs.f_fpregs[0]), in rt_restore_fpu_state() 412 "m" (fpregs.f_fpcntl[0]), in rt_restore_fpu_state() 413 "m" (fpregs.f_fpcntl[1]), in rt_restore_fpu_state() 414 "m" (fpregs.f_fpcntl[2])); in rt_restore_fpu_state() 421 : "m" (*fpregs.f_fpregs), in rt_restore_fpu_state() [all …]
|
D | process.c | 215 memcpy(fpu->fpregs, current->thread.fp, 96); in dump_fpu() 220 fpu->fpregs[i] = ((fpu->fpregs[i] & 0xffff0000) << 15) | in dump_fpu() 221 ((fpu->fpregs[i] & 0x0000ffff) << 16); in dump_fpu() 239 "m" (fpu->fpregs[0]) in dump_fpu() 248 : "m" (fpu->fpregs[0]) in dump_fpu()
|
/arch/frv/kernel/ |
D | ptrace.c | 110 const struct user_fpmedia_regs *fpregs = &target->thread.user->f; in fpmregs_get() local 114 fpregs, 0, sizeof(*fpregs)); in fpmregs_get() 119 sizeof(*fpregs), -1); in fpmregs_get() 130 struct user_fpmedia_regs *fpregs = &target->thread.user->f; in fpmregs_set() local 134 fpregs, 0, sizeof(*fpregs)); in fpmregs_set() 139 sizeof(*fpregs), -1); in fpmregs_set()
|
/arch/mips/kernel/ |
D | signal-common.h | 36 _save_fp_context(void __user *fpregs, void __user *csr); 38 _restore_fp_context(void __user *fpregs, void __user *csr);
|
D | signal.c | 72 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_to_sigcontext() local 81 &fpregs[i]); in copy_fp_to_sigcontext() 91 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_from_sigcontext() local 99 err |= __get_user(fpr_val, &fpregs[i]); in copy_fp_from_sigcontext() 113 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in save_hw_fp_context() local 116 return _save_fp_context(fpregs, csr); in save_hw_fp_context() 122 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in restore_hw_fp_context() local 125 return _restore_fp_context(fpregs, csr); in restore_hw_fp_context() 299 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in protected_save_fp_context() local 333 err = __put_user(0, &fpregs[0]) | in protected_save_fp_context() [all …]
|
/arch/s390/kernel/ |
D | process.c | 192 int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs) in dump_fpu() argument 195 fpregs->fpc = current->thread.fpu.fpc; in dump_fpu() 196 fpregs->pad = 0; in dump_fpu() 198 convert_vx_to_fp((freg_t *)&fpregs->fprs, in dump_fpu() 201 memcpy(&fpregs->fprs, current->thread.fpu.fprs, in dump_fpu() 202 sizeof(fpregs->fprs)); in dump_fpu()
|
/arch/arm/include/asm/ |
D | user.h | 42 } fpregs[8]; member 89 unsigned long long fpregs[32]; member
|
D | fpstate.h | 28 __u64 fpregs[32]; member 30 __u64 fpregs[16];
|
/arch/sh/include/asm/ |
D | processor_64.h | 216 void fpinit(struct sh_fpu_hard_struct *fpregs); 218 #define fpinit(fpregs) do { } while (0) argument
|
/arch/sparc/include/asm/ |
D | fpumacro.h | 17 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
|
/arch/m68k/include/asm/ |
D | ucontext.h | 16 fpregset_t fpregs; member
|
D | user.h | 32 unsigned long fpregs[8*3]; /* fp0-fp7 registers */ member
|
/arch/arm/vfp/ |
D | vfpmodule.c | 570 memcpy(&ufp->fpregs, &hwstate->fpregs, sizeof(hwstate->fpregs)); in vfp_preserve_user_clear_hwstate() 609 memcpy(&hwstate->fpregs, &ufp->fpregs, sizeof(hwstate->fpregs)); in vfp_restore_user_hwstate()
|
/arch/mn10300/kernel/ |
D | ptrace.c | 162 const struct fpu_state_struct *fpregs = &target->thread.fpu_state; in fpuregs_get() local 168 fpregs, 0, sizeof(*fpregs)); in fpuregs_get() 173 sizeof(*fpregs), -1); in fpuregs_get()
|
/arch/arm/kernel/ |
D | ptrace.c | 673 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_get() 679 &vfp->fpregs, in vfp_get() 681 user_fpregs_offset + sizeof(vfp->fpregs)); in vfp_get() 686 user_fpregs_offset + sizeof(vfp->fpregs), in vfp_get() 710 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_set() 717 &new_vfp.fpregs, in vfp_set() 719 user_fpregs_offset + sizeof(new_vfp.fpregs)); in vfp_set() 724 user_fpregs_offset + sizeof(new_vfp.fpregs), in vfp_set()
|
/arch/s390/include/uapi/asm/ |
D | sigcontext.h | 63 _s390_fp_regs fpregs; member
|