Searched refs:RV_X (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/arch/riscv/kernel/ |
D | traps_misaligned.c | 102 #define RV_X(x, s, n) (((x) >> (s)) & ((1 << (n)) - 1)) macro 103 #define RVC_LW_IMM(x) ((RV_X(x, 6, 1) << 2) | \ 104 (RV_X(x, 10, 3) << 3) | \ 105 (RV_X(x, 5, 1) << 6)) 106 #define RVC_LD_IMM(x) ((RV_X(x, 10, 3) << 3) | \ 107 (RV_X(x, 5, 2) << 6)) 108 #define RVC_LWSP_IMM(x) ((RV_X(x, 4, 3) << 2) | \ 109 (RV_X(x, 12, 1) << 5) | \ 110 (RV_X(x, 2, 2) << 6)) 111 #define RVC_LDSP_IMM(x) ((RV_X(x, 5, 2) << 3) | \ [all …]
|
/Linux-v5.10/arch/riscv/include/asm/ |
D | parse_asm.h | 180 #define RV_X(X, s, mask) (((X) >> (s)) & (mask)) macro 181 #define RVC_X(X, s, mask) RV_X(X, s, mask) 185 (RV_X(x_, J_IMM_10_1_OPOFF, J_IMM_10_1_MASK) << J_IMM_10_1_OFF) | \ 186 (RV_X(x_, J_IMM_11_OPOFF, J_IMM_11_MASK) << J_IMM_11_OFF) | \ 187 (RV_X(x_, J_IMM_19_12_OPOFF, J_IMM_19_12_MASK) << J_IMM_19_12_OFF) | \ 192 (RV_X(x_, I_IMM_11_0_OPOFF, I_IMM_11_0_MASK)) | \ 197 (RV_X(x_, B_IMM_4_1_OPOFF, B_IMM_4_1_MASK) << B_IMM_4_1_OFF) | \ 198 (RV_X(x_, B_IMM_10_5_OPOFF, B_IMM_10_5_MASK) << B_IMM_10_5_OFF) | \ 199 (RV_X(x_, B_IMM_11_OPOFF, B_IMM_11_MASK) << B_IMM_11_OFF) | \
|