Lines Matching refs:num_phases
28 int num_phases; member
136 #define TUNING_ITERATION_TO_PHASE(i, num_phases) \ argument
137 (DIV_ROUND_UP((i) * 360, num_phases))
162 ranges = kmalloc_array(priv->num_phases / 2 + 1, in dw_mci_rk3288_execute_tuning()
168 for (i = 0; i < priv->num_phases; ) { in dw_mci_rk3288_execute_tuning()
170 TUNING_ITERATION_TO_PHASE(i, priv->num_phases)); in dw_mci_rk3288_execute_tuning()
184 } else if (i == priv->num_phases - 1) { in dw_mci_rk3288_execute_tuning()
193 i += DIV_ROUND_UP(20 * priv->num_phases, 360); in dw_mci_rk3288_execute_tuning()
196 if (i >= priv->num_phases) in dw_mci_rk3288_execute_tuning()
197 i = priv->num_phases - 1; in dw_mci_rk3288_execute_tuning()
215 if (ranges[0].start == 0 && ranges[0].end == priv->num_phases - 1) { in dw_mci_rk3288_execute_tuning()
227 len += priv->num_phases; in dw_mci_rk3288_execute_tuning()
236 priv->num_phases), in dw_mci_rk3288_execute_tuning()
238 priv->num_phases), in dw_mci_rk3288_execute_tuning()
245 priv->num_phases), in dw_mci_rk3288_execute_tuning()
247 priv->num_phases), in dw_mci_rk3288_execute_tuning()
252 middle_phase %= priv->num_phases; in dw_mci_rk3288_execute_tuning()
254 TUNING_ITERATION_TO_PHASE(middle_phase, priv->num_phases)); in dw_mci_rk3288_execute_tuning()
258 priv->num_phases)); in dw_mci_rk3288_execute_tuning()
275 &priv->num_phases)) in dw_mci_rk3288_parse_dt()
276 priv->num_phases = 360; in dw_mci_rk3288_parse_dt()