Lines Matching refs:imm_hi
319 static inline u16 rv_cl_insn(u8 funct3, u32 imm_hi, u8 rs1, u32 imm_lo, u8 rd, in rv_cl_insn() argument
322 return (funct3 << 13) | (imm_hi << 10) | ((rs1 & 0x7) << 7) | in rv_cl_insn()
326 static inline u16 rv_cs_insn(u8 funct3, u32 imm_hi, u8 rs1, u32 imm_lo, u8 rs2, in rv_cs_insn() argument
329 return (funct3 << 13) | (imm_hi << 10) | ((rs1 & 0x7) << 7) | in rv_cs_insn()
629 u32 imm_hi, imm_lo; in rvc_lw() local
631 imm_hi = (imm7 & 0x38) >> 3; in rvc_lw()
633 return rv_cl_insn(0x2, imm_hi, rs1, imm_lo, rd, 0x0); in rvc_lw()
638 u32 imm_hi, imm_lo; in rvc_sw() local
640 imm_hi = (imm7 & 0x38) >> 3; in rvc_sw()
642 return rv_cs_insn(0x6, imm_hi, rs1, imm_lo, rs2, 0x0); in rvc_sw()
916 u32 imm_hi, imm_lo; in rvc_ld() local
918 imm_hi = (imm8 & 0x38) >> 3; in rvc_ld()
920 return rv_cl_insn(0x3, imm_hi, rs1, imm_lo, rd, 0x0); in rvc_ld()
925 u32 imm_hi, imm_lo; in rvc_sd() local
927 imm_hi = (imm8 & 0x38) >> 3; in rvc_sd()
929 return rv_cs_insn(0x7, imm_hi, rs1, imm_lo, rs2, 0x0); in rvc_sd()