Home
last modified time | relevance | path

Searched refs:LOONGARCH_CSR_TLBIDX (Results 1 – 3 of 3) sorted by relevance

/linux/arch/loongarch/include/asm/
H A Dloongarch.h262 #define LOONGARCH_CSR_TLBIDX 0x10 /* TLB Index, EHINV, PageSize, NP */ macro
1162 csr_xchg32(idx, CSR_TLBIDX_IDXM, LOONGARCH_CSR_TLBIDX); in write_csr_index()
1167 return (csr_read32(LOONGARCH_CSR_TLBIDX) & CSR_TLBIDX_SIZEM) >> CSR_TLBIDX_SIZE; in read_csr_pagesize()
1172 csr_xchg32(size << CSR_TLBIDX_SIZE, CSR_TLBIDX_SIZEM, LOONGARCH_CSR_TLBIDX); in write_csr_pagesize()
1197 #define read_csr_tlbidx() csr_read32(LOONGARCH_CSR_TLBIDX)
1198 #define write_csr_tlbidx(val) csr_write32(val, LOONGARCH_CSR_TLBIDX)
H A Dkvm_csr.h124 #define read_gcsr_tlbidx() gcsr_read(LOONGARCH_CSR_TLBIDX)
125 #define write_gcsr_tlbidx(val) gcsr_write(val, LOONGARCH_CSR_TLBIDX)
/linux/arch/loongarch/kvm/
H A Dvcpu.c1575 kvm_restore_hw_gcsr(csr, LOONGARCH_CSR_TLBIDX); in _kvm_vcpu_load()
1661 kvm_save_hw_gcsr(csr, LOONGARCH_CSR_TLBIDX); in _kvm_vcpu_put()