Lines Matching full:numerator

33 		*val *= rescale->numerator;  in rescale_process_scale()
44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale()
54 tmp *= rescale->numerator; in rescale_process_scale()
86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale()
89 tmp = (s64)rem * mult + (s64)abs(*val2) * abs(rescale->numerator); in rescale_process_scale()
98 if (neg ^ ((rescale->numerator < 0) ^ (rescale->denominator < 0))) { in rescale_process_scale()
344 * numerator/denominator from overflowing. in rescale_current_sense_amplifier_props()
347 rescale->numerator = 1000000 / factor; in rescale_current_sense_amplifier_props()
350 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props()
351 rescale->numerator /= factor; in rescale_current_sense_amplifier_props()
355 rescale->numerator *= gain_div / factor; in rescale_current_sense_amplifier_props()
376 rescale->numerator = 1000000 / factor; in rescale_current_sense_shunt_props()
396 &rescale->numerator); in rescale_voltage_divider_props()
402 factor = gcd(rescale->numerator, rescale->denominator); in rescale_voltage_divider_props()
403 rescale->numerator /= factor; in rescale_voltage_divider_props()
442 rescale->numerator = 1000000 / factor; in rescale_temp_sense_rtd_props()
466 rescale->numerator = 1000000; in rescale_temp_transducer_props()
470 rescale->numerator); in rescale_temp_transducer_props()
552 rescale->numerator = 1; in rescale_probe()
560 if (!rescale->numerator || !rescale->denominator) { in rescale_probe()