Lines Matching refs:nl
22 static int notifier_chain_register(struct notifier_block **nl, in notifier_chain_register() argument
26 while ((*nl) != NULL) { in notifier_chain_register()
27 if (unlikely((*nl) == n)) { in notifier_chain_register()
32 if (n->priority > (*nl)->priority) in notifier_chain_register()
34 if (n->priority == (*nl)->priority && unique_priority) in notifier_chain_register()
36 nl = &((*nl)->next); in notifier_chain_register()
38 n->next = *nl; in notifier_chain_register()
39 rcu_assign_pointer(*nl, n); in notifier_chain_register()
43 static int notifier_chain_unregister(struct notifier_block **nl, in notifier_chain_unregister() argument
46 while ((*nl) != NULL) { in notifier_chain_unregister()
47 if ((*nl) == n) { in notifier_chain_unregister()
48 rcu_assign_pointer(*nl, n->next); in notifier_chain_unregister()
51 nl = &((*nl)->next); in notifier_chain_unregister()
68 static int notifier_call_chain(struct notifier_block **nl, in notifier_call_chain() argument
75 nb = rcu_dereference_raw(*nl); in notifier_call_chain()
116 static int notifier_call_chain_robust(struct notifier_block **nl, in notifier_call_chain_robust() argument
122 ret = notifier_call_chain(nl, val_up, v, -1, &nr); in notifier_call_chain_robust()
124 notifier_call_chain(nl, val_down, v, nr-1, NULL); in notifier_call_chain_robust()