Lines Matching refs:csr
253 #define csr_swap(csr, val) \ argument
256 __asm__ __volatile__ ("csrrw %0, " __ASM_STR(csr) ", %1"\
262 #define csr_read(csr) \ argument
265 __asm__ __volatile__ ("csrr %0, " __ASM_STR(csr) \
271 #define csr_write(csr, val) \ argument
274 __asm__ __volatile__ ("csrw " __ASM_STR(csr) ", %0" \
279 #define csr_read_set(csr, val) \ argument
282 __asm__ __volatile__ ("csrrs %0, " __ASM_STR(csr) ", %1"\
288 #define csr_set(csr, val) \ argument
291 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \
296 #define csr_read_clear(csr, val) \ argument
299 __asm__ __volatile__ ("csrrc %0, " __ASM_STR(csr) ", %1"\
305 #define csr_clear(csr, val) \ argument
308 __asm__ __volatile__ ("csrc " __ASM_STR(csr) ", %0" \