Lines Matching refs:nb
226 static int cpufreq_passive_notifier_call(struct notifier_block *nb, in cpufreq_passive_notifier_call() argument
230 container_of(nb, struct devfreq_passive_data, nb); in cpufreq_passive_notifier_call()
265 if (p_data->nb.notifier_call) { in cpufreq_passive_unregister_notifier()
266 ret = cpufreq_unregister_notifier(&p_data->nb, in cpufreq_passive_unregister_notifier()
292 p_data->nb.notifier_call = cpufreq_passive_notifier_call; in cpufreq_passive_register_notifier()
293 ret = cpufreq_register_notifier(&p_data->nb, CPUFREQ_TRANSITION_NOTIFIER); in cpufreq_passive_register_notifier()
296 p_data->nb.notifier_call = NULL; in cpufreq_passive_register_notifier()
361 static int devfreq_passive_notifier_call(struct notifier_block *nb, in devfreq_passive_notifier_call() argument
365 = container_of(nb, struct devfreq_passive_data, nb); in devfreq_passive_notifier_call()
398 struct notifier_block *nb = &p_data->nb; in devfreq_passive_unregister_notifier() local
400 return devfreq_unregister_notifier(parent, nb, DEVFREQ_TRANSITION_NOTIFIER); in devfreq_passive_unregister_notifier()
408 struct notifier_block *nb = &p_data->nb; in devfreq_passive_register_notifier() local
413 nb->notifier_call = devfreq_passive_notifier_call; in devfreq_passive_register_notifier()
414 return devfreq_register_notifier(parent, nb, DEVFREQ_TRANSITION_NOTIFIER); in devfreq_passive_register_notifier()