Lines Matching refs:fixup
716 static struct fixup_entry fixup; variable
731 fixup.value = fixup.mask = 8; in test_basic_patching()
732 fixup.start_off = calc_offset(&fixup, ftr_fixup_test1 + 1); in test_basic_patching()
733 fixup.end_off = calc_offset(&fixup, ftr_fixup_test1 + 2); in test_basic_patching()
734 fixup.alt_start_off = fixup.alt_end_off = 0; in test_basic_patching()
740 patch_feature_section(8, &fixup); in test_basic_patching()
744 patch_feature_section(0, &fixup); in test_basic_patching()
750 patch_feature_section(~8, &fixup); in test_basic_patching()
763 fixup.value = fixup.mask = 0xF; in test_alternative_patching()
764 fixup.start_off = calc_offset(&fixup, ftr_fixup_test2 + 1); in test_alternative_patching()
765 fixup.end_off = calc_offset(&fixup, ftr_fixup_test2 + 2); in test_alternative_patching()
766 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test2_alt); in test_alternative_patching()
767 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test2_alt + 1); in test_alternative_patching()
773 patch_feature_section(0xF, &fixup); in test_alternative_patching()
777 patch_feature_section(0, &fixup); in test_alternative_patching()
783 patch_feature_section(~0xF, &fixup); in test_alternative_patching()
795 fixup.value = fixup.mask = 0xC; in test_alternative_case_too_big()
796 fixup.start_off = calc_offset(&fixup, ftr_fixup_test3 + 1); in test_alternative_case_too_big()
797 fixup.end_off = calc_offset(&fixup, ftr_fixup_test3 + 2); in test_alternative_case_too_big()
798 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test3_alt); in test_alternative_case_too_big()
799 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test3_alt + 2); in test_alternative_case_too_big()
805 check(patch_feature_section(0xF, &fixup) == 1); in test_alternative_case_too_big()
807 check(patch_feature_section(0, &fixup) == 1); in test_alternative_case_too_big()
809 check(patch_feature_section(~0xF, &fixup) == 1); in test_alternative_case_too_big()
825 fixup.value = fixup.mask = flag; in test_alternative_case_too_small()
826 fixup.start_off = calc_offset(&fixup, ftr_fixup_test4 + 1); in test_alternative_case_too_small()
827 fixup.end_off = calc_offset(&fixup, ftr_fixup_test4 + 5); in test_alternative_case_too_small()
828 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_test4_alt); in test_alternative_case_too_small()
829 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_test4_alt + 2); in test_alternative_case_too_small()
835 patch_feature_section(flag, &fixup); in test_alternative_case_too_small()
839 patch_feature_section(0, &fixup); in test_alternative_case_too_small()
845 patch_feature_section(~flag, &fixup); in test_alternative_case_too_small()
933 fixup.value = fixup.mask = 8; in test_prefix_patching()
934 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix1 + 1); in test_prefix_patching()
935 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix1 + 3); in test_prefix_patching()
936 fixup.alt_start_off = fixup.alt_end_off = 0; in test_prefix_patching()
941 patch_feature_section(0, &fixup); in test_prefix_patching()
955 fixup.value = fixup.mask = 8; in test_prefix_alt_patching()
956 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix2 + 1); in test_prefix_alt_patching()
957 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix2 + 3); in test_prefix_alt_patching()
958 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix2_alt); in test_prefix_alt_patching()
959 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix2_alt + 2); in test_prefix_alt_patching()
963 patch_feature_section(0, &fixup); in test_prefix_alt_patching()
977 fixup.value = fixup.mask = 8; in test_prefix_word_alt_patching()
978 fixup.start_off = calc_offset(&fixup, ftr_fixup_prefix3 + 1); in test_prefix_word_alt_patching()
979 fixup.end_off = calc_offset(&fixup, ftr_fixup_prefix3 + 4); in test_prefix_word_alt_patching()
980 fixup.alt_start_off = calc_offset(&fixup, ftr_fixup_prefix3_alt); in test_prefix_word_alt_patching()
981 fixup.alt_end_off = calc_offset(&fixup, ftr_fixup_prefix3_alt + 3); in test_prefix_word_alt_patching()
985 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()
987 patch_feature_section(0, &fixup); in test_prefix_word_alt_patching()