Home
last modified time | relevance | path

Searched refs:max_opps (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/opp/
Dcpu.c48 int i, max_opps, ret = 0; in dev_pm_opp_init_cpufreq_table() local
51 max_opps = dev_pm_opp_get_opp_count(dev); in dev_pm_opp_init_cpufreq_table()
52 if (max_opps <= 0) in dev_pm_opp_init_cpufreq_table()
53 return max_opps ? max_opps : -ENODATA; in dev_pm_opp_init_cpufreq_table()
55 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_KERNEL); in dev_pm_opp_init_cpufreq_table()
59 for (i = 0, rate = 0; i < max_opps; i++, rate++) { in dev_pm_opp_init_cpufreq_table()
/linux-6.12.1/drivers/cpufreq/
Dtegra194-cpufreq.c433 int ret, max_opps; in tegra_cpufreq_init_cpufreq_table() local
445 max_opps = dev_pm_opp_get_opp_count(cpu_dev); in tegra_cpufreq_init_cpufreq_table()
446 if (max_opps <= 0) { in tegra_cpufreq_init_cpufreq_table()
448 return max_opps; in tegra_cpufreq_init_cpufreq_table()
466 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_KERNEL); in tegra_cpufreq_init_cpufreq_table()