Lines Matching full:val
18 " gcsrrd %[val], %[reg]\n\t" \
19 : [val] "=r" (__v) \
29 " gcsrwr %[val], %[reg]\n\t" \
30 : [val] "+r" (__v) \
40 " gcsrxchg %[val], %[mask], %[reg]\n\t" \
41 : [val] "+r" (__v) \
49 #define write_gcsr_crmd(val) gcsr_write(val, LOONGARCH_CSR_CRMD) argument
51 #define write_gcsr_prmd(val) gcsr_write(val, LOONGARCH_CSR_PRMD) argument
53 #define write_gcsr_euen(val) gcsr_write(val, LOONGARCH_CSR_EUEN) argument
55 #define write_gcsr_misc(val) gcsr_write(val, LOONGARCH_CSR_MISC) argument
57 #define write_gcsr_ecfg(val) gcsr_write(val, LOONGARCH_CSR_ECFG) argument
59 #define write_gcsr_estat(val) gcsr_write(val, LOONGARCH_CSR_ESTAT) argument
61 #define write_gcsr_era(val) gcsr_write(val, LOONGARCH_CSR_ERA) argument
63 #define write_gcsr_badv(val) gcsr_write(val, LOONGARCH_CSR_BADV) argument
65 #define write_gcsr_badi(val) gcsr_write(val, LOONGARCH_CSR_BADI) argument
67 #define write_gcsr_eentry(val) gcsr_write(val, LOONGARCH_CSR_EENTRY) argument
70 #define write_gcsr_asid(val) gcsr_write(val, LOONGARCH_CSR_ASID) argument
72 #define write_gcsr_pgdl(val) gcsr_write(val, LOONGARCH_CSR_PGDL) argument
74 #define write_gcsr_pgdh(val) gcsr_write(val, LOONGARCH_CSR_PGDH) argument
75 #define write_gcsr_pgd(val) gcsr_write(val, LOONGARCH_CSR_PGD) argument
78 #define write_gcsr_pwctl0(val) gcsr_write(val, LOONGARCH_CSR_PWCTL0) argument
80 #define write_gcsr_pwctl1(val) gcsr_write(val, LOONGARCH_CSR_PWCTL1) argument
82 #define write_gcsr_stlbpgsize(val) gcsr_write(val, LOONGARCH_CSR_STLBPGSIZE) argument
84 #define write_gcsr_rvacfg(val) gcsr_write(val, LOONGARCH_CSR_RVACFG) argument
87 #define write_gcsr_cpuid(val) gcsr_write(val, LOONGARCH_CSR_CPUID) argument
89 #define write_gcsr_prcfg1(val) gcsr_write(val, LOONGARCH_CSR_PRCFG1) argument
91 #define write_gcsr_prcfg2(val) gcsr_write(val, LOONGARCH_CSR_PRCFG2) argument
93 #define write_gcsr_prcfg3(val) gcsr_write(val, LOONGARCH_CSR_PRCFG3) argument
96 #define write_gcsr_kscratch0(val) gcsr_write(val, LOONGARCH_CSR_KS0) argument
98 #define write_gcsr_kscratch1(val) gcsr_write(val, LOONGARCH_CSR_KS1) argument
100 #define write_gcsr_kscratch2(val) gcsr_write(val, LOONGARCH_CSR_KS2) argument
102 #define write_gcsr_kscratch3(val) gcsr_write(val, LOONGARCH_CSR_KS3) argument
104 #define write_gcsr_kscratch4(val) gcsr_write(val, LOONGARCH_CSR_KS4) argument
106 #define write_gcsr_kscratch5(val) gcsr_write(val, LOONGARCH_CSR_KS5) argument
108 #define write_gcsr_kscratch6(val) gcsr_write(val, LOONGARCH_CSR_KS6) argument
110 #define write_gcsr_kscratch7(val) gcsr_write(val, LOONGARCH_CSR_KS7) argument
113 #define write_gcsr_timerid(val) gcsr_write(val, LOONGARCH_CSR_TMID) argument
115 #define write_gcsr_timercfg(val) gcsr_write(val, LOONGARCH_CSR_TCFG) argument
117 #define write_gcsr_timertick(val) gcsr_write(val, LOONGARCH_CSR_TVAL) argument
119 #define write_gcsr_timeroffset(val) gcsr_write(val, LOONGARCH_CSR_CNTC) argument
122 #define write_gcsr_llbctl(val) gcsr_write(val, LOONGARCH_CSR_LLBCTL) argument
125 #define write_gcsr_tlbidx(val) gcsr_write(val, LOONGARCH_CSR_TLBIDX) argument
127 #define write_gcsr_tlbrentry(val) gcsr_write(val, LOONGARCH_CSR_TLBRENTRY) argument
129 #define write_gcsr_tlbrbadv(val) gcsr_write(val, LOONGARCH_CSR_TLBRBADV) argument
131 #define write_gcsr_tlbrera(val) gcsr_write(val, LOONGARCH_CSR_TLBRERA) argument
133 #define write_gcsr_tlbrsave(val) gcsr_write(val, LOONGARCH_CSR_TLBRSAVE) argument
135 #define write_gcsr_tlbrelo0(val) gcsr_write(val, LOONGARCH_CSR_TLBRELO0) argument
137 #define write_gcsr_tlbrelo1(val) gcsr_write(val, LOONGARCH_CSR_TLBRELO1) argument
139 #define write_gcsr_tlbrehi(val) gcsr_write(val, LOONGARCH_CSR_TLBREHI) argument
141 #define write_gcsr_tlbrprmd(val) gcsr_write(val, LOONGARCH_CSR_TLBRPRMD) argument
144 #define write_gcsr_directwin0(val) gcsr_write(val, LOONGARCH_CSR_DMWIN0) argument
146 #define write_gcsr_directwin1(val) gcsr_write(val, LOONGARCH_CSR_DMWIN1) argument
148 #define write_gcsr_directwin2(val) gcsr_write(val, LOONGARCH_CSR_DMWIN2) argument
150 #define write_gcsr_directwin3(val) gcsr_write(val, LOONGARCH_CSR_DMWIN3) argument
154 #define write_csr_gtlbc(val) csr_write64(val, LOONGARCH_CSR_GTLBC) argument
157 #define write_csr_gcfg(val) csr_write64(val, LOONGARCH_CSR_GCFG) argument
159 #define write_csr_gstat(val) csr_write64(val, LOONGARCH_CSR_GSTAT) argument
161 #define write_csr_gintc(val) csr_write64(val, LOONGARCH_CSR_GINTC) argument
163 #define write_csr_gcntc(val) csr_write64(val, LOONGARCH_CSR_GCNTC) argument
174 #define set_gcsr_estat(val) \ argument
175 gcsr_xchg(val, val, LOONGARCH_CSR_ESTAT)
176 #define clear_gcsr_estat(val) \ argument
177 gcsr_xchg(~(val), val, LOONGARCH_CSR_ESTAT)
180 #define kvm_write_hw_gcsr(id, val) gcsr_write(val, id) argument
194 …atic __always_inline void kvm_write_sw_gcsr(struct loongarch_csrs *csr, int gid, unsigned long val) in kvm_write_sw_gcsr() argument
196 csr->csrs[gid] = val; in kvm_write_sw_gcsr()
200 int gid, unsigned long val) in kvm_set_sw_gcsr() argument
202 csr->csrs[gid] |= val; in kvm_set_sw_gcsr()
206 int gid, unsigned long mask, unsigned long val) in kvm_change_sw_gcsr() argument
211 csr->csrs[gid] |= val & _mask; in kvm_change_sw_gcsr()