Lines Matching refs:base

37 #define	CSR_XR(base, off) \  argument
38 (*(volatile uint64_t *)((base) + ((off))))
40 #define CSRA_XR(base, off, index) \ argument
41 (*(volatile uint64_t *)((base) + ((off) + ((index) * 8))))
43 #define CSR_XS(base, off, val) \ argument
44 ((*(volatile uint64_t *)((base) + ((off)))) = (val))
46 #define CSRA_XS(base, off, index, val) \ argument
47 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) = (val))
50 #define CSR_FR(base, off, bit) \ argument
51 (((*(volatile uint64_t *) ((base) + ((off)))) >> \
54 #define CSRA_FR(base, off, index, bit) \ argument
55 (((*(volatile uint64_t *) ((base) + ((off) + ((index) * 8)))) >> \
58 #define CSR_FS(base, off, bit, val) \ argument
59 ((*(volatile uint64_t *) ((base) + ((off)))) = \
60 (((*(volatile uint64_t *) ((base) + ((off)))) & \
64 #define CSRA_FS(base, off, index, bit, val) \ argument
65 ((*(volatile uint64_t *) ((base) + ((off) + ((index) * 8)))) = \
66 (((*(volatile uint64_t *) ((base) + ((off) + ((index) * 8)))) & \
70 #define CSR_FC(base, off, bit) \ argument
71 ((*(volatile uint64_t *) ((base) + ((off)))) = \
72 ((*(volatile uint64_t *)((base) + ((off)))) & \
75 #define CSRA_FC(base, off, index, bit) \ argument
76 ((*(volatile uint64_t *) ((base) + ((off) + ((index) * 8)))) = \
77 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) & \
81 #define CSR_BR(base, off, bit) \ argument
82 (((*(volatile uint64_t *)((base) + ((off)))) >> \
85 #define CSRA_BR(base, off, index, bit) \ argument
86 (((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) >> \
89 #define CSR_BS(base, off, bit) \ argument
90 ((*(volatile uint64_t *)((base) + ((off)))) = \
91 ((*(volatile uint64_t *)((base) + ((off)))) | \
94 #define CSRA_BS(base, off, index, bit) \ argument
95 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) = \
96 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) | \
99 #define CSR_BC(base, off, bit) \ argument
100 ((*(volatile uint64_t *)((base) + ((off)))) = \
101 ((*(volatile uint64_t *)((base) + ((off)))) & \
104 #define CSRA_BC(base, off, index, bit) \ argument
105 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) = \
106 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) & \