Lines Matching refs:div_ratio
97 u32 div_ratio; member
685 esdhc->div_ratio = pre_div * div; in esdhc_of_set_clock()
692 if (esdhc->div_ratio <= 4) { in esdhc_of_set_clock()
695 } else if (esdhc->div_ratio <= 8) { in esdhc_of_set_clock()
698 } else if (esdhc->div_ratio <= 12) { in esdhc_of_set_clock()
705 esdhc->div_ratio = pre_div * div; in esdhc_of_set_clock()
708 host->mmc->actual_clock = host->max_clk / esdhc->div_ratio; in esdhc_of_set_clock()
1008 *window_start = 5 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1009 *window_end = 3 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1026 if (abs(start_ptr - end_ptr) > (4 * esdhc->div_ratio + 2)) { in esdhc_prepare_sw_tuning()
1027 *window_start = 8 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1028 *window_end = 4 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1030 *window_start = 5 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1031 *window_end = 3 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1119 (4 * esdhc->div_ratio + 2)) in esdhc_execute_tuning()
1151 clk = host->max_clk / (esdhc->div_ratio + 1); in esdhc_execute_tuning()