Lines Matching refs:insnbuf
210 u8 insnbuf[MAX_PATCH_LEN]; in apply_alternatives() local
216 BUG_ON(a->instrlen > sizeof(insnbuf)); in apply_alternatives()
228 memcpy(insnbuf, a->replacement, a->replacementlen); in apply_alternatives()
229 if (*insnbuf == 0xe8 && a->replacementlen == 5) in apply_alternatives()
230 *(s32 *)(insnbuf + 1) += a->replacement - a->instr; in apply_alternatives()
231 add_nops(insnbuf + a->replacementlen, in apply_alternatives()
233 text_poke_early(instr, insnbuf, a->instrlen); in apply_alternatives()
431 char insnbuf[MAX_PATCH_LEN]; in apply_paravirt() local
441 memcpy(insnbuf, p->instr, p->len); in apply_paravirt()
442 used = pv_init_ops.patch(p->instrtype, p->clobbers, insnbuf, in apply_paravirt()
448 add_nops(insnbuf + used, p->len - used); in apply_paravirt()
449 text_poke_early(p->instr, insnbuf, p->len); in apply_paravirt()