Home
last modified time | relevance | path

Searched refs:SR_VS (Results 1 – 6 of 6) sorted by relevance

/linux/arch/riscv/include/asm/
H A Dvector.h45 regs->status = (regs->status & ~SR_VS) | SR_VS_CLEAN; in __riscv_v_vstate_clean()
50 regs->status = (regs->status & ~SR_VS) | SR_VS_DIRTY; in __riscv_v_vstate_dirty()
55 regs->status = (regs->status & ~SR_VS) | SR_VS_OFF; in riscv_v_vstate_off()
60 regs->status = (regs->status & ~SR_VS) | SR_VS_INITIAL; in riscv_v_vstate_on()
65 return (regs->status & SR_VS) != 0; in riscv_v_vstate_query()
70 csr_set(CSR_SSTATUS, SR_VS); in riscv_v_enable()
75 csr_clear(CSR_SSTATUS, SR_VS); in riscv_v_disable()
170 if ((regs->status & SR_VS) == SR_VS_OFF) in riscv_v_vstate_discard()
180 if ((regs->status & SR_VS) == SR_VS_DIRTY) { in riscv_v_vstate_save()
189 if ((regs->status & SR_VS) != SR_VS_OFF) { in riscv_v_vstate_restore()
[all …]
H A Dcsr.h27 #define SR_VS _AC(0x00000600, UL) /* Vector Status */ macro
39 #define SR_FS_VS (SR_FS | SR_VS) /* Vector and Floating-Point Unit */
/linux/arch/riscv/kvm/
H A Dvcpu_vector.c24 cntx->sstatus &= ~SR_VS; in kvm_riscv_vcpu_vector_reset()
36 cntx->sstatus &= ~SR_VS; in kvm_riscv_vcpu_vector_clean()
43 if ((cntx->sstatus & SR_VS) == SR_VS_DIRTY) { in kvm_riscv_vcpu_guest_vector_save()
53 if ((cntx->sstatus & SR_VS) != SR_VS_OFF) { in kvm_riscv_vcpu_guest_vector_restore()
/linux/arch/riscv/kernel/
H A Dkernel_mode_vector.c146 if ((task_pt_regs(current)->status & SR_VS) == SR_VS_DIRTY) { in riscv_v_start_kernel_context()
163 if (depth == 0 && (regs->status & SR_VS) == SR_VS_DIRTY) in riscv_v_context_nesting_start()
H A Dhead.S450 li t1, SR_VS
/linux/tools/arch/riscv/include/asm/
H A Dcsr.h26 #define SR_VS _AC(0x00000600, UL) /* Vector Status */ macro
38 #define SR_FS_VS (SR_FS | SR_VS) /* Vector and Floating-Point Unit */