Lines Matching refs:cn
1575 struct clk_notifier *cn; in __clk_notify() local
1582 list_for_each_entry(cn, &clk_notifier_list, node) { in __clk_notify()
1583 if (cn->clk->core == core) { in __clk_notify()
1584 cnd.clk = cn->clk; in __clk_notify()
1585 ret = srcu_notifier_call_chain(&cn->notifier_head, msg, in __clk_notify()
4480 struct clk_notifier *cn; in clk_notifier_register() local
4489 list_for_each_entry(cn, &clk_notifier_list, node) in clk_notifier_register()
4490 if (cn->clk == clk) in clk_notifier_register()
4494 cn = kzalloc(sizeof(*cn), GFP_KERNEL); in clk_notifier_register()
4495 if (!cn) in clk_notifier_register()
4498 cn->clk = clk; in clk_notifier_register()
4499 srcu_init_notifier_head(&cn->notifier_head); in clk_notifier_register()
4501 list_add(&cn->node, &clk_notifier_list); in clk_notifier_register()
4504 ret = srcu_notifier_chain_register(&cn->notifier_head, nb); in clk_notifier_register()
4528 struct clk_notifier *cn; in clk_notifier_unregister() local
4536 list_for_each_entry(cn, &clk_notifier_list, node) { in clk_notifier_unregister()
4537 if (cn->clk == clk) { in clk_notifier_unregister()
4538 ret = srcu_notifier_chain_unregister(&cn->notifier_head, nb); in clk_notifier_unregister()
4543 if (!cn->notifier_head.head) { in clk_notifier_unregister()
4544 srcu_cleanup_notifier_head(&cn->notifier_head); in clk_notifier_unregister()
4545 list_del(&cn->node); in clk_notifier_unregister()
4546 kfree(cn); in clk_notifier_unregister()