Lines Matching refs:ranges
149 struct range_t *ranges; in dw_mci_rk3288_execute_tuning() local
160 ranges = kmalloc_array(priv->num_phases / 2 + 1, in dw_mci_rk3288_execute_tuning()
161 sizeof(*ranges), GFP_KERNEL); in dw_mci_rk3288_execute_tuning()
162 if (!ranges) in dw_mci_rk3288_execute_tuning()
177 ranges[range_count-1].start = i; in dw_mci_rk3288_execute_tuning()
180 ranges[range_count-1].end = i; in dw_mci_rk3288_execute_tuning()
209 ranges[0].start = ranges[range_count-1].start; in dw_mci_rk3288_execute_tuning()
213 if (ranges[0].start == 0 && ranges[0].end == priv->num_phases - 1) { in dw_mci_rk3288_execute_tuning()
222 int len = (ranges[i].end - ranges[i].start + 1); in dw_mci_rk3288_execute_tuning()
233 TUNING_ITERATION_TO_PHASE(ranges[i].start, in dw_mci_rk3288_execute_tuning()
235 TUNING_ITERATION_TO_PHASE(ranges[i].end, in dw_mci_rk3288_execute_tuning()
242 TUNING_ITERATION_TO_PHASE(ranges[longest_range].start, in dw_mci_rk3288_execute_tuning()
244 TUNING_ITERATION_TO_PHASE(ranges[longest_range].end, in dw_mci_rk3288_execute_tuning()
249 middle_phase = ranges[longest_range].start + longest_range_len / 2; in dw_mci_rk3288_execute_tuning()
259 kfree(ranges); in dw_mci_rk3288_execute_tuning()