Lines Matching refs:t_calc
564 struct rk3x_i2c_calced_timings *t_calc) in rk3x_i2c_v0_calc_timings() argument
655 t_calc->div_low = min_low_div; in rk3x_i2c_v0_calc_timings()
656 t_calc->div_high = min_high_div; in rk3x_i2c_v0_calc_timings()
685 t_calc->div_low = ideal_low_div; in rk3x_i2c_v0_calc_timings()
686 t_calc->div_high = min_high_div + (extra_div - extra_low_div); in rk3x_i2c_v0_calc_timings()
693 t_calc->div_low--; in rk3x_i2c_v0_calc_timings()
694 t_calc->div_high--; in rk3x_i2c_v0_calc_timings()
697 t_calc->tuning = 0; in rk3x_i2c_v0_calc_timings()
699 if (t_calc->div_low > 0xffff) { in rk3x_i2c_v0_calc_timings()
700 t_calc->div_low = 0xffff; in rk3x_i2c_v0_calc_timings()
704 if (t_calc->div_high > 0xffff) { in rk3x_i2c_v0_calc_timings()
705 t_calc->div_high = 0xffff; in rk3x_i2c_v0_calc_timings()
744 struct rk3x_i2c_calced_timings *t_calc) in rk3x_i2c_v1_calc_timings() argument
807 t_calc->div_low = min_low_div; in rk3x_i2c_v1_calc_timings()
808 t_calc->div_high = min_high_div; in rk3x_i2c_v1_calc_timings()
821 t_calc->div_low = min_low_div + extra_low_div; in rk3x_i2c_v1_calc_timings()
822 t_calc->div_high = min_high_div + (extra_div - extra_low_div); in rk3x_i2c_v1_calc_timings()
831 * (t_calc->div_low) + 1) in rk3x_i2c_v1_calc_timings()
834 * (t_calc->div_low) + 1) in rk3x_i2c_v1_calc_timings()
844 - 1000000, 8 * 1000000 * (t_calc->div_high)); in rk3x_i2c_v1_calc_timings()
849 - 1000000, 8 * 1000000 * (t_calc->div_high)); in rk3x_i2c_v1_calc_timings()
851 t_calc->tuning = REG_CON_SDA_CFG(--sda_update_cfg) | in rk3x_i2c_v1_calc_timings()
855 t_calc->div_low--; in rk3x_i2c_v1_calc_timings()
856 t_calc->div_high--; in rk3x_i2c_v1_calc_timings()
859 if (t_calc->div_low > 0xffff) { in rk3x_i2c_v1_calc_timings()
860 t_calc->div_low = 0xffff; in rk3x_i2c_v1_calc_timings()
864 if (t_calc->div_high > 0xffff) { in rk3x_i2c_v1_calc_timings()
865 t_calc->div_high = 0xffff; in rk3x_i2c_v1_calc_timings()