Lines Matching refs:fixup

589 static struct fixup_entry fixup;  variable
604 fixup.value = fixup.mask = 8; in test_basic_patching()
605 fixup.start_off = calc_offset(&fixup, ftr_fixup_test1 + 1); in test_basic_patching()
606 fixup.end_off = calc_offset(&fixup, ftr_fixup_test1 + 2); in test_basic_patching()
607 fixup.alt_start_off = fixup.alt_end_off = 0; in test_basic_patching()
613 patch_feature_section(8, &fixup); in test_basic_patching()
617 patch_feature_section(0, &fixup); in test_basic_patching()
623 patch_feature_section(~8, &fixup); in test_basic_patching()
636 fixup.value = fixup.mask = 0xF; in test_alternative_patching()
637 fixup.start_off = calc_offset(&fixup, ftr_fixup_test2 + 1); in test_alternative_patching()
638 fixup.end_off = calc_offset(&fixup, ftr_fixup_test2 + 2); in test_alternative_patching()
639 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test2_alt); in test_alternative_patching()
640 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test2_alt + 1); in test_alternative_patching()
646 patch_feature_section(0xF, &fixup); in test_alternative_patching()
650 patch_feature_section(0, &fixup); in test_alternative_patching()
656 patch_feature_section(~0xF, &fixup); in test_alternative_patching()
668 fixup.value = fixup.mask = 0xC; in test_alternative_case_too_big()
669 fixup.start_off = calc_offset(&fixup, ftr_fixup_test3 + 1); in test_alternative_case_too_big()
670 fixup.end_off = calc_offset(&fixup, ftr_fixup_test3 + 2); in test_alternative_case_too_big()
671 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test3_alt); in test_alternative_case_too_big()
672 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test3_alt + 2); in test_alternative_case_too_big()
678 check(patch_feature_section(0xF, &fixup) == 1); in test_alternative_case_too_big()
680 check(patch_feature_section(0, &fixup) == 1); in test_alternative_case_too_big()
682 check(patch_feature_section(~0xF, &fixup) == 1); in test_alternative_case_too_big()
698 fixup.value = fixup.mask = flag; in test_alternative_case_too_small()
699 fixup.start_off = calc_offset(&fixup, ftr_fixup_test4 + 1); in test_alternative_case_too_small()
700 fixup.end_off = calc_offset(&fixup, ftr_fixup_test4 + 5); in test_alternative_case_too_small()
701 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test4_alt); in test_alternative_case_too_small()
702 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test4_alt + 2); in test_alternative_case_too_small()
708 patch_feature_section(flag, &fixup); in test_alternative_case_too_small()
712 patch_feature_section(0, &fixup); in test_alternative_case_too_small()
718 patch_feature_section(~flag, &fixup); in test_alternative_case_too_small()
806 fixup.value = fixup.mask = 8; in test_prefix_patching()
807 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix1 + 1); in test_prefix_patching()
808 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix1 + 3); in test_prefix_patching()
809 fixup.alt_start_off = fixup.alt_end_off = 0; in test_prefix_patching()
814 patch_feature_section(0, &fixup); in test_prefix_patching()
828 fixup.value = fixup.mask = 8; in test_prefix_alt_patching()
829 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix2 + 1); in test_prefix_alt_patching()
830 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix2 + 3); in test_prefix_alt_patching()
831 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix2_alt); in test_prefix_alt_patching()
832 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix2_alt + 2); in test_prefix_alt_patching()
836 patch_feature_section(0, &fixup); in test_prefix_alt_patching()
850 fixup.value = fixup.mask = 8; in test_prefix_word_alt_patching()
851 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix3 + 1); in test_prefix_word_alt_patching()
852 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix3 + 4); in test_prefix_word_alt_patching()
853 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix3_alt); in test_prefix_word_alt_patching()
854 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix3_alt + 3); in test_prefix_word_alt_patching()
858 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()
860 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()