Lines Matching full:denominator
34 if (rescale->denominator == 1) in rescale_process_scale()
36 *val2 = rescale->denominator; in rescale_process_scale()
45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale()
53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale()
87 *val = div_s64_rem(tmp, abs(rescale->denominator), &rem); in rescale_process_scale()
90 tmp = div_s64(tmp, abs(rescale->denominator)); 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()
348 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props()
352 rescale->denominator *= gain_mult / factor; in rescale_current_sense_amplifier_props()
354 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props()
356 rescale->denominator /= factor; in rescale_current_sense_amplifier_props()
377 rescale->denominator = shunt / factor; in rescale_current_sense_shunt_props()
389 &rescale->denominator); in rescale_voltage_divider_props()
402 factor = gcd(rescale->numerator, rescale->denominator); in rescale_voltage_divider_props()
404 rescale->denominator /= factor; in rescale_voltage_divider_props()
443 rescale->denominator = tmp / factor; in rescale_temp_sense_rtd_props()
467 rescale->denominator = alpha * sense; in rescale_temp_transducer_props()
469 rescale->offset = div_s64((s64)offset * rescale->denominator, in rescale_temp_transducer_props()
553 rescale->denominator = 1; in rescale_probe()
560 if (!rescale->numerator || !rescale->denominator) { in rescale_probe()