Lines Matching full:timing

185 	struct emc_timing *timing = NULL;  in tegra_emc_find_timing()  local
190 timing = &emc->timings[i]; in tegra_emc_find_timing()
195 if (!timing) { in tegra_emc_find_timing()
196 dev_err(emc->dev, "no timing for rate %lu\n", rate); in tegra_emc_find_timing()
200 return timing; in tegra_emc_find_timing()
205 struct emc_timing *timing = tegra_emc_find_timing(emc, rate); in emc_prepare_timing_change() local
208 if (!timing) in emc_prepare_timing_change()
211 dev_dbg(emc->dev, "%s: using timing rate %lu for requested rate %lu\n", in emc_prepare_timing_change()
212 __func__, timing->rate, rate); in emc_prepare_timing_change()
215 for (i = 0; i < ARRAY_SIZE(timing->data); i++) in emc_prepare_timing_change()
216 writel_relaxed(timing->data[i], in emc_prepare_timing_change()
233 /* manually initiate memory timing update */ in emc_complete_timing_change()
282 struct emc_timing *timing, in load_one_timing_from_dt() argument
295 dev_err(emc->dev, "timing %pOF: failed to read rate: %d\n", in load_one_timing_from_dt()
301 timing->data, in load_one_timing_from_dt()
305 "timing %pOF: failed to read emc timing data: %d\n", in load_one_timing_from_dt()
314 timing->rate = rate * 2 * 1000; in load_one_timing_from_dt()
317 __func__, node, timing->rate); in load_one_timing_from_dt()
340 struct emc_timing *timing; in tegra_emc_load_timings_from_dt() local
350 emc->timings = devm_kcalloc(emc->dev, child_count, sizeof(*timing), in tegra_emc_load_timings_from_dt()
356 timing = emc->timings; in tegra_emc_load_timings_from_dt()
359 err = load_one_timing_from_dt(emc, timing++, child); in tegra_emc_load_timings_from_dt()
366 sort(emc->timings, emc->num_timings, sizeof(*timing), cmp_timings, in tegra_emc_load_timings_from_dt()
450 struct emc_timing *timing = NULL; in emc_round_rate() local
470 timing = &emc->timings[i]; in emc_round_rate()
474 if (!timing) { in emc_round_rate()
475 dev_err(emc->dev, "no timing for rate %lu min %lu max %lu\n", in emc_round_rate()
480 return timing->rate; in emc_round_rate()
660 /* driver has nothing to do in a case of memory timing absence */ in tegra_emc_probe()