Lines Matching refs:nl
25 static int notifier_chain_register(struct notifier_block **nl, in notifier_chain_register() argument
29 while ((*nl) != NULL) { in notifier_chain_register()
30 if (unlikely((*nl) == n)) { in notifier_chain_register()
35 if (n->priority > (*nl)->priority) in notifier_chain_register()
37 if (n->priority == (*nl)->priority && unique_priority) in notifier_chain_register()
39 nl = &((*nl)->next); in notifier_chain_register()
41 n->next = *nl; in notifier_chain_register()
42 rcu_assign_pointer(*nl, n); in notifier_chain_register()
47 static int notifier_chain_unregister(struct notifier_block **nl, in notifier_chain_unregister() argument
50 while ((*nl) != NULL) { in notifier_chain_unregister()
51 if ((*nl) == n) { in notifier_chain_unregister()
52 rcu_assign_pointer(*nl, n->next); in notifier_chain_unregister()
56 nl = &((*nl)->next); in notifier_chain_unregister()
73 static int notifier_call_chain(struct notifier_block **nl, in notifier_call_chain() argument
80 nb = rcu_dereference_raw(*nl); in notifier_call_chain()
122 static int notifier_call_chain_robust(struct notifier_block **nl, in notifier_call_chain_robust() argument
128 ret = notifier_call_chain(nl, val_up, v, -1, &nr); in notifier_call_chain_robust()
130 notifier_call_chain(nl, val_down, v, nr-1, NULL); in notifier_call_chain_robust()