Lines Matching refs:fcur
35 static struct ppc_inst *calc_addr(struct fixup_entry *fcur, long offset) in calc_addr() argument
42 return (struct ppc_inst *)((unsigned long)fcur + offset); in calc_addr()
69 static int patch_feature_section(unsigned long value, struct fixup_entry *fcur) in patch_feature_section() argument
73 start = calc_addr(fcur, fcur->start_off); in patch_feature_section()
74 end = calc_addr(fcur, fcur->end_off); in patch_feature_section()
75 alt_start = calc_addr(fcur, fcur->alt_start_off); in patch_feature_section()
76 alt_end = calc_addr(fcur, fcur->alt_end_off); in patch_feature_section()
81 if ((value & fcur->mask) == fcur->value) in patch_feature_section()
102 struct fixup_entry *fcur, *fend; in do_feature_fixups() local
104 fcur = fixup_start; in do_feature_fixups()
107 for (; fcur < fend; fcur++) { in do_feature_fixups()
108 if (patch_feature_section(value, fcur)) { in do_feature_fixups()
112 calc_addr(fcur, fcur->start_off), in do_feature_fixups()
113 calc_addr(fcur, fcur->end_off), in do_feature_fixups()
114 calc_addr(fcur, fcur->alt_start_off), in do_feature_fixups()
115 calc_addr(fcur, fcur->alt_end_off)); in do_feature_fixups()