Lines Matching refs:gcsr_write

25 #define gcsr_write(v, csr)					\  macro
49 #define write_gcsr_crmd(val) gcsr_write(val, LOONGARCH_CSR_CRMD)
51 #define write_gcsr_prmd(val) gcsr_write(val, LOONGARCH_CSR_PRMD)
53 #define write_gcsr_euen(val) gcsr_write(val, LOONGARCH_CSR_EUEN)
55 #define write_gcsr_misc(val) gcsr_write(val, LOONGARCH_CSR_MISC)
57 #define write_gcsr_ecfg(val) gcsr_write(val, LOONGARCH_CSR_ECFG)
59 #define write_gcsr_estat(val) gcsr_write(val, LOONGARCH_CSR_ESTAT)
61 #define write_gcsr_era(val) gcsr_write(val, LOONGARCH_CSR_ERA)
63 #define write_gcsr_badv(val) gcsr_write(val, LOONGARCH_CSR_BADV)
65 #define write_gcsr_badi(val) gcsr_write(val, LOONGARCH_CSR_BADI)
67 #define write_gcsr_eentry(val) gcsr_write(val, LOONGARCH_CSR_EENTRY)
70 #define write_gcsr_asid(val) gcsr_write(val, LOONGARCH_CSR_ASID)
72 #define write_gcsr_pgdl(val) gcsr_write(val, LOONGARCH_CSR_PGDL)
74 #define write_gcsr_pgdh(val) gcsr_write(val, LOONGARCH_CSR_PGDH)
75 #define write_gcsr_pgd(val) gcsr_write(val, LOONGARCH_CSR_PGD)
78 #define write_gcsr_pwctl0(val) gcsr_write(val, LOONGARCH_CSR_PWCTL0)
80 #define write_gcsr_pwctl1(val) gcsr_write(val, LOONGARCH_CSR_PWCTL1)
82 #define write_gcsr_stlbpgsize(val) gcsr_write(val, LOONGARCH_CSR_STLBPGSIZE)
84 #define write_gcsr_rvacfg(val) gcsr_write(val, LOONGARCH_CSR_RVACFG)
87 #define write_gcsr_cpuid(val) gcsr_write(val, LOONGARCH_CSR_CPUID)
89 #define write_gcsr_prcfg1(val) gcsr_write(val, LOONGARCH_CSR_PRCFG1)
91 #define write_gcsr_prcfg2(val) gcsr_write(val, LOONGARCH_CSR_PRCFG2)
93 #define write_gcsr_prcfg3(val) gcsr_write(val, LOONGARCH_CSR_PRCFG3)
96 #define write_gcsr_kscratch0(val) gcsr_write(val, LOONGARCH_CSR_KS0)
98 #define write_gcsr_kscratch1(val) gcsr_write(val, LOONGARCH_CSR_KS1)
100 #define write_gcsr_kscratch2(val) gcsr_write(val, LOONGARCH_CSR_KS2)
102 #define write_gcsr_kscratch3(val) gcsr_write(val, LOONGARCH_CSR_KS3)
104 #define write_gcsr_kscratch4(val) gcsr_write(val, LOONGARCH_CSR_KS4)
106 #define write_gcsr_kscratch5(val) gcsr_write(val, LOONGARCH_CSR_KS5)
108 #define write_gcsr_kscratch6(val) gcsr_write(val, LOONGARCH_CSR_KS6)
110 #define write_gcsr_kscratch7(val) gcsr_write(val, LOONGARCH_CSR_KS7)
113 #define write_gcsr_timerid(val) gcsr_write(val, LOONGARCH_CSR_TMID)
115 #define write_gcsr_timercfg(val) gcsr_write(val, LOONGARCH_CSR_TCFG)
117 #define write_gcsr_timertick(val) gcsr_write(val, LOONGARCH_CSR_TVAL)
119 #define write_gcsr_timeroffset(val) gcsr_write(val, LOONGARCH_CSR_CNTC)
122 #define write_gcsr_llbctl(val) gcsr_write(val, LOONGARCH_CSR_LLBCTL)
125 #define write_gcsr_tlbidx(val) gcsr_write(val, LOONGARCH_CSR_TLBIDX)
127 #define write_gcsr_tlbrentry(val) gcsr_write(val, LOONGARCH_CSR_TLBRENTRY)
129 #define write_gcsr_tlbrbadv(val) gcsr_write(val, LOONGARCH_CSR_TLBRBADV)
131 #define write_gcsr_tlbrera(val) gcsr_write(val, LOONGARCH_CSR_TLBRERA)
133 #define write_gcsr_tlbrsave(val) gcsr_write(val, LOONGARCH_CSR_TLBRSAVE)
135 #define write_gcsr_tlbrelo0(val) gcsr_write(val, LOONGARCH_CSR_TLBRELO0)
137 #define write_gcsr_tlbrelo1(val) gcsr_write(val, LOONGARCH_CSR_TLBRELO1)
139 #define write_gcsr_tlbrehi(val) gcsr_write(val, LOONGARCH_CSR_TLBREHI)
141 #define write_gcsr_tlbrprmd(val) gcsr_write(val, LOONGARCH_CSR_TLBRPRMD)
144 #define write_gcsr_directwin0(val) gcsr_write(val, LOONGARCH_CSR_DMWIN0)
146 #define write_gcsr_directwin1(val) gcsr_write(val, LOONGARCH_CSR_DMWIN1)
148 #define write_gcsr_directwin2(val) gcsr_write(val, LOONGARCH_CSR_DMWIN2)
150 #define write_gcsr_directwin3(val) gcsr_write(val, LOONGARCH_CSR_DMWIN3)
180 #define kvm_write_hw_gcsr(id, val) gcsr_write(val, id)
183 #define kvm_restore_hw_gcsr(csr, gid) (gcsr_write(csr->csrs[gid], gid))
185 #define kvm_read_clear_hw_gcsr(csr, gid) (csr->csrs[gid] = gcsr_write(0, gid))