Home
last modified time | relevance | path

Searched refs:LOONGARCH_CSR_ESTAT (Results 1 – 10 of 10) sorted by relevance

/linux-6.12.1/arch/loongarch/kvm/
Dtimer.c67 kvm_restore_hw_gcsr(csr, LOONGARCH_CSR_ESTAT); in kvm_restore_timer()
91 estat = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_ESTAT); in kvm_restore_timer()
189 kvm_save_hw_gcsr(csr, LOONGARCH_CSR_ESTAT); in kvm_save_timer()
Dinterrupt.c159 val = kvm_read_hw_gcsr(LOONGARCH_CSR_ESTAT); in _kvm_deliver_exception()
161 kvm_write_hw_gcsr(LOONGARCH_CSR_ESTAT, val); in _kvm_deliver_exception()
Dvcpu.c383 kvm_read_hw_gcsr(LOONGARCH_CSR_ESTAT) & (1 << INT_TI); in kvm_cpu_has_pending_timer()
405 kvm_read_hw_gcsr(LOONGARCH_CSR_ESTAT)); in kvm_arch_vcpu_dump_regs()
544 if (id == LOONGARCH_CSR_ESTAT) { in _kvm_getcsr()
558 *val = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_ESTAT) | (gintc << 2); in _kvm_getcsr()
582 if (id == LOONGARCH_CSR_ESTAT) { in _kvm_setcsr()
588 kvm_set_sw_gcsr(csr, LOONGARCH_CSR_ESTAT, gintc); in _kvm_setcsr()
Dswitch.S130 csrrd t0, LOONGARCH_CSR_ESTAT
Dmain.c53 set_gcsr_hw_flag(LOONGARCH_CSR_ESTAT); in kvm_init_gcsr_flag()
/linux-6.12.1/arch/loongarch/include/asm/
Dkvm_csr.h58 #define read_gcsr_estat() gcsr_read(LOONGARCH_CSR_ESTAT)
59 #define write_gcsr_estat(val) gcsr_write(val, LOONGARCH_CSR_ESTAT)
175 gcsr_xchg(val, val, LOONGARCH_CSR_ESTAT)
177 gcsr_xchg(~(val), val, LOONGARCH_CSR_ESTAT)
Dstacktrace.h91 __asm__ __volatile__(CSRRD_ONE_REG(LOONGARCH_CSR_ESTAT) : "=r" (regs->csr_estat)); in prepare_frametrace()
Dloongarch.h242 #define LOONGARCH_CSR_ESTAT 0x5 /* Exception status */ macro
1157 return (csr_read32(LOONGARCH_CSR_ESTAT) & CSR_ESTAT_EXC) >> CSR_ESTAT_EXC_SHIFT; in read_csr_excode()
1195 #define read_csr_estat() csr_read32(LOONGARCH_CSR_ESTAT)
1196 #define write_csr_estat(val) csr_write32(val, LOONGARCH_CSR_ESTAT)
1282 csr_xchg32(val, val, LOONGARCH_CSR_ESTAT)
1284 csr_xchg32(~(val), val, LOONGARCH_CSR_ESTAT)
Dstackframe.h144 csrrd t0, LOONGARCH_CSR_ESTAT
/linux-6.12.1/arch/loongarch/kernel/
Dentry.S42 csrrd t2, LOONGARCH_CSR_ESTAT