Lines Matching refs:csr
456 #define csr_swap(csr, val) \ argument
459 __asm__ __volatile__ ("csrrw %0, " __ASM_STR(csr) ", %1"\
465 #define csr_read(csr) \ argument
468 __asm__ __volatile__ ("csrr %0, " __ASM_STR(csr) \
474 #define csr_write(csr, val) \ argument
477 __asm__ __volatile__ ("csrw " __ASM_STR(csr) ", %0" \
482 #define csr_read_set(csr, val) \ argument
485 __asm__ __volatile__ ("csrrs %0, " __ASM_STR(csr) ", %1"\
491 #define csr_set(csr, val) \ argument
494 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \
499 #define csr_read_clear(csr, val) \ argument
502 __asm__ __volatile__ ("csrrc %0, " __ASM_STR(csr) ", %1"\
508 #define csr_clear(csr, val) \ argument
511 __asm__ __volatile__ ("csrc " __ASM_STR(csr) ", %0" \