Lines Matching refs:fixup
636 static struct fixup_entry fixup; variable
651 fixup.value = fixup.mask = 8; in test_basic_patching()
652 fixup.start_off = calc_offset(&fixup, ftr_fixup_test1 + 1); in test_basic_patching()
653 fixup.end_off = calc_offset(&fixup, ftr_fixup_test1 + 2); in test_basic_patching()
654 fixup.alt_start_off = fixup.alt_end_off = 0; in test_basic_patching()
660 patch_feature_section(8, &fixup); in test_basic_patching()
664 patch_feature_section(0, &fixup); in test_basic_patching()
670 patch_feature_section(~8, &fixup); in test_basic_patching()
683 fixup.value = fixup.mask = 0xF; in test_alternative_patching()
684 fixup.start_off = calc_offset(&fixup, ftr_fixup_test2 + 1); in test_alternative_patching()
685 fixup.end_off = calc_offset(&fixup, ftr_fixup_test2 + 2); in test_alternative_patching()
686 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test2_alt); in test_alternative_patching()
687 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test2_alt + 1); in test_alternative_patching()
693 patch_feature_section(0xF, &fixup); in test_alternative_patching()
697 patch_feature_section(0, &fixup); in test_alternative_patching()
703 patch_feature_section(~0xF, &fixup); in test_alternative_patching()
715 fixup.value = fixup.mask = 0xC; in test_alternative_case_too_big()
716 fixup.start_off = calc_offset(&fixup, ftr_fixup_test3 + 1); in test_alternative_case_too_big()
717 fixup.end_off = calc_offset(&fixup, ftr_fixup_test3 + 2); in test_alternative_case_too_big()
718 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test3_alt); in test_alternative_case_too_big()
719 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test3_alt + 2); in test_alternative_case_too_big()
725 check(patch_feature_section(0xF, &fixup) == 1); in test_alternative_case_too_big()
727 check(patch_feature_section(0, &fixup) == 1); in test_alternative_case_too_big()
729 check(patch_feature_section(~0xF, &fixup) == 1); in test_alternative_case_too_big()
745 fixup.value = fixup.mask = flag; in test_alternative_case_too_small()
746 fixup.start_off = calc_offset(&fixup, ftr_fixup_test4 + 1); in test_alternative_case_too_small()
747 fixup.end_off = calc_offset(&fixup, ftr_fixup_test4 + 5); in test_alternative_case_too_small()
748 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test4_alt); in test_alternative_case_too_small()
749 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test4_alt + 2); in test_alternative_case_too_small()
755 patch_feature_section(flag, &fixup); in test_alternative_case_too_small()
759 patch_feature_section(0, &fixup); in test_alternative_case_too_small()
765 patch_feature_section(~flag, &fixup); in test_alternative_case_too_small()
853 fixup.value = fixup.mask = 8; in test_prefix_patching()
854 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix1 + 1); in test_prefix_patching()
855 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix1 + 3); in test_prefix_patching()
856 fixup.alt_start_off = fixup.alt_end_off = 0; in test_prefix_patching()
861 patch_feature_section(0, &fixup); in test_prefix_patching()
875 fixup.value = fixup.mask = 8; in test_prefix_alt_patching()
876 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix2 + 1); in test_prefix_alt_patching()
877 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix2 + 3); in test_prefix_alt_patching()
878 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix2_alt); in test_prefix_alt_patching()
879 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix2_alt + 2); in test_prefix_alt_patching()
883 patch_feature_section(0, &fixup); in test_prefix_alt_patching()
897 fixup.value = fixup.mask = 8; in test_prefix_word_alt_patching()
898 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix3 + 1); in test_prefix_word_alt_patching()
899 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix3 + 4); in test_prefix_word_alt_patching()
900 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix3_alt); in test_prefix_word_alt_patching()
901 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix3_alt + 3); in test_prefix_word_alt_patching()
905 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()
907 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()