Lines Matching refs:num_phases
24 int num_phases; member
132 #define TUNING_ITERATION_TO_PHASE(i, num_phases) \ argument
133 (DIV_ROUND_UP((i) * 360, num_phases))
158 ranges = kmalloc_array(priv->num_phases / 2 + 1, in dw_mci_rk3288_execute_tuning()
164 for (i = 0; i < priv->num_phases; ) { in dw_mci_rk3288_execute_tuning()
166 TUNING_ITERATION_TO_PHASE(i, priv->num_phases)); in dw_mci_rk3288_execute_tuning()
180 } else if (i == priv->num_phases - 1) { in dw_mci_rk3288_execute_tuning()
189 i += DIV_ROUND_UP(20 * priv->num_phases, 360); in dw_mci_rk3288_execute_tuning()
192 if (i >= priv->num_phases) in dw_mci_rk3288_execute_tuning()
193 i = priv->num_phases - 1; in dw_mci_rk3288_execute_tuning()
211 if (ranges[0].start == 0 && ranges[0].end == priv->num_phases - 1) { in dw_mci_rk3288_execute_tuning()
223 len += priv->num_phases; in dw_mci_rk3288_execute_tuning()
232 priv->num_phases), in dw_mci_rk3288_execute_tuning()
234 priv->num_phases), in dw_mci_rk3288_execute_tuning()
241 priv->num_phases), in dw_mci_rk3288_execute_tuning()
243 priv->num_phases), in dw_mci_rk3288_execute_tuning()
248 middle_phase %= priv->num_phases; in dw_mci_rk3288_execute_tuning()
250 TUNING_ITERATION_TO_PHASE(middle_phase, priv->num_phases)); in dw_mci_rk3288_execute_tuning()
254 priv->num_phases)); in dw_mci_rk3288_execute_tuning()
271 &priv->num_phases)) in dw_mci_rk3288_parse_dt()
272 priv->num_phases = 360; in dw_mci_rk3288_parse_dt()