Lines Matching refs:fixup
710 static struct fixup_entry fixup; variable
725 fixup.value = fixup.mask = 8; in test_basic_patching()
726 fixup.start_off = calc_offset(&fixup, ftr_fixup_test1 + 1); in test_basic_patching()
727 fixup.end_off = calc_offset(&fixup, ftr_fixup_test1 + 2); in test_basic_patching()
728 fixup.alt_start_off = fixup.alt_end_off = 0; in test_basic_patching()
734 patch_feature_section(8, &fixup); in test_basic_patching()
738 patch_feature_section(0, &fixup); in test_basic_patching()
744 patch_feature_section(~8, &fixup); in test_basic_patching()
757 fixup.value = fixup.mask = 0xF; in test_alternative_patching()
758 fixup.start_off = calc_offset(&fixup, ftr_fixup_test2 + 1); in test_alternative_patching()
759 fixup.end_off = calc_offset(&fixup, ftr_fixup_test2 + 2); in test_alternative_patching()
760 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test2_alt); in test_alternative_patching()
761 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test2_alt + 1); in test_alternative_patching()
767 patch_feature_section(0xF, &fixup); in test_alternative_patching()
771 patch_feature_section(0, &fixup); in test_alternative_patching()
777 patch_feature_section(~0xF, &fixup); in test_alternative_patching()
789 fixup.value = fixup.mask = 0xC; in test_alternative_case_too_big()
790 fixup.start_off = calc_offset(&fixup, ftr_fixup_test3 + 1); in test_alternative_case_too_big()
791 fixup.end_off = calc_offset(&fixup, ftr_fixup_test3 + 2); in test_alternative_case_too_big()
792 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test3_alt); in test_alternative_case_too_big()
793 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test3_alt + 2); in test_alternative_case_too_big()
799 check(patch_feature_section(0xF, &fixup) == 1); in test_alternative_case_too_big()
801 check(patch_feature_section(0, &fixup) == 1); in test_alternative_case_too_big()
803 check(patch_feature_section(~0xF, &fixup) == 1); in test_alternative_case_too_big()
819 fixup.value = fixup.mask = flag; in test_alternative_case_too_small()
820 fixup.start_off = calc_offset(&fixup, ftr_fixup_test4 + 1); in test_alternative_case_too_small()
821 fixup.end_off = calc_offset(&fixup, ftr_fixup_test4 + 5); in test_alternative_case_too_small()
822 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test4_alt); in test_alternative_case_too_small()
823 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test4_alt + 2); in test_alternative_case_too_small()
829 patch_feature_section(flag, &fixup); in test_alternative_case_too_small()
833 patch_feature_section(0, &fixup); in test_alternative_case_too_small()
839 patch_feature_section(~flag, &fixup); in test_alternative_case_too_small()
927 fixup.value = fixup.mask = 8; in test_prefix_patching()
928 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix1 + 1); in test_prefix_patching()
929 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix1 + 3); in test_prefix_patching()
930 fixup.alt_start_off = fixup.alt_end_off = 0; in test_prefix_patching()
935 patch_feature_section(0, &fixup); in test_prefix_patching()
949 fixup.value = fixup.mask = 8; in test_prefix_alt_patching()
950 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix2 + 1); in test_prefix_alt_patching()
951 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix2 + 3); in test_prefix_alt_patching()
952 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix2_alt); in test_prefix_alt_patching()
953 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix2_alt + 2); in test_prefix_alt_patching()
957 patch_feature_section(0, &fixup); in test_prefix_alt_patching()
971 fixup.value = fixup.mask = 8; in test_prefix_word_alt_patching()
972 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix3 + 1); in test_prefix_word_alt_patching()
973 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix3 + 4); in test_prefix_word_alt_patching()
974 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix3_alt); in test_prefix_word_alt_patching()
975 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix3_alt + 3); in test_prefix_word_alt_patching()
979 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()
981 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()