Lines Matching refs:gcsr_read

14 #define gcsr_read(csr)						\  macro
48 #define read_gcsr_crmd() gcsr_read(LOONGARCH_CSR_CRMD)
50 #define read_gcsr_prmd() gcsr_read(LOONGARCH_CSR_PRMD)
52 #define read_gcsr_euen() gcsr_read(LOONGARCH_CSR_EUEN)
54 #define read_gcsr_misc() gcsr_read(LOONGARCH_CSR_MISC)
56 #define read_gcsr_ecfg() gcsr_read(LOONGARCH_CSR_ECFG)
58 #define read_gcsr_estat() gcsr_read(LOONGARCH_CSR_ESTAT)
60 #define read_gcsr_era() gcsr_read(LOONGARCH_CSR_ERA)
62 #define read_gcsr_badv() gcsr_read(LOONGARCH_CSR_BADV)
64 #define read_gcsr_badi() gcsr_read(LOONGARCH_CSR_BADI)
66 #define read_gcsr_eentry() gcsr_read(LOONGARCH_CSR_EENTRY)
69 #define read_gcsr_asid() gcsr_read(LOONGARCH_CSR_ASID)
71 #define read_gcsr_pgdl() gcsr_read(LOONGARCH_CSR_PGDL)
73 #define read_gcsr_pgdh() gcsr_read(LOONGARCH_CSR_PGDH)
76 #define read_gcsr_pgd() gcsr_read(LOONGARCH_CSR_PGD)
77 #define read_gcsr_pwctl0() gcsr_read(LOONGARCH_CSR_PWCTL0)
79 #define read_gcsr_pwctl1() gcsr_read(LOONGARCH_CSR_PWCTL1)
81 #define read_gcsr_stlbpgsize() gcsr_read(LOONGARCH_CSR_STLBPGSIZE)
83 #define read_gcsr_rvacfg() gcsr_read(LOONGARCH_CSR_RVACFG)
86 #define read_gcsr_cpuid() gcsr_read(LOONGARCH_CSR_CPUID)
88 #define read_gcsr_prcfg1() gcsr_read(LOONGARCH_CSR_PRCFG1)
90 #define read_gcsr_prcfg2() gcsr_read(LOONGARCH_CSR_PRCFG2)
92 #define read_gcsr_prcfg3() gcsr_read(LOONGARCH_CSR_PRCFG3)
95 #define read_gcsr_kscratch0() gcsr_read(LOONGARCH_CSR_KS0)
97 #define read_gcsr_kscratch1() gcsr_read(LOONGARCH_CSR_KS1)
99 #define read_gcsr_kscratch2() gcsr_read(LOONGARCH_CSR_KS2)
101 #define read_gcsr_kscratch3() gcsr_read(LOONGARCH_CSR_KS3)
103 #define read_gcsr_kscratch4() gcsr_read(LOONGARCH_CSR_KS4)
105 #define read_gcsr_kscratch5() gcsr_read(LOONGARCH_CSR_KS5)
107 #define read_gcsr_kscratch6() gcsr_read(LOONGARCH_CSR_KS6)
109 #define read_gcsr_kscratch7() gcsr_read(LOONGARCH_CSR_KS7)
112 #define read_gcsr_timerid() gcsr_read(LOONGARCH_CSR_TMID)
114 #define read_gcsr_timercfg() gcsr_read(LOONGARCH_CSR_TCFG)
116 #define read_gcsr_timertick() gcsr_read(LOONGARCH_CSR_TVAL)
118 #define read_gcsr_timeroffset() gcsr_read(LOONGARCH_CSR_CNTC)
121 #define read_gcsr_llbctl() gcsr_read(LOONGARCH_CSR_LLBCTL)
124 #define read_gcsr_tlbidx() gcsr_read(LOONGARCH_CSR_TLBIDX)
126 #define read_gcsr_tlbrentry() gcsr_read(LOONGARCH_CSR_TLBRENTRY)
128 #define read_gcsr_tlbrbadv() gcsr_read(LOONGARCH_CSR_TLBRBADV)
130 #define read_gcsr_tlbrera() gcsr_read(LOONGARCH_CSR_TLBRERA)
132 #define read_gcsr_tlbrsave() gcsr_read(LOONGARCH_CSR_TLBRSAVE)
134 #define read_gcsr_tlbrelo0() gcsr_read(LOONGARCH_CSR_TLBRELO0)
136 #define read_gcsr_tlbrelo1() gcsr_read(LOONGARCH_CSR_TLBRELO1)
138 #define read_gcsr_tlbrehi() gcsr_read(LOONGARCH_CSR_TLBREHI)
140 #define read_gcsr_tlbrprmd() gcsr_read(LOONGARCH_CSR_TLBRPRMD)
143 #define read_gcsr_directwin0() gcsr_read(LOONGARCH_CSR_DMWIN0)
145 #define read_gcsr_directwin1() gcsr_read(LOONGARCH_CSR_DMWIN1)
147 #define read_gcsr_directwin2() gcsr_read(LOONGARCH_CSR_DMWIN2)
149 #define read_gcsr_directwin3() gcsr_read(LOONGARCH_CSR_DMWIN3)
179 #define kvm_read_hw_gcsr(id) gcsr_read(id)
182 #define kvm_save_hw_gcsr(csr, gid) (csr->csrs[gid] = gcsr_read(gid))