Lines Matching refs:fixup
160 static struct fixup_entry fixup; variable
175 fixup.value = fixup.mask = 8; in test_basic_patching()
176 fixup.start_off = calc_offset(&fixup, &ftr_fixup_test1 + 1); in test_basic_patching()
177 fixup.end_off = calc_offset(&fixup, &ftr_fixup_test1 + 2); in test_basic_patching()
178 fixup.alt_start_off = fixup.alt_end_off = 0; in test_basic_patching()
184 patch_feature_section(8, &fixup); in test_basic_patching()
188 patch_feature_section(0, &fixup); in test_basic_patching()
194 patch_feature_section(~8, &fixup); in test_basic_patching()
207 fixup.value = fixup.mask = 0xF; in test_alternative_patching()
208 fixup.start_off = calc_offset(&fixup, &ftr_fixup_test2 + 1); in test_alternative_patching()
209 fixup.end_off = calc_offset(&fixup, &ftr_fixup_test2 + 2); in test_alternative_patching()
210 fixup.alt_start_off = calc_offset(&fixup, &ftr_fixup_test2_alt); in test_alternative_patching()
211 fixup.alt_end_off = calc_offset(&fixup, &ftr_fixup_test2_alt + 1); in test_alternative_patching()
217 patch_feature_section(0xF, &fixup); in test_alternative_patching()
221 patch_feature_section(0, &fixup); in test_alternative_patching()
227 patch_feature_section(~0xF, &fixup); in test_alternative_patching()
239 fixup.value = fixup.mask = 0xC; in test_alternative_case_too_big()
240 fixup.start_off = calc_offset(&fixup, &ftr_fixup_test3 + 1); in test_alternative_case_too_big()
241 fixup.end_off = calc_offset(&fixup, &ftr_fixup_test3 + 2); in test_alternative_case_too_big()
242 fixup.alt_start_off = calc_offset(&fixup, &ftr_fixup_test3_alt); in test_alternative_case_too_big()
243 fixup.alt_end_off = calc_offset(&fixup, &ftr_fixup_test3_alt + 2); in test_alternative_case_too_big()
249 check(patch_feature_section(0xF, &fixup) == 1); in test_alternative_case_too_big()
251 check(patch_feature_section(0, &fixup) == 1); in test_alternative_case_too_big()
253 check(patch_feature_section(~0xF, &fixup) == 1); in test_alternative_case_too_big()
269 fixup.value = fixup.mask = flag; in test_alternative_case_too_small()
270 fixup.start_off = calc_offset(&fixup, &ftr_fixup_test4 + 1); in test_alternative_case_too_small()
271 fixup.end_off = calc_offset(&fixup, &ftr_fixup_test4 + 5); in test_alternative_case_too_small()
272 fixup.alt_start_off = calc_offset(&fixup, &ftr_fixup_test4_alt); in test_alternative_case_too_small()
273 fixup.alt_end_off = calc_offset(&fixup, &ftr_fixup_test4_alt + 2); in test_alternative_case_too_small()
279 patch_feature_section(flag, &fixup); in test_alternative_case_too_small()
283 patch_feature_section(0, &fixup); in test_alternative_case_too_small()
289 patch_feature_section(~flag, &fixup); in test_alternative_case_too_small()