Lines Matching refs:alt
49 static bool branch_insn_requires_update(const struct alt_instr *alt, in branch_insn_requires_update() argument
57 replptr = (unsigned long)ALT_REPL_PTR(alt); in branch_insn_requires_update()
58 if ( pc >= replptr && pc <= (replptr + alt->alt_len) ) in branch_insn_requires_update()
68 static u32 get_alt_insn(const struct alt_instr *alt, in get_alt_insn() argument
87 if ( branch_insn_requires_update(alt, target) ) in get_alt_insn()
103 const struct alt_instr *alt; in __apply_alternatives() local
110 for ( alt = region->begin; alt < region->end; alt++ ) in __apply_alternatives()
115 if ( !cpus_have_cap(alt->cpufeature) ) in __apply_alternatives()
118 BUG_ON(alt->alt_len != alt->orig_len); in __apply_alternatives()
120 origptr = ALT_ORIG_PTR(alt); in __apply_alternatives()
121 replptr = ALT_REPL_PTR(alt); in __apply_alternatives()
123 nr_inst = alt->alt_len / sizeof(insn); in __apply_alternatives()
127 insn = get_alt_insn(alt, origptr + i, replptr + i); in __apply_alternatives()