Lines Matching full:ch0
582 * => (6.44 * ch1 / gain1 + 19.088 * ch0 / gain0 -
583 * 0.47808 * ch1 * ch1 * gain0 / gain1 / gain1 / ch0) /
589 * => (1.91232 * ch1 / gain1 + 30.5408 * ch0 / gain0 +
590 * [0 * ch1 * ch1 * gain0 / gain1 / gain1 / ch0] ) /
595 * A * ch1 * ch1 * gain0 / (ch0 * gain1 * gain1) +
597 * C * ch0 / gain0
644 static u64 bu27034_fixp_calc_t1_64bit(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1_64bit() argument
654 if (helper > ch0) { in bu27034_fixp_calc_t1_64bit()
657 return gain_mul_div_helper(helper64, gain0, ch0); in bu27034_fixp_calc_t1_64bit()
660 do_div(helper64, ch0); in bu27034_fixp_calc_t1_64bit()
666 static u64 bu27034_fixp_calc_t1(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1() argument
683 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1()
686 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1()
688 return tmp / (gain1 * gain1) / ch0; in bu27034_fixp_calc_t1()
707 static int bu27034_fixp_calc_lx(unsigned int ch0, unsigned int ch1, in bu27034_fixp_calc_lx() argument
731 terms[0] = bu27034_fixp_calc_t1(c->A, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_lx()
733 terms[2] = bu27034_fixp_calc_t23(c->C, ch0, gain0); in bu27034_fixp_calc_lx()
899 u16 ch0, ch1; in bu27034_calc_mlux() local
910 ch0 = max_t(u16, 1, le16_to_cpu(res[0])); in bu27034_calc_mlux()
931 unsigned int div = (unsigned int)ch0 * gain1; in bu27034_calc_mlux()
936 d1_d0_ratio_scaled /= ch0 * gain1; in bu27034_calc_mlux()
940 ret = bu27034_fixp_calc_lx(ch0, ch1, gain0, gain1, meastime, 0); in bu27034_calc_mlux()
942 ret = bu27034_fixp_calc_lx(ch0, ch1, gain0, gain1, meastime, 1); in bu27034_calc_mlux()
1206 * 55mS data ch0 = 0xffff ch1 = 0xffff fits in 26 bits in bu27034_buffer_thread()