Lines Matching refs:div_ratio
90 u32 div_ratio; member
676 esdhc->div_ratio = pre_div * div; in esdhc_of_set_clock()
683 if (esdhc->div_ratio <= 4) { in esdhc_of_set_clock()
686 } else if (esdhc->div_ratio <= 8) { in esdhc_of_set_clock()
689 } else if (esdhc->div_ratio <= 12) { in esdhc_of_set_clock()
696 esdhc->div_ratio = pre_div * div; in esdhc_of_set_clock()
699 host->mmc->actual_clock = host->max_clk / esdhc->div_ratio; in esdhc_of_set_clock()
998 *window_start = 5 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
999 *window_end = 3 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1016 if (abs(start_ptr - end_ptr) > (4 * esdhc->div_ratio + 2)) { in esdhc_prepare_sw_tuning()
1017 *window_start = 8 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1018 *window_end = 4 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1020 *window_start = 5 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1021 *window_end = 3 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1109 (4 * esdhc->div_ratio + 2)) in esdhc_execute_tuning()
1141 clk = host->max_clk / (esdhc->div_ratio + 1); in esdhc_execute_tuning()