Lines Matching refs:nb

625  * @nb:        the notifier_block (supposed to be devfreq->nb)
629 * Called by a notifier that uses devfreq->nb.
631 static int devfreq_notifier_call(struct notifier_block *nb, unsigned long type, void *devp)
633 struct devfreq *devfreq = container_of(nb, struct devfreq, nb);
680 * @nb: Should be devfreq->nb_min
682 static int qos_min_notifier_call(struct notifier_block *nb, unsigned long val, void *ptr)
684 return qos_notifier_call(container_of(nb, struct devfreq, nb_min));
689 * @nb: Should be devfreq->nb_max
691 static int qos_max_notifier_call(struct notifier_block *nb, unsigned long val, void *ptr)
693 return qos_notifier_call(container_of(nb, struct devfreq, nb_max));
808 devfreq->nb.notifier_call = devfreq_notifier_call;
1927 return dev_pm_opp_register_notifier(dev, &devfreq->nb);
1943 return dev_pm_opp_unregister_notifier(dev, &devfreq->nb);
1996 * @nb: The notifier block to register.
1999 int devfreq_register_notifier(struct devfreq *devfreq, struct notifier_block *nb, unsigned int list)
2009 ret = srcu_notifier_chain_register(&devfreq->transition_notifier_list, nb);
2022 * @nb: The notifier block to be unregistered.
2025 int devfreq_unregister_notifier(struct devfreq *devfreq, struct notifier_block *nb, unsigned int list)
2035 ret = srcu_notifier_chain_unregister(&devfreq->transition_notifier_list, nb);
2047 struct notifier_block *nb;
2055 devfreq_unregister_notifier(this->devfreq, this->nb, this->list);
2063 * @nb: The notifier block to be unregistered.
2066 int devm_devfreq_register_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb,
2077 ret = devfreq_register_notifier(devfreq, nb, list);
2084 ptr->nb = nb;
2097 * @nb: The notifier block to be unregistered.
2100 void devm_devfreq_unregister_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb,