Lines Matching refs:csr
149 #define csr_swap(csr, val) \ argument
152 __asm__ __volatile__ ("csrrw %0, " __ASM_STR(csr) ", %1"\
158 #define csr_read(csr) \ argument
161 __asm__ __volatile__ ("csrr %0, " __ASM_STR(csr) \
167 #define csr_write(csr, val) \ argument
170 __asm__ __volatile__ ("csrw " __ASM_STR(csr) ", %0" \
175 #define csr_read_set(csr, val) \ argument
178 __asm__ __volatile__ ("csrrs %0, " __ASM_STR(csr) ", %1"\
184 #define csr_set(csr, val) \ argument
187 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \
192 #define csr_read_clear(csr, val) \ argument
195 __asm__ __volatile__ ("csrrc %0, " __ASM_STR(csr) ", %1"\
201 #define csr_clear(csr, val) \ argument
204 __asm__ __volatile__ ("csrc " __ASM_STR(csr) ", %0" \