Home
last modified time | relevance | path

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

/linux-6.12.1/arch/loongarch/kernel/
Dtime.c124 csr_write64(init_offset, LOONGARCH_CSR_CNTC); in sync_counter()
214 init_offset = -(drdtime() - csr_read64(LOONGARCH_CSR_CNTC)); in time_init()
/linux-6.12.1/arch/loongarch/include/asm/
Dkvm_csr.h118 #define read_gcsr_timeroffset() gcsr_read(LOONGARCH_CSR_CNTC)
119 #define write_gcsr_timeroffset(val) gcsr_write(val, LOONGARCH_CSR_CNTC)
Dloongarch.h477 #define LOONGARCH_CSR_CNTC 0x43 /* Timer offset */ macro
/linux-6.12.1/arch/loongarch/kvm/
Dmain.c86 set_gcsr_hw_flag(LOONGARCH_CSR_CNTC); in kvm_init_gcsr_flag()
Dvcpu.c1591 kvm_restore_hw_gcsr(csr, LOONGARCH_CSR_CNTC); in _kvm_vcpu_load()
1680 kvm_save_hw_gcsr(csr, LOONGARCH_CSR_CNTC); in _kvm_vcpu_put()