Lines Matching refs:special_alt

1365 			    struct special_alt *special_alt,  in handle_group_alt()  argument
1379 orig_alt_group->cfi = calloc(special_alt->orig_len, in handle_group_alt()
1389 if (insn->offset >= special_alt->orig_off + special_alt->orig_len) in handle_group_alt()
1406 if (special_alt->new_len < special_alt->orig_len) { in handle_group_alt()
1423 nop->sec = special_alt->new_sec; in handle_group_alt()
1424 nop->offset = special_alt->new_off + special_alt->new_len; in handle_group_alt()
1425 nop->len = special_alt->orig_len - special_alt->new_len; in handle_group_alt()
1432 if (!special_alt->new_len) { in handle_group_alt()
1441 if (insn->offset >= special_alt->new_off + special_alt->new_len) in handle_group_alt()
1460 !arch_support_alt_relocation(special_alt, insn, alt_reloc)) { in handle_group_alt()
1474 if (dest_off == special_alt->new_off + special_alt->new_len) in handle_group_alt()
1486 special_alt->new_sec, special_alt->new_off); in handle_group_alt()
1506 struct special_alt *special_alt, in handle_jump_alt() argument
1533 struct special_alt *special_alt, *tmp; in add_special_section_alts() local
1541 list_for_each_entry_safe(special_alt, tmp, &special_alts, list) { in add_special_section_alts()
1543 orig_insn = find_insn(file, special_alt->orig_sec, in add_special_section_alts()
1544 special_alt->orig_off); in add_special_section_alts()
1547 special_alt->orig_sec, special_alt->orig_off); in add_special_section_alts()
1553 if (!special_alt->group || special_alt->new_len) { in add_special_section_alts()
1554 new_insn = find_insn(file, special_alt->new_sec, in add_special_section_alts()
1555 special_alt->new_off); in add_special_section_alts()
1558 special_alt->new_sec, in add_special_section_alts()
1559 special_alt->new_off); in add_special_section_alts()
1565 if (special_alt->group) { in add_special_section_alts()
1566 if (!special_alt->orig_len) { in add_special_section_alts()
1572 ret = handle_group_alt(file, special_alt, orig_insn, in add_special_section_alts()
1576 } else if (special_alt->jump_or_nop) { in add_special_section_alts()
1577 ret = handle_jump_alt(file, special_alt, orig_insn, in add_special_section_alts()
1591 alt->skip_orig = special_alt->skip_orig; in add_special_section_alts()
1592 orig_insn->ignore_alts |= special_alt->skip_alt; in add_special_section_alts()
1595 list_del(&special_alt->list); in add_special_section_alts()
1596 free(special_alt); in add_special_section_alts()