Lines Matching full:dvfs
24 struct tegra186_emc_dvfs *dvfs; member
65 if (rate == emc->dvfs[i].rate) in tegra186_emc_validate_rate()
79 seq_printf(s, "%s%lu", prefix, emc->dvfs[i].rate); in tegra186_emc_debug_available_rates_show()
197 dev_err(&pdev->dev, "failed to EMC DVFS pairs: %d\n", err); in tegra186_emc_probe()
202 dev_err(&pdev->dev, "EMC DVFS MRQ failed: %d (BPMP error code)\n", msg.rx.ret); in tegra186_emc_probe()
211 emc->dvfs = devm_kmalloc_array(&pdev->dev, emc->num_dvfs, in tegra186_emc_probe()
212 sizeof(*emc->dvfs), GFP_KERNEL); in tegra186_emc_probe()
213 if (!emc->dvfs) { in tegra186_emc_probe()
218 dev_dbg(&pdev->dev, "%u DVFS pairs:\n", emc->num_dvfs); in tegra186_emc_probe()
221 emc->dvfs[i].rate = response.pairs[i].freq * 1000; in tegra186_emc_probe()
222 emc->dvfs[i].latency = response.pairs[i].latency; in tegra186_emc_probe()
224 if (emc->dvfs[i].rate < emc->debugfs.min_rate) in tegra186_emc_probe()
225 emc->debugfs.min_rate = emc->dvfs[i].rate; in tegra186_emc_probe()
227 if (emc->dvfs[i].rate > emc->debugfs.max_rate) in tegra186_emc_probe()
228 emc->debugfs.max_rate = emc->dvfs[i].rate; in tegra186_emc_probe()
231 emc->dvfs[i].rate, emc->dvfs[i].latency); in tegra186_emc_probe()