Home
last modified time | relevance | path

Searched refs:fcsr (Results 1 - 25 of 47) sorted by relevance

12

/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Dsignal.c59 _save_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
61 _restore_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
63 _save_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
65 _restore_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
109 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_to_sigcontext() local
117 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_to_sigcontext()
129 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_from_sigcontext() local
147 uint32_t __user *fcsr = &ctx->fcsr; copy_lsx_to_sigcontext() local
168 uint32_t __user *fcsr = &ctx->fcsr; copy_lsx_from_sigcontext() local
188 uint32_t __user *fcsr = &ctx->fcsr; copy_lasx_to_sigcontext() local
213 uint32_t __user *fcsr = &ctx->fcsr; copy_lasx_from_sigcontext() local
284 uint32_t __user *fcsr = &ctx->fcsr; save_hw_fpu_context() local
293 uint32_t __user *fcsr = &ctx->fcsr; restore_hw_fpu_context() local
302 uint32_t __user *fcsr = &ctx->fcsr; save_hw_lsx_context() local
311 uint32_t __user *fcsr = &ctx->fcsr; restore_hw_lsx_context() local
320 uint32_t __user *fcsr = &ctx->fcsr; save_hw_lasx_context() local
329 uint32_t __user *fcsr = &ctx->fcsr; restore_hw_lasx_context() local
369 fcsr_pending(unsigned int __user *fcsr) fcsr_pending() argument
398 uint32_t __user *fcsr = &fpu_ctx->fcsr; protected_save_fpu_context() local
432 uint32_t __user *fcsr = &fpu_ctx->fcsr; protected_restore_fpu_context() local
467 uint32_t __user *fcsr = &lsx_ctx->fcsr; protected_save_lsx_context() local
504 uint32_t __user *fcsr = &lsx_ctx->fcsr; protected_restore_lsx_context() local
543 uint32_t __user *fcsr = &lasx_ctx->fcsr; protected_save_lasx_context() local
583 uint32_t __user *fcsr = &lasx_ctx->fcsr; protected_restore_lasx_context() local
[all...]
H A Dtraps.c427 static void force_fcsr_sig(unsigned long fcsr, in force_fcsr_sig() argument
432 if (fcsr & FPU_CSR_INV_X) in force_fcsr_sig()
434 else if (fcsr & FPU_CSR_DIV_X) in force_fcsr_sig()
436 else if (fcsr & FPU_CSR_OVF_X) in force_fcsr_sig()
438 else if (fcsr & FPU_CSR_UDF_X) in force_fcsr_sig()
440 else if (fcsr & FPU_CSR_INE_X) in force_fcsr_sig()
446 static int process_fpemu_return(int sig, void __user *fault_addr, unsigned long fcsr) in process_fpemu_return() argument
455 force_fcsr_sig(fcsr, fault_addr, current); in process_fpemu_return()
481 asmlinkage void noinstr do_fpe(struct pt_regs *regs, unsigned long fcsr) in do_fpe() argument
492 write_fcsr(LOONGARCH_FCSR0, fcsr in do_fpe()
[all...]
H A Dcpu-probe.c32 unsigned long sr, mask, fcsr, fcsr0, fcsr1; in cpu_set_fpu_fcsr_mask() local
34 fcsr = c->fpu_csr0; in cpu_set_fpu_fcsr_mask()
40 fcsr0 = fcsr & mask; in cpu_set_fpu_fcsr_mask()
44 fcsr1 = fcsr | ~mask; in cpu_set_fpu_fcsr_mask()
48 write_fcsr(LOONGARCH_FCSR0, fcsr); in cpu_set_fpu_fcsr_mask()
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dsignal.c58 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_to_sigcontext() local
66 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_to_sigcontext()
78 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_from_sigcontext() local
85 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_from_sigcontext()
96 uint32_t __user *fcsr = &ctx->fcsr; in copy_lsx_to_sigcontext() local
117 uint32_t __user *fcsr = &ctx->fcsr; copy_lsx_from_sigcontext() local
137 uint32_t __user *fcsr = &ctx->fcsr; copy_lasx_to_sigcontext() local
162 uint32_t __user *fcsr = &ctx->fcsr; copy_lasx_from_sigcontext() local
219 uint32_t __user *fcsr = &ctx->fcsr; save_hw_fpu_context() local
228 uint32_t __user *fcsr = &ctx->fcsr; restore_hw_fpu_context() local
237 uint32_t __user *fcsr = &ctx->fcsr; save_hw_lsx_context() local
246 uint32_t __user *fcsr = &ctx->fcsr; restore_hw_lsx_context() local
255 uint32_t __user *fcsr = &ctx->fcsr; save_hw_lasx_context() local
264 uint32_t __user *fcsr = &ctx->fcsr; restore_hw_lasx_context() local
297 uint32_t __user *fcsr = &fpu_ctx->fcsr; protected_save_fpu_context() local
331 uint32_t __user *fcsr = &fpu_ctx->fcsr; protected_restore_fpu_context() local
366 uint32_t __user *fcsr = &lsx_ctx->fcsr; protected_save_lsx_context() local
403 uint32_t __user *fcsr = &lsx_ctx->fcsr; protected_restore_lsx_context() local
442 uint32_t __user *fcsr = &lasx_ctx->fcsr; protected_save_lasx_context() local
482 uint32_t __user *fcsr = &lasx_ctx->fcsr; protected_restore_lasx_context() local
608 fcsr_pending(unsigned int __user *fcsr) fcsr_pending() argument
[all...]
H A Dsignal-common.h40 extern int fcsr_pending(unsigned int __user *fcsr);
52 _save_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
54 _restore_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
56 _save_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
58 _restore_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
H A Dtraps.c457 static void force_fcsr_sig(unsigned long fcsr, in force_fcsr_sig() argument
462 if (fcsr & FPU_CSR_INV_X) in force_fcsr_sig()
464 else if (fcsr & FPU_CSR_DIV_X) in force_fcsr_sig()
466 else if (fcsr & FPU_CSR_OVF_X) in force_fcsr_sig()
468 else if (fcsr & FPU_CSR_UDF_X) in force_fcsr_sig()
470 else if (fcsr & FPU_CSR_INE_X) in force_fcsr_sig()
476 static int process_fpemu_return(int sig, void __user *fault_addr, unsigned long fcsr) in process_fpemu_return() argument
486 force_fcsr_sig(fcsr, fault_addr, current); in process_fpemu_return()
513 asmlinkage void noinstr do_fpe(struct pt_regs *regs, unsigned long fcsr) in do_fpe() argument
524 write_fcsr(LOONGARCH_FCSR0, fcsr in do_fpe()
[all...]
H A Dcpu-probe.c33 unsigned long sr, mask, fcsr, fcsr0, fcsr1; in cpu_set_fpu_fcsr_mask() local
35 fcsr = c->fpu_csr0; in cpu_set_fpu_fcsr_mask()
41 fcsr0 = fcsr & mask; in cpu_set_fpu_fcsr_mask()
45 fcsr1 = fcsr | ~mask; in cpu_set_fpu_fcsr_mask()
49 write_fcsr(LOONGARCH_FCSR0, fcsr); in cpu_set_fpu_fcsr_mask()
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dfpu-probe.c51 unsigned long sr, mask, fcsr, fcsr0, fcsr1; in cpu_set_fpu_fcsr_mask() local
53 fcsr = c->fpu_csr31; in cpu_set_fpu_fcsr_mask()
59 fcsr0 = fcsr & mask; in cpu_set_fpu_fcsr_mask()
63 fcsr1 = fcsr | ~mask; in cpu_set_fpu_fcsr_mask()
67 write_32bit_cp1_register(CP1_STATUS, fcsr); in cpu_set_fpu_fcsr_mask()
84 unsigned long sr, fir, fcsr, fcsr0, fcsr1; in cpu_set_fpu_2008() local
91 fcsr = read_32bit_cp1_register(CP1_STATUS); in cpu_set_fpu_2008()
98 fcsr0 = fcsr & ~(FPU_CSR_ABS2008 | FPU_CSR_NAN2008 | in cpu_set_fpu_2008()
103 fcsr1 = fcsr | FPU_CSR_ABS2008 | FPU_CSR_NAN2008; in cpu_set_fpu_2008()
107 write_32bit_cp1_register(CP1_STATUS, fcsr); in cpu_set_fpu_2008()
[all...]
/kernel/linux/linux-6.6/arch/mips/kernel/
H A Dfpu-probe.c51 unsigned long sr, mask, fcsr, fcsr0, fcsr1; in cpu_set_fpu_fcsr_mask() local
53 fcsr = c->fpu_csr31; in cpu_set_fpu_fcsr_mask()
59 fcsr0 = fcsr & mask; in cpu_set_fpu_fcsr_mask()
63 fcsr1 = fcsr | ~mask; in cpu_set_fpu_fcsr_mask()
67 write_32bit_cp1_register(CP1_STATUS, fcsr); in cpu_set_fpu_fcsr_mask()
84 unsigned long sr, fir, fcsr, fcsr0, fcsr1; in cpu_set_fpu_2008() local
91 fcsr = read_32bit_cp1_register(CP1_STATUS); in cpu_set_fpu_2008()
98 fcsr0 = fcsr & ~(FPU_CSR_ABS2008 | FPU_CSR_NAN2008 | in cpu_set_fpu_2008()
103 fcsr1 = fcsr | FPU_CSR_ABS2008 | FPU_CSR_NAN2008; in cpu_set_fpu_2008()
107 write_32bit_cp1_register(CP1_STATUS, fcsr); in cpu_set_fpu_2008()
[all...]
/kernel/linux/linux-6.6/arch/riscv/kvm/
H A Dvcpu_fp.c93 if (reg_num == KVM_REG_RISCV_FP_F_REG(fcsr)) in kvm_riscv_vcpu_get_reg_fp()
94 reg_val = &cntx->fp.f.fcsr; in kvm_riscv_vcpu_get_reg_fp()
102 if (reg_num == KVM_REG_RISCV_FP_D_REG(fcsr)) { in kvm_riscv_vcpu_get_reg_fp()
105 reg_val = &cntx->fp.d.fcsr; in kvm_riscv_vcpu_get_reg_fp()
138 if (reg_num == KVM_REG_RISCV_FP_F_REG(fcsr)) in kvm_riscv_vcpu_set_reg_fp()
139 reg_val = &cntx->fp.f.fcsr; in kvm_riscv_vcpu_set_reg_fp()
147 if (reg_num == KVM_REG_RISCV_FP_D_REG(fcsr)) { in kvm_riscv_vcpu_set_reg_fp()
150 reg_val = &cntx->fp.d.fcsr; in kvm_riscv_vcpu_set_reg_fp()
/kernel/linux/linux-5.10/arch/loongarch/include/uapi/asm/
H A Dsigcontext.h40 __u32 fcsr; member
49 __u32 fcsr; member
58 __u32 fcsr; member
/kernel/linux/linux-5.10/arch/riscv/include/uapi/asm/
H A Dptrace.h56 __u32 fcsr; member
61 __u32 fcsr; member
66 __u32 fcsr; member
/kernel/linux/linux-6.6/arch/loongarch/include/uapi/asm/
H A Dsigcontext.h41 __u32 fcsr; member
50 __u32 fcsr; member
59 __u32 fcsr; member
H A Dptrace.h46 uint32_t fcsr; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-riscv/asm/
H A Dptrace.h59 __u32 fcsr; member
63 __u32 fcsr; member
67 __u32 fcsr; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-loongarch/asm/
H A Dsigcontext.h52 __u32 fcsr; member
61 __u32 fcsr; member
70 __u32 fcsr; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/asm-riscv/asm/
H A Dptrace.h59 __u32 fcsr; member
63 __u32 fcsr; member
67 __u32 fcsr; member
/kernel/linux/linux-5.10/arch/riscv/kernel/
H A Dptrace.c63 membuf_write(&to, fstate, offsetof(struct __riscv_d_ext_state, fcsr)); in riscv_fpr_get()
64 membuf_store(&to, fstate->fcsr); in riscv_fpr_get()
77 offsetof(struct __riscv_d_ext_state, fcsr)); in riscv_fpr_set()
80 offsetof(struct __riscv_d_ext_state, fcsr) + in riscv_fpr_set()
81 sizeof(fstate->fcsr)); in riscv_fpr_set()
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dfpu.h56 static inline unsigned long mask_fcsr_x(unsigned long fcsr) in mask_fcsr_x() argument
58 return fcsr & ((fcsr & FPU_CSR_ALL_E) << in mask_fcsr_x()
164 unsigned int fcsr = current->thread.fpu.fcsr; in init_fpu() local
167 _init_fpu(fcsr); in init_fpu()
H A Dprocessor.h82 unsigned int fcsr; member
192 .fcsr = 0, \
/kernel/linux/linux-6.6/arch/loongarch/include/asm/
H A Dfpu.h55 static inline unsigned long mask_fcsr_x(unsigned long fcsr) in mask_fcsr_x() argument
57 return fcsr & ((fcsr & FPU_CSR_ALL_E) << in mask_fcsr_x()
157 unsigned int fcsr = current->thread.fpu.fcsr; in init_fpu() local
160 _init_fpu(fcsr); in init_fpu()
H A Dprocessor.h84 uint32_t fcsr; member
181 .fcsr = 0, \
/kernel/linux/linux-6.6/arch/riscv/include/uapi/asm/
H A Dptrace.h61 __u32 fcsr; member
66 __u32 fcsr; member
71 __u32 fcsr; member
/kernel/linux/linux-6.6/arch/riscv/kernel/
H A Dptrace.c62 membuf_write(&to, fstate, offsetof(struct __riscv_d_ext_state, fcsr)); in riscv_fpr_get()
63 membuf_store(&to, fstate->fcsr); in riscv_fpr_get()
76 offsetof(struct __riscv_d_ext_state, fcsr)); in riscv_fpr_set()
79 offsetof(struct __riscv_d_ext_state, fcsr) + in riscv_fpr_set()
80 sizeof(fstate->fcsr)); in riscv_fpr_set()
/kernel/linux/linux-5.10/arch/loongarch/kvm/
H A Dloongarch.c1800 fpu->fcsr = vcpu->arch.fpu.fcsr; in kvm_arch_vcpu_ioctl_get_fpu()
1813 vcpu->arch.fpu.fcsr = fpu->fcsr; in kvm_arch_vcpu_ioctl_set_fpu()
1971 static void kvm_enable_lbt_fpu(struct kvm_vcpu *vcpu, unsigned long fcsr) in kvm_enable_lbt_fpu() argument
1977 if (fcsr & FPU_CSR_TM) in kvm_enable_lbt_fpu()
1994 static void kvm_enable_lbt_fpu(struct kvm_vcpu *vcpu, unsigned long fcsr) { } in kvm_enable_lbt_fpu() argument
2008 kvm_enable_lbt_fpu(vcpu, vcpu->arch.fpu.fcsr); in kvm_own_fpu()
2026 kvm_enable_lbt_fpu(vcpu, vcpu->arch.fpu.fcsr); in kvm_own_lsx()
2059 kvm_enable_lbt_fpu(vcpu, vcpu->arch.fpu.fcsr); in kvm_own_lasx()
2095 unsigned long fcsr; kvm_lose_fpu() local
[all...]

Completed in 14 milliseconds

12