Home
last modified time | relevance | path

Searched refs:fpregs (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v4.19/arch/parisc/math-emu/
Dfpudispatch.c171 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 …]
/Linux-v4.19/arch/s390/include/asm/fpu/
Dinternal.h41 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-v4.19/arch/x86/um/
Dptrace_32.c199 struct user_i387_struct fpregs; in get_fpregs() local
202 (unsigned long *) &fpregs); in get_fpregs()
206 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs()
216 struct user_i387_struct fpregs; in set_fpregs() local
218 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs()
223 (unsigned long *) &fpregs); in set_fpregs()
229 struct user_fxsr_struct fpregs; in get_fpxregs() local
231 err = save_fpx_registers(userspace_pid[cpu], (unsigned long *) &fpregs); in get_fpxregs()
235 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpxregs()
245 struct user_fxsr_struct fpregs; in set_fpxregs() local
[all …]
Dptrace_64.c230 struct user_i387_struct fpregs; in get_fpregs() local
233 (unsigned long *) &fpregs); in get_fpregs()
237 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs()
247 struct user_i387_struct fpregs; in set_fpregs() local
249 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs()
254 (unsigned long *) &fpregs); in set_fpregs()
/Linux-v4.19/arch/sparc/kernel/
Dsigutil_64.c17 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()
Dprocess_32.c415 int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) argument
418 memset(fpregs, 0, sizeof(*fpregs));
419 fpregs->pr_q_entrysize = 8;
443 memcpy(&fpregs->pr_fr.pr_regs[0],
446 fpregs->pr_fsr = current->thread.fsr;
447 fpregs->pr_qcnt = current->thread.fpqdepth;
448 fpregs->pr_q_entrysize = 8;
449 fpregs->pr_en = 1;
450 if(fpregs->pr_qcnt != 0) {
451 memcpy(&fpregs->pr_q[0],
[all …]
Dprocess_64.c707 int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) in dump_fpu() argument
709 unsigned long *kfpregs = current_thread_info()->fpregs; in dump_fpu()
713 elf_fpregset_t32 *fpregs32 = (elf_fpregset_t32 *)fpregs; in dump_fpu()
734 memcpy(&fpregs->pr_regs[0], kfpregs, in dump_fpu()
737 memset(&fpregs->pr_regs[0], 0, in dump_fpu()
740 memcpy(&fpregs->pr_regs[16], kfpregs+16, in dump_fpu()
743 memset(&fpregs->pr_regs[16], 0, in dump_fpu()
746 fpregs->pr_fsr = current_thread_info()->xfsr[0]; in dump_fpu()
747 fpregs->pr_gsr = current_thread_info()->gsr[0]; in dump_fpu()
749 fpregs->pr_fsr = fpregs->pr_gsr = 0; in dump_fpu()
[all …]
Dptrace_64.c376 const unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_get() local
387 fpregs, in fpregs64_get()
398 fpregs + 16, in fpregs64_get()
443 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_set() local
451 fpregs, in fpregs64_set()
754 const unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_get() local
773 fpregs, in fpregs32_get()
808 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_set() local
818 fpregs, in fpregs32_set()
Dsignal_64.c112 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_set_context() local
118 err |= copy_from_user(fpregs, in sparc64_set_context()
122 err |= copy_from_user(fpregs+16, in sparc64_set_context()
210 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_get_context() local
215 err |= copy_to_user(&(mcp->mc_fpregs.mcfpu_fregs), fpregs, in sparc64_get_context()
219 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, in sparc64_get_context()
Dptrace_32.c216 const unsigned long *fpregs = target->thread.float_regs; in fpregs32_get() local
225 fpregs, in fpregs32_get()
260 unsigned long *fpregs = target->thread.float_regs; in fpregs32_set() local
268 fpregs, in fpregs32_set()
/Linux-v4.19/arch/m68k/kernel/
Dsignal.c336 fpregset_t fpregs; in rt_restore_fpu_state() local
342 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
346 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
384 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state()
385 sizeof(fpregs))) in rt_restore_fpu_state()
394 : "m" (fpregs.f_fpregs[0]), in rt_restore_fpu_state()
395 "m" (fpregs.f_fpcntl[0]), in rt_restore_fpu_state()
396 "m" (fpregs.f_fpcntl[1]), in rt_restore_fpu_state()
397 "m" (fpregs.f_fpcntl[2])); in rt_restore_fpu_state()
404 : "m" (*fpregs.f_fpregs), in rt_restore_fpu_state()
[all …]
Dprocess.c202 memcpy(fpu->fpregs, current->thread.fp, 96); in dump_fpu()
207 fpu->fpregs[i] = ((fpu->fpregs[i] & 0xffff0000) << 15) | in dump_fpu()
208 ((fpu->fpregs[i] & 0x0000ffff) << 16); in dump_fpu()
229 "m" (fpu->fpregs[0]) in dump_fpu()
238 : "m" (fpu->fpregs[0]) in dump_fpu()
/Linux-v4.19/arch/s390/kernel/
Dprocess.c163 int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs) in dump_fpu() argument
166 fpregs->fpc = current->thread.fpu.fpc; in dump_fpu()
167 fpregs->pad = 0; in dump_fpu()
169 convert_vx_to_fp((freg_t *)&fpregs->fprs, in dump_fpu()
172 memcpy(&fpregs->fprs, current->thread.fpu.fprs, in dump_fpu()
173 sizeof(fpregs->fprs)); in dump_fpu()
/Linux-v4.19/arch/mips/kernel/
Dsignal.c72 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 …]
Dsignal-common.h36 _save_fp_context(void __user *fpregs, void __user *csr);
38 _restore_fp_context(void __user *fpregs, void __user *csr);
/Linux-v4.19/arch/arm/include/asm/
Duser.h43 } fpregs[8]; member
90 unsigned long long fpregs[32]; member
Dfpstate.h28 __u64 fpregs[32]; member
30 __u64 fpregs[16];
/Linux-v4.19/arch/arm/vfp/
Dvfpmodule.c570 err |= __copy_to_user(&ufp->fpregs, &hwstate->fpregs, in vfp_preserve_user_clear_hwstate()
571 sizeof(hwstate->fpregs)); in vfp_preserve_user_clear_hwstate()
612 memcpy(&hwstate->fpregs, &ufp->fpregs, sizeof(hwstate->fpregs)); in vfp_restore_user_hwstate()
/Linux-v4.19/arch/arm64/kernel/
Dsignal32.c73 compat_u64 fpregs[32]; member
174 for (i = 0; i < ARRAY_SIZE(frame->ufp.fpregs); i += 2) { in compat_preserve_vfp_context()
179 __put_user_error(vreg.lo, &frame->ufp.fpregs[i], err); in compat_preserve_vfp_context()
180 __put_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err); in compat_preserve_vfp_context()
217 for (i = 0; i < ARRAY_SIZE(frame->ufp.fpregs); i += 2) { in compat_restore_vfp_context()
220 __get_user_error(vreg.lo, &frame->ufp.fpregs[i], err); in compat_restore_vfp_context()
221 __get_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err); in compat_restore_vfp_context()
/Linux-v4.19/arch/sh/include/asm/
Dprocessor_64.h212 void fpinit(struct sh_fpu_hard_struct *fpregs);
214 #define fpinit(fpregs) do { } while (0) argument
/Linux-v4.19/arch/arm/kernel/
Dptrace.c669 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_get()
675 &vfp->fpregs, in vfp_get()
677 user_fpregs_offset + sizeof(vfp->fpregs)); in vfp_get()
682 user_fpregs_offset + sizeof(vfp->fpregs), in vfp_get()
706 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_set()
713 &new_vfp.fpregs, in vfp_set()
715 user_fpregs_offset + sizeof(new_vfp.fpregs)); in vfp_set()
720 user_fpregs_offset + sizeof(new_vfp.fpregs), in vfp_set()
/Linux-v4.19/arch/sparc/include/asm/
Dfpumacro.h18 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
/Linux-v4.19/arch/m68k/include/asm/
Ducontext.h17 fpregset_t fpregs; member
Duser.h33 unsigned long fpregs[8*3]; /* fp0-fp7 registers */ member
/Linux-v4.19/arch/s390/include/uapi/asm/
Dsigcontext.h64 _s390_fp_regs fpregs; member

12