Home
last modified time | relevance | path

Searched refs:LOONGARCH_CSR_TVAL (Results 1 – 4 of 4) sorted by relevance

/linux/arch/loongarch/kvm/
H A Dtimer.c46 kvm_write_sw_gcsr(vcpu->arch.csr, LOONGARCH_CSR_TVAL, 0); in kvm_init_timer()
71 kvm_restore_hw_gcsr(csr, LOONGARCH_CSR_TVAL); in kvm_restore_timer()
90 ticks = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_TVAL); in kvm_restore_timer()
145 ticks = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_TVAL); in _kvm_save_timer()
184 kvm_save_hw_gcsr(csr, LOONGARCH_CSR_TVAL); in kvm_save_timer()
H A Dmain.c84 set_gcsr_hw_flag(LOONGARCH_CSR_TVAL); in kvm_init_gcsr_flag()
/linux/arch/loongarch/include/asm/
H A Dkvm_csr.h116 #define read_gcsr_timertick() gcsr_read(LOONGARCH_CSR_TVAL)
117 #define write_gcsr_timertick(val) gcsr_write(val, LOONGARCH_CSR_TVAL)
H A Dloongarch.h475 #define LOONGARCH_CSR_TVAL 0x42 /* Timer value */ macro