Lines Matching refs:_AC

13 #define SR_SIE		_AC(0x00000002, UL) /* Supervisor Interrupt Enable */
14 #define SR_MIE _AC(0x00000008, UL) /* Machine Interrupt Enable */
15 #define SR_SPIE _AC(0x00000020, UL) /* Previous Supervisor IE */
16 #define SR_MPIE _AC(0x00000080, UL) /* Previous Machine IE */
17 #define SR_SPP _AC(0x00000100, UL) /* Previously Supervisor */
18 #define SR_MPP _AC(0x00001800, UL) /* Previously Machine */
19 #define SR_SUM _AC(0x00040000, UL) /* Supervisor User Memory Access */
21 #define SR_FS _AC(0x00006000, UL) /* Floating-point Status */
22 #define SR_FS_OFF _AC(0x00000000, UL)
23 #define SR_FS_INITIAL _AC(0x00002000, UL)
24 #define SR_FS_CLEAN _AC(0x00004000, UL)
25 #define SR_FS_DIRTY _AC(0x00006000, UL)
27 #define SR_XS _AC(0x00018000, UL) /* Extension Status */
28 #define SR_XS_OFF _AC(0x00000000, UL)
29 #define SR_XS_INITIAL _AC(0x00008000, UL)
30 #define SR_XS_CLEAN _AC(0x00010000, UL)
31 #define SR_XS_DIRTY _AC(0x00018000, UL)
34 #define SR_SD _AC(0x80000000, UL) /* FS/XS dirty */
36 #define SR_SD _AC(0x8000000000000000, UL) /* FS/XS dirty */
40 #define SR_UXL _AC(0x300000000, UL) /* XLEN mask for U-mode */
41 #define SR_UXL_32 _AC(0x100000000, UL) /* XLEN = 32 for U-mode */
42 #define SR_UXL_64 _AC(0x200000000, UL) /* XLEN = 64 for U-mode */
48 #define SATP_PPN _AC(0x003FFFFF, UL)
49 #define SATP_MODE_32 _AC(0x80000000, UL)
52 #define SATP_ASID_MASK _AC(0x1FF, UL)
54 #define SATP_PPN _AC(0x00000FFFFFFFFFFF, UL)
55 #define SATP_MODE_39 _AC(0x8000000000000000, UL)
56 #define SATP_MODE_48 _AC(0x9000000000000000, UL)
57 #define SATP_MODE_57 _AC(0xa000000000000000, UL)
60 #define SATP_ASID_MASK _AC(0xFFFF, UL)
64 #define CAUSE_IRQ_FLAG (_AC(1, UL) << (__riscv_xlen - 1))
108 #define HSTATUS_VSXL _AC(0x300000000, UL)
111 #define HSTATUS_VTSR _AC(0x00400000, UL)
112 #define HSTATUS_VTW _AC(0x00200000, UL)
113 #define HSTATUS_VTVM _AC(0x00100000, UL)
114 #define HSTATUS_VGEIN _AC(0x0003f000, UL)
116 #define HSTATUS_HU _AC(0x00000200, UL)
117 #define HSTATUS_SPVP _AC(0x00000100, UL)
118 #define HSTATUS_SPV _AC(0x00000080, UL)
119 #define HSTATUS_GVA _AC(0x00000040, UL)
120 #define HSTATUS_VSBE _AC(0x00000020, UL)
123 #define HGATP_MODE_OFF _AC(0, UL)
124 #define HGATP_MODE_SV32X4 _AC(1, UL)
125 #define HGATP_MODE_SV39X4 _AC(8, UL)
126 #define HGATP_MODE_SV48X4 _AC(9, UL)
127 #define HGATP_MODE_SV57X4 _AC(10, UL)
131 #define HGATP32_VMID_MASK _AC(0x1FC00000, UL)
132 #define HGATP32_PPN _AC(0x003FFFFF, UL)
136 #define HGATP64_VMID_MASK _AC(0x03FFF00000000000, UL)
137 #define HGATP64_PPN _AC(0x00000FFFFFFFFFFF, UL)
155 #define VSIP_VALID_MASK ((_AC(1, UL) << IRQ_S_SOFT) | \
156 (_AC(1, UL) << IRQ_S_TIMER) | \
157 (_AC(1, UL) << IRQ_S_EXT))
314 # define SIP_LCOFIP (_AC(0x1, UL) << IRQ_PMU_OVF)
319 #define IE_SIE (_AC(0x1, UL) << RV_IRQ_SOFT)
320 #define IE_TIE (_AC(0x1, UL) << RV_IRQ_TIMER)
321 #define IE_EIE (_AC(0x1, UL) << RV_IRQ_EXT)