Lines Matching refs:step_cnt
602 unsigned int step_cnt,
630 if ((2 * step_cnt) > low_cnt && low_cnt < max_step_cnt) {
631 if (low_cnt > step_cnt) {
632 high_cnt = 2 * step_cnt - low_cnt;
634 high_cnt = step_cnt;
635 low_cnt = step_cnt;
693 * i2c_bus_freq = parent_clk / (clock_div * 2 * sample_cnt * step_cnt)
705 unsigned int step_cnt;
724 /* Search for the best pair (sample_cnt, step_cnt) with
726 * 0 < step_cnt < max_step_cnt
727 * sample_cnt * step_cnt >= opt_div
728 * optimizing for sample_cnt * step_cnt being minimal
731 step_cnt = DIV_ROUND_UP(opt_div, sample_cnt);
732 cnt_mul = step_cnt * sample_cnt;
733 if (step_cnt > max_step_cnt)
738 target_speed, step_cnt - 1, sample_cnt - 1);
744 base_step_cnt = step_cnt;
754 step_cnt = base_step_cnt;
756 if ((clk_src / (2 * sample_cnt * step_cnt)) > target_speed) {
764 *timing_step_cnt = step_cnt - 1;
773 unsigned int step_cnt;
806 target_speed, &step_cnt,
812 (sample_cnt << 12) | (step_cnt << 8);
817 (sample_cnt << 12) | (step_cnt << 9);