Searched refs:num_opps (Results 1 – 3 of 3) sorted by relevance
/linux-4.4.14/drivers/thermal/ |
D | cpu_cooling.c | 275 int num_opps = 0, cpu, i, ret = 0; in build_dyn_power_table() local 286 num_opps = dev_pm_opp_get_opp_count(dev); in build_dyn_power_table() 287 if (num_opps > 0) in build_dyn_power_table() 289 else if (num_opps < 0) in build_dyn_power_table() 290 return num_opps; in build_dyn_power_table() 293 if (num_opps == 0) in build_dyn_power_table() 296 power_table = kcalloc(num_opps, sizeof(*power_table), GFP_KERNEL); in build_dyn_power_table() 308 if (i >= num_opps) { in build_dyn_power_table() 333 if (i != num_opps) { in build_dyn_power_table()
|
D | devfreq_cooling.c | 388 int ret, num_opps; in devfreq_cooling_gen_tables() local 394 num_opps = dev_pm_opp_get_opp_count(dev); in devfreq_cooling_gen_tables() 397 power_table = kcalloc(num_opps, sizeof(*power_table), in devfreq_cooling_gen_tables() 403 freq_table = kcalloc(num_opps, sizeof(*freq_table), in devfreq_cooling_gen_tables() 410 for (i = 0, freq = ULONG_MAX; i < num_opps; i++, freq--) { in devfreq_cooling_gen_tables() 443 dfc->freq_table_size = num_opps; in devfreq_cooling_gen_tables()
|
/linux-4.4.14/arch/arm/mach-vexpress/ |
D | spc.c | 112 int num_opps[MAX_CLUSTERS]; member 265 if (perf >= info->num_opps[cluster]) in ve_spc_get_performance() 277 int idx, max_opp = info->num_opps[cluster]; in ve_spc_round_performance() 300 int idx, max_opp = info->num_opps[cluster]; in ve_spc_find_performance_index() 422 info->num_opps[cluster] = idx; in ve_spc_populate_opps() 436 max_opp = info->num_opps[cluster]; in ve_init_opp_table()
|