Lines Matching full:denominator
33 s32 denominator; member
53 *val2 *= rescale->denominator; in rescale_read_raw()
57 if (rescale->denominator == 1) in rescale_read_raw()
59 *val2 = rescale->denominator; in rescale_read_raw()
63 do_div(tmp, rescale->denominator); in rescale_read_raw()
170 * numerator/denominator from overflowing. in rescale_current_sense_amplifier_props()
174 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props()
178 rescale->denominator *= gain_mult / factor; in rescale_current_sense_amplifier_props()
180 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props()
182 rescale->denominator /= factor; in rescale_current_sense_amplifier_props()
203 rescale->denominator = shunt / factor; in rescale_current_sense_shunt_props()
215 &rescale->denominator); in rescale_voltage_divider_props()
228 factor = gcd(rescale->numerator, rescale->denominator); in rescale_voltage_divider_props()
230 rescale->denominator /= factor; in rescale_voltage_divider_props()
299 rescale->denominator = 1; in rescale_probe()
305 if (!rescale->numerator || !rescale->denominator) { in rescale_probe()