Home
last modified time | relevance | path

Searched refs:min_total_div (Results 1 – 1 of 1) sorted by relevance

/drivers/i2c/busses/
Di2c-rk3x.c577 unsigned long min_div_for_hold, min_total_div; in rk3x_i2c_v0_calc_timings() local
633 min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * 8); in rk3x_i2c_v0_calc_timings()
653 if (min_div_for_hold > min_total_div) { in rk3x_i2c_v0_calc_timings()
665 extra_div = min_total_div - min_div_for_hold; in rk3x_i2c_v0_calc_timings()
756 unsigned long min_div_for_hold, min_total_div; in rk3x_i2c_v1_calc_timings() local
782 min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * 8); in rk3x_i2c_v1_calc_timings()
804 if (min_div_for_hold >= min_total_div) { in rk3x_i2c_v1_calc_timings()
819 extra_div = min_total_div - min_div_for_hold; in rk3x_i2c_v1_calc_timings()