Lines Matching refs:p_data
21 get_parent_cpu_data(struct devfreq_passive_data *p_data, in get_parent_cpu_data() argument
26 if (!p_data || !policy) in get_parent_cpu_data()
29 list_for_each_entry(parent_cpu_data, &p_data->cpu_data_list, node) in get_parent_cpu_data()
36 static void delete_parent_cpu_data(struct devfreq_passive_data *p_data) in delete_parent_cpu_data() argument
40 list_for_each_entry_safe(parent_cpu_data, tmp, &p_data->cpu_data_list, node) { in delete_parent_cpu_data()
80 struct devfreq_passive_data *p_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()
133 struct devfreq_passive_data *p_data in get_target_freq_with_devfreq() local
135 struct devfreq *parent_devfreq = (struct devfreq *)p_data->parent; in get_target_freq_with_devfreq()
170 struct devfreq_passive_data *p_data = in devfreq_passive_get_target_freq() local
174 if (!p_data) in devfreq_passive_get_target_freq()
182 if (p_data->get_target_freq) in devfreq_passive_get_target_freq()
183 return p_data->get_target_freq(devfreq, freq); in devfreq_passive_get_target_freq()
185 switch (p_data->parent_type) { in devfreq_passive_get_target_freq()
204 struct devfreq_passive_data *p_data = in cpufreq_passive_notifier_call() local
206 struct devfreq *devfreq = (struct devfreq *)p_data->this; in cpufreq_passive_notifier_call()
215 parent_cpu_data = get_parent_cpu_data(p_data, freqs->policy); in cpufreq_passive_notifier_call()
236 struct devfreq_passive_data *p_data in cpufreq_passive_unregister_notifier() local
240 if (p_data->nb.notifier_call) { in cpufreq_passive_unregister_notifier()
241 ret = cpufreq_unregister_notifier(&p_data->nb, in cpufreq_passive_unregister_notifier()
247 delete_parent_cpu_data(p_data); in cpufreq_passive_unregister_notifier()
254 struct devfreq_passive_data *p_data in cpufreq_passive_register_notifier() local
264 p_data->cpu_data_list in cpufreq_passive_register_notifier()
265 = (struct list_head)LIST_HEAD_INIT(p_data->cpu_data_list); in cpufreq_passive_register_notifier()
267 p_data->nb.notifier_call = cpufreq_passive_notifier_call; in cpufreq_passive_register_notifier()
268 ret = cpufreq_register_notifier(&p_data->nb, CPUFREQ_TRANSITION_NOTIFIER); in cpufreq_passive_register_notifier()
271 p_data->nb.notifier_call = NULL; in cpufreq_passive_register_notifier()
282 parent_cpu_data = get_parent_cpu_data(p_data, policy); in cpufreq_passive_register_notifier()
316 list_add_tail(&parent_cpu_data->node, &p_data->cpu_data_list); in cpufreq_passive_register_notifier()
371 struct devfreq_passive_data *p_data in devfreq_passive_unregister_notifier() local
373 struct devfreq *parent = (struct devfreq *)p_data->parent; in devfreq_passive_unregister_notifier()
374 struct notifier_block *nb = &p_data->nb; in devfreq_passive_unregister_notifier()
381 struct devfreq_passive_data *p_data in devfreq_passive_register_notifier() local
383 struct devfreq *parent = (struct devfreq *)p_data->parent; in devfreq_passive_register_notifier()
384 struct notifier_block *nb = &p_data->nb; in devfreq_passive_register_notifier()
396 struct devfreq_passive_data *p_data in devfreq_passive_event_handler() local
400 if (!p_data) in devfreq_passive_event_handler()
403 p_data->this = devfreq; in devfreq_passive_event_handler()
407 if (p_data->parent_type == DEVFREQ_PARENT_DEV) in devfreq_passive_event_handler()
409 else if (p_data->parent_type == CPUFREQ_PARENT_DEV) in devfreq_passive_event_handler()
413 if (p_data->parent_type == DEVFREQ_PARENT_DEV) in devfreq_passive_event_handler()
415 else if (p_data->parent_type == CPUFREQ_PARENT_DEV) in devfreq_passive_event_handler()