Lines Matching refs:nl
22 static int notifier_chain_register(struct notifier_block **nl, in notifier_chain_register() argument
25 while ((*nl) != NULL) { in notifier_chain_register()
26 if (unlikely((*nl) == n)) { in notifier_chain_register()
30 if (n->priority > (*nl)->priority) in notifier_chain_register()
32 nl = &((*nl)->next); in notifier_chain_register()
34 n->next = *nl; in notifier_chain_register()
35 rcu_assign_pointer(*nl, n); in notifier_chain_register()
39 static int notifier_chain_unregister(struct notifier_block **nl, in notifier_chain_unregister() argument
42 while ((*nl) != NULL) { in notifier_chain_unregister()
43 if ((*nl) == n) { in notifier_chain_unregister()
44 rcu_assign_pointer(*nl, n->next); in notifier_chain_unregister()
47 nl = &((*nl)->next); in notifier_chain_unregister()
64 static int notifier_call_chain(struct notifier_block **nl, in notifier_call_chain() argument
71 nb = rcu_dereference_raw(*nl); in notifier_call_chain()
112 static int notifier_call_chain_robust(struct notifier_block **nl, in notifier_call_chain_robust() argument
118 ret = notifier_call_chain(nl, val_up, v, -1, &nr); in notifier_call_chain_robust()
120 notifier_call_chain(nl, val_down, v, nr-1, NULL); in notifier_call_chain_robust()