Home
last modified time | relevance | path

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

12

/linux/arch/parisc/math-emu/
A Dfpudispatch.c311 fpregs[t+3] = fpregs[r1+3]; in decode_0c()
312 fpregs[t+2] = fpregs[r1+2]; in decode_0c()
315 fpregs[t+1] = fpregs[r1+1]; in decode_0c()
318 fpregs[t] = fpregs[r1]; in decode_0c()
329 fpregs[t+3] = fpregs[r1+3]; in decode_0c()
330 fpregs[t+2] = fpregs[r1+2]; in decode_0c()
769 fpregs[t] = fpregs[r1];
1410 &fpregs[ra], &fpregs[0], &fpregs[t]));
1413 &fpregs[ra], &fpregs[0], &fpregs[t]));
1432 &fpregs[ra], &fpregs[0], &fpregs[t]));
[all …]
/linux/arch/s390/include/asm/fpu/
A 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/arch/x86/um/
A 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
235 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpxregs()
245 struct user_fxsr_struct fpregs; in set_fpxregs() local
247 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpxregs()
[all …]
A Dptrace_64.c219 struct user_i387_struct fpregs; in get_fpregs() local
222 (unsigned long *) &fpregs); in get_fpregs()
226 n = copy_to_user(buf, &fpregs, sizeof(fpregs)); in get_fpregs()
236 struct user_i387_struct fpregs; in set_fpregs() local
238 n = copy_from_user(&fpregs, buf, sizeof(fpregs)); in set_fpregs()
243 (unsigned long *) &fpregs); in set_fpregs()
/linux/arch/csky/abiv2/
A Dfpu.c153 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/arch/sparc/kernel/
A 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()
A Dptrace_64.c355 membuf_write(&to, t->fpregs, 16 * sizeof(u64)); in fpregs64_get()
360 membuf_write(&to, t->fpregs + 16, 16 * sizeof(u64)); in fpregs64_get()
377 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs64_set() local
385 fpregs, in fpregs64_set()
690 membuf_write(&to, t->fpregs, 32 * sizeof(u32)); in fpregs32_get()
705 unsigned long *fpregs = task_thread_info(target)->fpregs; in fpregs32_set() local
715 fpregs, in fpregs32_set()
840 membuf_write(&to, t->fpregs, 32 * sizeof(u32)); in getfpregs_get()
853 unsigned long *fpregs = task_thread_info(target)->fpregs; in setfpregs_set() local
863 fpregs, in setfpregs_set()
A Dsignal_64.c111 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()
A Dptrace_32.c187 unsigned long *fpregs = target->thread.float_regs; in fpregs32_set() local
195 fpregs, in fpregs32_set()
305 unsigned long *fpregs = target->thread.float_regs; in setfpregs_set() local
313 fpregs, in setfpregs_set()
A Dentry.h40 void fpsave(unsigned long *fpregs, unsigned long *fsr,
42 void fpload(unsigned long *fpregs, unsigned long *fsr);
/linux/arch/m68k/kernel/
A Dsignal.c335 fpregset_t fpregs; in rt_restore_fpu_state() local
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()
403 : "m" (*fpregs.f_fpregs), in rt_restore_fpu_state()
404 "m" (*fpregs.f_fpcntl)); in rt_restore_fpu_state()
509 fpregset_t fpregs; in rt_save_fpu_state() local
536 : "=m" (*fpregs.f_fpregs), in rt_save_fpu_state()
537 "=m" (*fpregs.f_fpcntl) in rt_save_fpu_state()
541 err |= copy_to_user(&uc->uc_mcontext.fpregs, &fpregs, in rt_save_fpu_state()
[all …]
A Dprocess.c221 memcpy(fpu->fpregs, current->thread.fp, 96); in dump_fpu()
226 fpu->fpregs[i] = ((fpu->fpregs[i] & 0xffff0000) << 15) | in dump_fpu()
227 ((fpu->fpregs[i] & 0x0000ffff) << 16); in dump_fpu()
248 "m" (fpu->fpregs[0]) in dump_fpu()
257 : "m" (fpu->fpregs[0]) in dump_fpu()
/linux/arch/x86/kernel/fpu/
A Dsignal.c341 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/arch/nds32/kernel/
A Dfpu.c85 void load_fpu(const struct fpu_struct *fpregs) in load_fpu() argument
110 : "r" (fpregs)); in load_fpu()
122 : "r" (fpregs)); in load_fpu()
130 : "r" (fpregs)); in load_fpu()
139 : "r"(fpregs)); in load_fpu()
/linux/arch/mips/kernel/
A Dsignal.c74 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_to_sigcontext() local
83 &fpregs[i]); in copy_fp_to_sigcontext()
93 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_from_sigcontext() local
101 err |= __get_user(fpr_val, &fpregs[i]); in copy_fp_from_sigcontext()
129 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in save_hw_fp_context() local
132 return _save_fp_context(fpregs, csr); in save_hw_fp_context()
141 return _restore_fp_context(fpregs, csr); in restore_hw_fp_context()
362 err = __put_user(0, &fpregs[0]) | in protected_save_fp_context()
363 __put_user(0, &fpregs[31]) | in protected_save_fp_context()
425 err = __get_user(tmp, &fpregs[0]) | in protected_restore_fp_context()
[all …]
A Dsignal-common.h36 _save_fp_context(void __user *fpregs, void __user *csr);
38 _restore_fp_context(void __user *fpregs, void __user *csr);
/linux/arch/arm/include/asm/
A Dfpstate.h25 __u64 fpregs[32]; member
27 __u64 fpregs[16];
A Duser.h43 } fpregs[8]; member
90 unsigned long long fpregs[32]; member
/linux/arch/arm/vfp/
A Dvfpmodule.c561 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/arch/arm/kernel/
A Dptrace.c624 membuf_write(&to, vfp->fpregs, sizeof(vfp->fpregs)); in vfp_get()
625 membuf_zero(&to, user_fpscr_offset - sizeof(vfp->fpregs)); in vfp_get()
642 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_set()
649 &new_vfp.fpregs, in vfp_set()
651 user_fpregs_offset + sizeof(new_vfp.fpregs)); in vfp_set()
656 user_fpregs_offset + sizeof(new_vfp.fpregs), in vfp_set()
/linux/arch/arm64/kernel/
A Dsignal32.c27 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/arch/sparc/include/asm/
A Dfpumacro.h18 #define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)
/linux/arch/m68k/include/asm/
A Ducontext.h17 fpregset_t fpregs; member
A Duser.h33 unsigned long fpregs[8*3]; /* fp0-fp7 registers */ member
/linux/arch/s390/include/uapi/asm/
A Dsigcontext.h64 _s390_fp_regs fpregs; member

Completed in 44 milliseconds

12