Lines Matching refs:a
411 struct alt_instr *a; in apply_alternatives() local
436 for (a = start; a < end; a++) { in apply_alternatives()
439 instr = (u8 *)&a->instr_offset + a->instr_offset; in apply_alternatives()
440 replacement = (u8 *)&a->repl_offset + a->repl_offset; in apply_alternatives()
441 BUG_ON(a->instrlen > sizeof(insn_buff)); in apply_alternatives()
442 BUG_ON(a->cpuid >= (NCAPINTS + NBUGINTS) * 32); in apply_alternatives()
450 if (!boot_cpu_has(a->cpuid) == !(a->flags & ALT_FLAG_NOT)) { in apply_alternatives()
451 optimize_nops_inplace(instr, a->instrlen); in apply_alternatives()
456 (a->flags & ALT_FLAG_NOT) ? "!" : "", in apply_alternatives()
457 a->cpuid >> 5, in apply_alternatives()
458 a->cpuid & 0x1f, in apply_alternatives()
459 instr, instr, a->instrlen, in apply_alternatives()
460 replacement, a->replacementlen); in apply_alternatives()
462 memcpy(insn_buff, replacement, a->replacementlen); in apply_alternatives()
463 insn_buff_sz = a->replacementlen; in apply_alternatives()
465 for (; insn_buff_sz < a->instrlen; insn_buff_sz++) in apply_alternatives()
468 apply_relocation(insn_buff, a->instrlen, instr, replacement, a->replacementlen); in apply_alternatives()
470 DUMP_BYTES(ALT, instr, a->instrlen, "%px: old_insn: ", instr); in apply_alternatives()
471 DUMP_BYTES(ALT, replacement, a->replacementlen, "%px: rpl_insn: ", replacement); in apply_alternatives()
1538 : __ASM_SEL_RAW(a, D) (&val) in int3_selftest()