Lines Matching refs:csr
185 #define csr_read(csr) \ argument
188 __asm__ volatile ("csrr %0, " STRINGIFY(csr) \
193 #define csr_write(csr, val) \ argument
196 __asm__ volatile ("csrw " STRINGIFY(csr) ", %0" \
202 #define csr_read_set(csr, val) \ argument
205 __asm__ volatile ("csrrs %0, " STRINGIFY(csr) ", %1" \
211 #define csr_set(csr, val) \ argument
214 __asm__ volatile ("csrs " STRINGIFY(csr) ", %0" \
219 #define csr_read_clear(csr, val) \ argument
222 __asm__ volatile ("csrrc %0, " STRINGIFY(csr) ", %1" \
228 #define csr_clear(csr, val) \ argument
231 __asm__ volatile ("csrc " STRINGIFY(csr) ", %0" \