Lines Matching refs:cn
1564 struct clk_notifier *cn; in __clk_notify() local
1571 list_for_each_entry(cn, &clk_notifier_list, node) { in __clk_notify()
1572 if (cn->clk->core == core) { in __clk_notify()
1573 cnd.clk = cn->clk; in __clk_notify()
1574 ret = srcu_notifier_call_chain(&cn->notifier_head, msg, in __clk_notify()
4469 struct clk_notifier *cn; in clk_notifier_register() local
4478 list_for_each_entry(cn, &clk_notifier_list, node) in clk_notifier_register()
4479 if (cn->clk == clk) in clk_notifier_register()
4483 cn = kzalloc(sizeof(*cn), GFP_KERNEL); in clk_notifier_register()
4484 if (!cn) in clk_notifier_register()
4487 cn->clk = clk; in clk_notifier_register()
4488 srcu_init_notifier_head(&cn->notifier_head); in clk_notifier_register()
4490 list_add(&cn->node, &clk_notifier_list); in clk_notifier_register()
4493 ret = srcu_notifier_chain_register(&cn->notifier_head, nb); in clk_notifier_register()
4517 struct clk_notifier *cn; in clk_notifier_unregister() local
4525 list_for_each_entry(cn, &clk_notifier_list, node) { in clk_notifier_unregister()
4526 if (cn->clk == clk) { in clk_notifier_unregister()
4527 ret = srcu_notifier_chain_unregister(&cn->notifier_head, nb); in clk_notifier_unregister()
4532 if (!cn->notifier_head.head) { in clk_notifier_unregister()
4533 srcu_cleanup_notifier_head(&cn->notifier_head); in clk_notifier_unregister()
4534 list_del(&cn->node); in clk_notifier_unregister()
4535 kfree(cn); in clk_notifier_unregister()