Lines Matching refs:fixup

687 static struct fixup_entry fixup;  variable
702 fixup.value = fixup.mask = 8; in test_basic_patching()
703 fixup.start_off = calc_offset(&fixup, ftr_fixup_test1 + 1); in test_basic_patching()
704 fixup.end_off = calc_offset(&fixup, ftr_fixup_test1 + 2); in test_basic_patching()
705 fixup.alt_start_off = fixup.alt_end_off = 0; in test_basic_patching()
711 patch_feature_section(8, &fixup); in test_basic_patching()
715 patch_feature_section(0, &fixup); in test_basic_patching()
721 patch_feature_section(~8, &fixup); in test_basic_patching()
734 fixup.value = fixup.mask = 0xF; in test_alternative_patching()
735 fixup.start_off = calc_offset(&fixup, ftr_fixup_test2 + 1); in test_alternative_patching()
736 fixup.end_off = calc_offset(&fixup, ftr_fixup_test2 + 2); in test_alternative_patching()
737 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test2_alt); in test_alternative_patching()
738 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test2_alt + 1); in test_alternative_patching()
744 patch_feature_section(0xF, &fixup); in test_alternative_patching()
748 patch_feature_section(0, &fixup); in test_alternative_patching()
754 patch_feature_section(~0xF, &fixup); in test_alternative_patching()
766 fixup.value = fixup.mask = 0xC; in test_alternative_case_too_big()
767 fixup.start_off = calc_offset(&fixup, ftr_fixup_test3 + 1); in test_alternative_case_too_big()
768 fixup.end_off = calc_offset(&fixup, ftr_fixup_test3 + 2); in test_alternative_case_too_big()
769 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test3_alt); in test_alternative_case_too_big()
770 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test3_alt + 2); in test_alternative_case_too_big()
776 check(patch_feature_section(0xF, &fixup) == 1); in test_alternative_case_too_big()
778 check(patch_feature_section(0, &fixup) == 1); in test_alternative_case_too_big()
780 check(patch_feature_section(~0xF, &fixup) == 1); in test_alternative_case_too_big()
796 fixup.value = fixup.mask = flag; in test_alternative_case_too_small()
797 fixup.start_off = calc_offset(&fixup, ftr_fixup_test4 + 1); in test_alternative_case_too_small()
798 fixup.end_off = calc_offset(&fixup, ftr_fixup_test4 + 5); in test_alternative_case_too_small()
799 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test4_alt); in test_alternative_case_too_small()
800 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test4_alt + 2); in test_alternative_case_too_small()
806 patch_feature_section(flag, &fixup); in test_alternative_case_too_small()
810 patch_feature_section(0, &fixup); in test_alternative_case_too_small()
816 patch_feature_section(~flag, &fixup); in test_alternative_case_too_small()
904 fixup.value = fixup.mask = 8; in test_prefix_patching()
905 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix1 + 1); in test_prefix_patching()
906 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix1 + 3); in test_prefix_patching()
907 fixup.alt_start_off = fixup.alt_end_off = 0; in test_prefix_patching()
912 patch_feature_section(0, &fixup); in test_prefix_patching()
926 fixup.value = fixup.mask = 8; in test_prefix_alt_patching()
927 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix2 + 1); in test_prefix_alt_patching()
928 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix2 + 3); in test_prefix_alt_patching()
929 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix2_alt); in test_prefix_alt_patching()
930 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix2_alt + 2); in test_prefix_alt_patching()
934 patch_feature_section(0, &fixup); in test_prefix_alt_patching()
948 fixup.value = fixup.mask = 8; in test_prefix_word_alt_patching()
949 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix3 + 1); in test_prefix_word_alt_patching()
950 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix3 + 4); in test_prefix_word_alt_patching()
951 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix3_alt); in test_prefix_word_alt_patching()
952 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix3_alt + 3); in test_prefix_word_alt_patching()
956 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()
958 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()