Lines Matching refs:imm_hi
307 static inline u16 rv_cl_insn(u8 funct3, u32 imm_hi, u8 rs1, u32 imm_lo, u8 rd, in rv_cl_insn() argument
310 return (funct3 << 13) | (imm_hi << 10) | ((rs1 & 0x7) << 7) | in rv_cl_insn()
314 static inline u16 rv_cs_insn(u8 funct3, u32 imm_hi, u8 rs1, u32 imm_lo, u8 rs2, in rv_cs_insn() argument
317 return (funct3 << 13) | (imm_hi << 10) | ((rs1 & 0x7) << 7) | in rv_cs_insn()
617 u32 imm_hi, imm_lo; in rvc_lw() local
619 imm_hi = (imm7 & 0x38) >> 3; in rvc_lw()
621 return rv_cl_insn(0x2, imm_hi, rs1, imm_lo, rd, 0x0); in rvc_lw()
626 u32 imm_hi, imm_lo; in rvc_sw() local
628 imm_hi = (imm7 & 0x38) >> 3; in rvc_sw()
630 return rv_cs_insn(0x6, imm_hi, rs1, imm_lo, rs2, 0x0); in rvc_sw()
866 u32 imm_hi, imm_lo; in rvc_ld() local
868 imm_hi = (imm8 & 0x38) >> 3; in rvc_ld()
870 return rv_cl_insn(0x3, imm_hi, rs1, imm_lo, rd, 0x0); in rvc_ld()
875 u32 imm_hi, imm_lo; in rvc_sd() local
877 imm_hi = (imm8 & 0x38) >> 3; in rvc_sd()
879 return rv_cs_insn(0x7, imm_hi, rs1, imm_lo, rs2, 0x0); in rvc_sd()