Lines Matching full:repl

312  * @replacement/@repl: pointer to the opcodes which are replacing @instr, located
467 static void __apply_relocation(u8 *buf, const u8 * const instr, size_t instrlen, u8 *repl, size_t r… in __apply_relocation() argument
488 if (need_reloc(next + insn.immediate.value, repl, repl_len)) { in __apply_relocation()
491 repl - instr); in __apply_relocation()
499 imm += repl - instr; in __apply_relocation()
512 if (need_reloc(next + insn.displacement.value, repl, repl_len)) { in __apply_relocation()
515 repl - instr); in __apply_relocation()
521 void text_poke_apply_relocation(u8 *buf, const u8 * const instr, size_t instrlen, u8 *repl, size_t … in text_poke_apply_relocation() argument
523 __apply_relocation(buf, instr, instrlen, repl, repl_len); in text_poke_apply_relocation()
634 u8 *repl; in prep_patch_site() local
642 repl = (u8 *)&alt->repl_offset + alt->repl_offset; in prep_patch_site()
643 DPRINTK(ALT, "feat: %d*32+%d, old: (%pS (%px) len: %d), repl: (%px, len: %d) flags: 0x%x", in prep_patch_site()
646 repl, alt->replacementlen, alt->flags); in prep_patch_site()
648 memcpy(ps->buff, repl, alt->replacementlen); in prep_patch_site()
657 __apply_relocation(ps->buff, ps->instr, ps->len, repl, alt->replacementlen); in prep_patch_site()
660 DUMP_BYTES(ALT, repl, alt->replacementlen, "%px: rpl_insn: ", repl); in prep_patch_site()
1020 DUMP_BYTES(RETPOLINE, ((u8*)bytes), len, "%px: repl: ", addr); in apply_retpolines()
1107 DUMP_BYTES(RET, ((u8*)bytes), len, "%px: repl: ", addr); in apply_returns()
1166 DUMP_BYTES(ENDBR, ((u8*)&poison), 4, "%px: repl: ", addr); in poison_endbr()