Lines Matching refs:step_cnt
699 unsigned int step_cnt,
728 if ((2 * step_cnt) > low_cnt && low_cnt < max_step_cnt) {
729 if (low_cnt > step_cnt) {
730 high_cnt = 2 * step_cnt - low_cnt;
732 high_cnt = step_cnt;
733 low_cnt = step_cnt;
791 * i2c_bus_freq = parent_clk / (clock_div * 2 * sample_cnt * step_cnt)
803 unsigned int step_cnt;
823 /* Search for the best pair (sample_cnt, step_cnt) with
825 * 0 < step_cnt < max_step_cnt
826 * sample_cnt * step_cnt >= opt_div
827 * optimizing for sample_cnt * step_cnt being minimal
831 step_cnt = DIV_ROUND_UP(opt_div + clk_div_restri, sample_cnt);
832 cnt_mul = step_cnt * sample_cnt;
833 if (step_cnt > max_step_cnt)
838 target_speed, step_cnt - 1, sample_cnt - 1);
844 base_step_cnt = step_cnt;
854 step_cnt = base_step_cnt;
856 if ((clk_src / (2 * (sample_cnt * step_cnt - clk_div_restri))) >
865 *timing_step_cnt = step_cnt - 1;
874 unsigned int step_cnt;
910 target_speed, &step_cnt,
916 (sample_cnt << 12) | (step_cnt << 8);
921 (sample_cnt << 12) | (step_cnt << 9);