Lines Matching refs:imm
76 s32 imm; in riscv_alternative_fix_auipc_jalr() local
79 imm = riscv_insn_extract_utype_itype_imm(auipc_insn, jalr_insn); in riscv_alternative_fix_auipc_jalr()
80 imm -= patch_offset; in riscv_alternative_fix_auipc_jalr()
83 riscv_insn_insert_utype_itype_imm(&call[0], &call[1], imm); in riscv_alternative_fix_auipc_jalr()
91 s32 imm; in riscv_alternative_fix_jal() local
94 imm = riscv_insn_extract_jtype_imm(jal_insn); in riscv_alternative_fix_jal()
95 imm -= patch_offset; in riscv_alternative_fix_jal()
98 riscv_insn_insert_jtype_imm(&jal_insn, imm); in riscv_alternative_fix_jal()
134 s32 imm = riscv_insn_extract_jtype_imm(insn); in riscv_alternative_fix_offsets() local
137 if ((alt_ptr + i * sizeof(u32) + imm) >= alt_ptr && in riscv_alternative_fix_offsets()
138 (alt_ptr + i * sizeof(u32) + imm) < (alt_ptr + len)) in riscv_alternative_fix_offsets()