Lines Matching refs:n
18 struct notifier_block *n, in notifier_chain_register() argument
22 if (unlikely((*nl) == n)) { in notifier_chain_register()
24 n->notifier_call); in notifier_chain_register()
27 if (n->priority > (*nl)->priority) in notifier_chain_register()
29 if (n->priority == (*nl)->priority && unique_priority) in notifier_chain_register()
33 n->next = *nl; in notifier_chain_register()
34 rcu_assign_pointer(*nl, n); in notifier_chain_register()
35 trace_notifier_register((void *)n->notifier_call); in notifier_chain_register()
40 struct notifier_block *n) in notifier_chain_unregister() argument
43 if ((*nl) == n) { in notifier_chain_unregister()
44 rcu_assign_pointer(*nl, n->next); in notifier_chain_unregister()
45 trace_notifier_unregister((void *)n->notifier_call); in notifier_chain_unregister()
142 struct notifier_block *n) in atomic_notifier_chain_register() argument
148 ret = notifier_chain_register(&nh->head, n, false); in atomic_notifier_chain_register()
165 struct notifier_block *n) in atomic_notifier_chain_register_unique_prio() argument
171 ret = notifier_chain_register(&nh->head, n, true); in atomic_notifier_chain_register_unique_prio()
187 struct notifier_block *n) in atomic_notifier_chain_unregister() argument
193 ret = notifier_chain_unregister(&nh->head, n); in atomic_notifier_chain_unregister()
250 struct notifier_block *n, in __blocking_notifier_chain_register() argument
261 return notifier_chain_register(&nh->head, n, unique_priority); in __blocking_notifier_chain_register()
264 ret = notifier_chain_register(&nh->head, n, unique_priority); in __blocking_notifier_chain_register()
280 struct notifier_block *n) in blocking_notifier_chain_register() argument
282 return __blocking_notifier_chain_register(nh, n, false); in blocking_notifier_chain_register()
297 struct notifier_block *n) in blocking_notifier_chain_register_unique_prio() argument
299 return __blocking_notifier_chain_register(nh, n, true); in blocking_notifier_chain_register_unique_prio()
314 struct notifier_block *n) in blocking_notifier_chain_unregister() argument
324 return notifier_chain_unregister(&nh->head, n); in blocking_notifier_chain_unregister()
327 ret = notifier_chain_unregister(&nh->head, n); in blocking_notifier_chain_unregister()
403 struct notifier_block *n) in raw_notifier_chain_register() argument
405 return notifier_chain_register(&nh->head, n, false); in raw_notifier_chain_register()
420 struct notifier_block *n) in raw_notifier_chain_unregister() argument
422 return notifier_chain_unregister(&nh->head, n); in raw_notifier_chain_unregister()
473 struct notifier_block *n) in srcu_notifier_chain_register() argument
483 return notifier_chain_register(&nh->head, n, false); in srcu_notifier_chain_register()
486 ret = notifier_chain_register(&nh->head, n, false); in srcu_notifier_chain_register()
503 struct notifier_block *n) in srcu_notifier_chain_unregister() argument
513 return notifier_chain_unregister(&nh->head, n); in srcu_notifier_chain_unregister()
516 ret = notifier_chain_unregister(&nh->head, n); in srcu_notifier_chain_unregister()