Lines Matching refs:nb
201 static int cpufreq_passive_notifier_call(struct notifier_block *nb, in cpufreq_passive_notifier_call() argument
205 container_of(nb, struct devfreq_passive_data, nb); in cpufreq_passive_notifier_call()
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()
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()
337 static int devfreq_passive_notifier_call(struct notifier_block *nb, in devfreq_passive_notifier_call() argument
341 = container_of(nb, struct devfreq_passive_data, nb); in devfreq_passive_notifier_call()
374 struct notifier_block *nb = &p_data->nb; in devfreq_passive_unregister_notifier() local
376 return devfreq_unregister_notifier(parent, nb, DEVFREQ_TRANSITION_NOTIFIER); in devfreq_passive_unregister_notifier()
384 struct notifier_block *nb = &p_data->nb; in devfreq_passive_register_notifier() local
389 nb->notifier_call = devfreq_passive_notifier_call; in devfreq_passive_register_notifier()
390 return devfreq_register_notifier(parent, nb, DEVFREQ_TRANSITION_NOTIFIER); in devfreq_passive_register_notifier()