Lines Matching refs:instrlen
318 static void __apply_relocation(u8 *buf, const u8 * const instr, size_t instrlen, u8 *repl, size_t r… in __apply_relocation() argument
320 for (int next, i = 0; i < instrlen; i = next) { in __apply_relocation()
372 void apply_relocation(u8 *buf, const u8 * const instr, size_t instrlen, u8 *repl, size_t repl_len) in apply_relocation() argument
374 __apply_relocation(buf, instr, instrlen, repl, repl_len); in apply_relocation()
375 optimize_nops(instr, buf, instrlen); in apply_relocation()
405 if (a->instrlen != 6 || in alt_replace_call()
417 target = *(void **)(instr + a->instrlen + disp); in alt_replace_call()
488 u8 len = max(a->instrlen, b->instrlen); in apply_alternatives()
489 a->instrlen = b->instrlen = len; in apply_alternatives()
494 BUG_ON(a->instrlen > sizeof(insn_buff)); in apply_alternatives()
504 memcpy(insn_buff, instr, a->instrlen); in apply_alternatives()
505 optimize_nops(instr, insn_buff, a->instrlen); in apply_alternatives()
506 text_poke_early(instr, insn_buff, a->instrlen); in apply_alternatives()
513 instr, instr, a->instrlen, in apply_alternatives()
525 for (; insn_buff_sz < a->instrlen; insn_buff_sz++) in apply_alternatives()
528 apply_relocation(insn_buff, instr, a->instrlen, replacement, a->replacementlen); in apply_alternatives()
530 DUMP_BYTES(ALT, instr, a->instrlen, "%px: old_insn: ", instr); in apply_alternatives()