Home
last modified time | relevance | path

Searched refs:CSR_EUEN_LSXEN (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/arch/loongarch/include/asm/
Dfpu.h73 return (csr_read32(LOONGARCH_CSR_EUEN) & CSR_EUEN_LSXEN) ? in is_lsx_enabled()
146 KSTK_EUEN(tsk) &= ~(CSR_EUEN_FPEN | CSR_EUEN_LSXEN | CSR_EUEN_LASXEN); in lose_fpu_inatomic()
192 if (euen & CSR_EUEN_LSXEN) in save_fpu_regs()
213 csr_xchg32(CSR_EUEN_LSXEN, CSR_EUEN_LSXEN, LOONGARCH_CSR_EUEN); in enable_lsx()
219 csr_xchg32(0, CSR_EUEN_LSXEN, LOONGARCH_CSR_EUEN); in disable_lsx()
Dloongarch.h227 #define CSR_EUEN_LSXEN (_ULCAST_(0x1) << CSR_EUEN_LSXEN_SHIFT) macro
/linux-6.12.1/arch/loongarch/kernel/
Dkfpu.c40 if (*euen_curr & CSR_EUEN_LSXEN) in kernel_fpu_begin()
65 if (*euen_curr & CSR_EUEN_LSXEN) in kernel_fpu_end()
83 euen_mask |= CSR_EUEN_LSXEN; in init_euen_mask()
Dtraps.c240 print_bool_fragment("SXE", FIELD_GET(CSR_EUEN_LSXEN, x), false); in print_euen()
/linux-6.12.1/arch/loongarch/kvm/
Dvcpu.c1315 set_csr_euen(CSR_EUEN_LSXEN | CSR_EUEN_FPEN); in kvm_own_lsx()
1350 set_csr_euen(CSR_EUEN_FPEN | CSR_EUEN_LSXEN | CSR_EUEN_LASXEN); in kvm_own_lasx()
1388 clear_csr_euen(CSR_EUEN_FPEN | CSR_EUEN_LSXEN | CSR_EUEN_LASXEN); in kvm_lose_fpu()
1395 clear_csr_euen(CSR_EUEN_FPEN | CSR_EUEN_LSXEN); in kvm_lose_fpu()