Lines Matching refs:bus_freq_hz
581 if (WARN_ON(t->bus_freq_hz > 400000)) in rk3x_i2c_v0_calc_timings()
582 t->bus_freq_hz = 400000; in rk3x_i2c_v0_calc_timings()
585 if (WARN_ON(t->bus_freq_hz < 1000)) in rk3x_i2c_v0_calc_timings()
586 t->bus_freq_hz = 1000; in rk3x_i2c_v0_calc_timings()
600 spec = rk3x_i2c_get_spec(t->bus_freq_hz); in rk3x_i2c_v0_calc_timings()
623 scl_rate_khz = t->bus_freq_hz / 1000; in rk3x_i2c_v0_calc_timings()
761 if (WARN_ON(t->bus_freq_hz > 1000000)) in rk3x_i2c_v1_calc_timings()
762 t->bus_freq_hz = 1000000; in rk3x_i2c_v1_calc_timings()
765 if (WARN_ON(t->bus_freq_hz < 1000)) in rk3x_i2c_v1_calc_timings()
766 t->bus_freq_hz = 1000; in rk3x_i2c_v1_calc_timings()
774 spec = rk3x_i2c_get_spec(t->bus_freq_hz); in rk3x_i2c_v1_calc_timings()
778 scl_rate_khz = t->bus_freq_hz / 1000; in rk3x_i2c_v1_calc_timings()
881 WARN_ONCE(ret != 0, "Could not reach SCL freq %u", t->bus_freq_hz); in rk3x_i2c_adapt_div()
902 1000000000 / t->bus_freq_hz, in rk3x_i2c_adapt_div()