Searched refs:gintc (Results 1 – 2 of 2) sorted by relevance
538 unsigned long gintc; in _kvm_getcsr() local557 gintc = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_GINTC) & 0xff; in _kvm_getcsr()558 *val = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_ESTAT) | (gintc << 2); in _kvm_getcsr()573 int ret = 0, gintc; in _kvm_setcsr() local584 gintc = (val >> 2) & 0xff; in _kvm_setcsr()585 kvm_set_sw_gcsr(csr, LOONGARCH_CSR_GINTC, gintc); in _kvm_setcsr()587 gintc = val & ~(0xffUL << 2); in _kvm_setcsr()588 kvm_set_sw_gcsr(csr, LOONGARCH_CSR_ESTAT, gintc); in _kvm_setcsr()
170 __BUILD_CSR_OP(gintc)