Lines Matching refs:special_alt

709 			    struct special_alt *special_alt,  in handle_group_alt()  argument
719 if (insn->offset >= special_alt->orig_off + special_alt->orig_len) in handle_group_alt()
736 fake_jump->sec = special_alt->new_sec; in handle_group_alt()
743 if (!special_alt->new_len) { in handle_group_alt()
746 special_alt->orig_sec->name); in handle_group_alt()
757 if (insn->offset >= special_alt->new_off + special_alt->new_len) in handle_group_alt()
773 if (dest_off == special_alt->new_off + special_alt->new_len) { in handle_group_alt()
776 special_alt->orig_sec->name); in handle_group_alt()
791 special_alt->new_sec, special_alt->new_off); in handle_group_alt()
807 struct special_alt *special_alt, in handle_jump_alt() argument
834 struct special_alt *special_alt, *tmp; in add_special_section_alts() local
842 list_for_each_entry_safe(special_alt, tmp, &special_alts, list) { in add_special_section_alts()
844 orig_insn = find_insn(file, special_alt->orig_sec, in add_special_section_alts()
845 special_alt->orig_off); in add_special_section_alts()
848 special_alt->orig_sec, special_alt->orig_off); in add_special_section_alts()
854 if (!special_alt->group || special_alt->new_len) { in add_special_section_alts()
855 new_insn = find_insn(file, special_alt->new_sec, in add_special_section_alts()
856 special_alt->new_off); in add_special_section_alts()
859 special_alt->new_sec, in add_special_section_alts()
860 special_alt->new_off); in add_special_section_alts()
866 if (special_alt->group) { in add_special_section_alts()
867 ret = handle_group_alt(file, special_alt, orig_insn, in add_special_section_alts()
871 } else if (special_alt->jump_or_nop) { in add_special_section_alts()
872 ret = handle_jump_alt(file, special_alt, orig_insn, in add_special_section_alts()
886 alt->skip_orig = special_alt->skip_orig; in add_special_section_alts()
887 orig_insn->ignore_alts |= special_alt->skip_alt; in add_special_section_alts()
890 list_del(&special_alt->list); in add_special_section_alts()
891 free(special_alt); in add_special_section_alts()