Searched refs:max_opps (Results 1 – 2 of 2) sorted by relevance
48 int i, max_opps, ret = 0; in dev_pm_opp_init_cpufreq_table() local51 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()
407 int ret, max_opps; in tegra_cpufreq_init_cpufreq_table() local419 max_opps = dev_pm_opp_get_opp_count(cpu_dev); in tegra_cpufreq_init_cpufreq_table()420 if (max_opps <= 0) { in tegra_cpufreq_init_cpufreq_table()422 return max_opps; in tegra_cpufreq_init_cpufreq_table()440 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_KERNEL); in tegra_cpufreq_init_cpufreq_table()