Lines Matching refs:parent_cpu_data
24 struct devfreq_cpu_data *parent_cpu_data; in get_parent_cpu_data() local
29 list_for_each_entry(parent_cpu_data, &p_data->cpu_data_list, node) in get_parent_cpu_data()
30 if (parent_cpu_data->first_cpu == cpumask_first(policy->related_cpus)) in get_parent_cpu_data()
31 return parent_cpu_data; in get_parent_cpu_data()
38 struct devfreq_cpu_data *parent_cpu_data, *tmp; in delete_parent_cpu_data() local
40 list_for_each_entry_safe(parent_cpu_data, tmp, &p_data->cpu_data_list, node) { in delete_parent_cpu_data()
41 list_del(&parent_cpu_data->node); in delete_parent_cpu_data()
43 if (parent_cpu_data->opp_table) in delete_parent_cpu_data()
44 dev_pm_opp_put_opp_table(parent_cpu_data->opp_table); in delete_parent_cpu_data()
46 kfree(parent_cpu_data); in delete_parent_cpu_data()
82 struct devfreq_cpu_data *parent_cpu_data; in get_target_freq_with_cpufreq() local
96 parent_cpu_data = get_parent_cpu_data(p_data, policy); in get_target_freq_with_cpufreq()
97 if (!parent_cpu_data) { in get_target_freq_with_cpufreq()
103 cpu_cur = parent_cpu_data->cur_freq * HZ_PER_KHZ; in get_target_freq_with_cpufreq()
104 freq = get_target_freq_by_required_opp(parent_cpu_data->dev, in get_target_freq_with_cpufreq()
105 parent_cpu_data->opp_table, in get_target_freq_with_cpufreq()
116 cpu_min = parent_cpu_data->min_freq; in get_target_freq_with_cpufreq()
117 cpu_max = parent_cpu_data->max_freq; in get_target_freq_with_cpufreq()
118 cpu_cur = parent_cpu_data->cur_freq; in get_target_freq_with_cpufreq()
207 struct devfreq_cpu_data *parent_cpu_data; in cpufreq_passive_notifier_call() local
215 parent_cpu_data = get_parent_cpu_data(p_data, freqs->policy); in cpufreq_passive_notifier_call()
216 if (!parent_cpu_data || parent_cpu_data->cur_freq == freqs->new) in cpufreq_passive_notifier_call()
219 cur_freq = parent_cpu_data->cur_freq; in cpufreq_passive_notifier_call()
220 parent_cpu_data->cur_freq = freqs->new; in cpufreq_passive_notifier_call()
226 parent_cpu_data->cur_freq = cur_freq; in cpufreq_passive_notifier_call()
258 struct devfreq_cpu_data *parent_cpu_data; in cpufreq_passive_register_notifier() local
282 parent_cpu_data = get_parent_cpu_data(p_data, policy); in cpufreq_passive_register_notifier()
283 if (parent_cpu_data) { in cpufreq_passive_register_notifier()
288 parent_cpu_data = kzalloc(sizeof(*parent_cpu_data), in cpufreq_passive_register_notifier()
290 if (!parent_cpu_data) { in cpufreq_passive_register_notifier()
309 parent_cpu_data->dev = cpu_dev; in cpufreq_passive_register_notifier()
310 parent_cpu_data->opp_table = opp_table; in cpufreq_passive_register_notifier()
311 parent_cpu_data->first_cpu = cpumask_first(policy->related_cpus); in cpufreq_passive_register_notifier()
312 parent_cpu_data->cur_freq = policy->cur; in cpufreq_passive_register_notifier()
313 parent_cpu_data->min_freq = policy->cpuinfo.min_freq; in cpufreq_passive_register_notifier()
314 parent_cpu_data->max_freq = policy->cpuinfo.max_freq; in cpufreq_passive_register_notifier()
316 list_add_tail(&parent_cpu_data->node, &p_data->cpu_data_list); in cpufreq_passive_register_notifier()
329 kfree(parent_cpu_data); in cpufreq_passive_register_notifier()