Lines Matching defs:target_speed
579 static int mtk_i2c_max_step_cnt(unsigned int target_speed)
581 if (target_speed > I2C_MAX_FAST_MODE_PLUS_FREQ)
701 unsigned int target_speed,
715 if (target_speed > I2C_MAX_HIGH_SPEED_MODE_FREQ)
716 target_speed = I2C_MAX_HIGH_SPEED_MODE_FREQ;
718 max_step_cnt = mtk_i2c_max_step_cnt(target_speed);
721 opt_div = DIV_ROUND_UP(clk_src >> 1, target_speed);
738 target_speed, step_cnt - 1, sample_cnt - 1);
756 if ((clk_src / (2 * sample_cnt * step_cnt)) > target_speed) {
760 dev_dbg(i2c->dev, "Unsupported speed (%uhz)\n", target_speed);
777 unsigned int target_speed;
782 target_speed = i2c->speed_hz;
793 if (target_speed > I2C_MAX_FAST_MODE_PLUS_FREQ) {
806 target_speed, &step_cnt,
820 target_speed, &l_step_cnt,