Lines Matching full:numerator
32 s32 numerator; member
52 *val *= rescale->numerator; in rescale_read_raw()
56 *val *= rescale->numerator; in rescale_read_raw()
64 tmp *= rescale->numerator; in rescale_read_raw()
170 * numerator/denominator from overflowing. in rescale_current_sense_amplifier_props()
173 rescale->numerator = 1000000 / factor; in rescale_current_sense_amplifier_props()
176 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props()
177 rescale->numerator /= factor; in rescale_current_sense_amplifier_props()
181 rescale->numerator *= gain_div / factor; in rescale_current_sense_amplifier_props()
202 rescale->numerator = 1000000 / factor; in rescale_current_sense_shunt_props()
222 &rescale->numerator); in rescale_voltage_divider_props()
228 factor = gcd(rescale->numerator, rescale->denominator); in rescale_voltage_divider_props()
229 rescale->numerator /= factor; in rescale_voltage_divider_props()
298 rescale->numerator = 1; in rescale_probe()
305 if (!rescale->numerator || !rescale->denominator) { in rescale_probe()