Lines Matching refs:fixup

705 static struct fixup_entry fixup;  variable
720 fixup.value = fixup.mask = 8; in test_basic_patching()
721 fixup.start_off = calc_offset(&fixup, ftr_fixup_test1 + 1); in test_basic_patching()
722 fixup.end_off = calc_offset(&fixup, ftr_fixup_test1 + 2); in test_basic_patching()
723 fixup.alt_start_off = fixup.alt_end_off = 0; in test_basic_patching()
729 patch_feature_section(8, &fixup); in test_basic_patching()
733 patch_feature_section(0, &fixup); in test_basic_patching()
739 patch_feature_section(~8, &fixup); in test_basic_patching()
752 fixup.value = fixup.mask = 0xF; in test_alternative_patching()
753 fixup.start_off = calc_offset(&fixup, ftr_fixup_test2 + 1); in test_alternative_patching()
754 fixup.end_off = calc_offset(&fixup, ftr_fixup_test2 + 2); in test_alternative_patching()
755 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test2_alt); in test_alternative_patching()
756 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test2_alt + 1); in test_alternative_patching()
762 patch_feature_section(0xF, &fixup); in test_alternative_patching()
766 patch_feature_section(0, &fixup); in test_alternative_patching()
772 patch_feature_section(~0xF, &fixup); in test_alternative_patching()
784 fixup.value = fixup.mask = 0xC; in test_alternative_case_too_big()
785 fixup.start_off = calc_offset(&fixup, ftr_fixup_test3 + 1); in test_alternative_case_too_big()
786 fixup.end_off = calc_offset(&fixup, ftr_fixup_test3 + 2); in test_alternative_case_too_big()
787 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test3_alt); in test_alternative_case_too_big()
788 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test3_alt + 2); in test_alternative_case_too_big()
794 check(patch_feature_section(0xF, &fixup) == 1); in test_alternative_case_too_big()
796 check(patch_feature_section(0, &fixup) == 1); in test_alternative_case_too_big()
798 check(patch_feature_section(~0xF, &fixup) == 1); in test_alternative_case_too_big()
814 fixup.value = fixup.mask = flag; in test_alternative_case_too_small()
815 fixup.start_off = calc_offset(&fixup, ftr_fixup_test4 + 1); in test_alternative_case_too_small()
816 fixup.end_off = calc_offset(&fixup, ftr_fixup_test4 + 5); in test_alternative_case_too_small()
817 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test4_alt); in test_alternative_case_too_small()
818 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test4_alt + 2); in test_alternative_case_too_small()
824 patch_feature_section(flag, &fixup); in test_alternative_case_too_small()
828 patch_feature_section(0, &fixup); in test_alternative_case_too_small()
834 patch_feature_section(~flag, &fixup); in test_alternative_case_too_small()
922 fixup.value = fixup.mask = 8; in test_prefix_patching()
923 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix1 + 1); in test_prefix_patching()
924 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix1 + 3); in test_prefix_patching()
925 fixup.alt_start_off = fixup.alt_end_off = 0; in test_prefix_patching()
930 patch_feature_section(0, &fixup); in test_prefix_patching()
944 fixup.value = fixup.mask = 8; in test_prefix_alt_patching()
945 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix2 + 1); in test_prefix_alt_patching()
946 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix2 + 3); in test_prefix_alt_patching()
947 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix2_alt); in test_prefix_alt_patching()
948 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix2_alt + 2); in test_prefix_alt_patching()
952 patch_feature_section(0, &fixup); in test_prefix_alt_patching()
966 fixup.value = fixup.mask = 8; in test_prefix_word_alt_patching()
967 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix3 + 1); in test_prefix_word_alt_patching()
968 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix3 + 4); in test_prefix_word_alt_patching()
969 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix3_alt); in test_prefix_word_alt_patching()
970 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix3_alt + 3); in test_prefix_word_alt_patching()
974 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()
976 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()