Lines Matching full:csr
5 * Taken from Linux arch/riscv/include/asm/csr.h
64 #define xcsr(csr) #csr argument
66 #define csr_swap(csr, val) \ argument
69 __asm__ __volatile__ ("csrrw %0, " xcsr(csr) ", %1" \
75 #define csr_read(csr) \ argument
78 __asm__ __volatile__ ("csrr %0, " xcsr(csr) \
84 #define csr_write(csr, val) \ argument
87 __asm__ __volatile__ ("csrw " xcsr(csr) ", %0" \
92 #define csr_read_set(csr, val) \ argument
95 __asm__ __volatile__ ("csrrs %0, " xcsr(csr) ", %1" \
101 #define csr_set(csr, val) \ argument
104 __asm__ __volatile__ ("csrs " xcsr(csr) ", %0" \
109 #define csr_read_clear(csr, val) \ argument
112 __asm__ __volatile__ ("csrrc %0, " xcsr(csr) ", %1" \
118 #define csr_clear(csr, val) \ argument
121 __asm__ __volatile__ ("csrc " xcsr(csr) ", %0" \