Lines Matching refs:clk_core
40 static long clk_core_get_accuracy(struct clk_core *clk);
41 static unsigned long clk_core_get_rate(struct clk_core *clk);
42 static int clk_core_get_phase(struct clk_core *clk);
43 static bool clk_core_is_prepared(struct clk_core *clk);
44 static bool clk_core_is_enabled(struct clk_core *clk);
45 static struct clk_core *clk_core_lookup(const char *name);
49 struct clk_core { struct
54 struct clk_core *parent; argument
56 struct clk_core **parents; argument
62 struct clk_core *new_parent; argument
63 struct clk_core *new_child; argument
84 struct clk_core *core; argument
169 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, in clk_summary_show_one()
182 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c, in clk_summary_show_subtree()
185 struct clk_core *child; in clk_summary_show_subtree()
198 struct clk_core *c; in clk_summary_show()
228 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level) in clk_dump_one()
242 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level) in clk_dump_subtree()
244 struct clk_core *child; in clk_dump_subtree()
261 struct clk_core *c; in clk_dump()
297 static int clk_debug_create_one(struct clk_core *clk, struct dentry *pdentry) in clk_debug_create_one()
372 static int clk_debug_register(struct clk_core *clk) in clk_debug_register()
397 static void clk_debug_unregister(struct clk_core *clk) in clk_debug_unregister()
433 struct clk_core *clk; in clk_debug_init()
472 static inline int clk_debug_register(struct clk_core *clk) { return 0; } in clk_debug_register()
473 static inline void clk_debug_reparent(struct clk_core *clk, in clk_debug_reparent()
474 struct clk_core *new_parent) in clk_debug_reparent()
477 static inline void clk_debug_unregister(struct clk_core *clk) in clk_debug_unregister()
483 static void clk_unprepare_unused_subtree(struct clk_core *clk) in clk_unprepare_unused_subtree()
485 struct clk_core *child; in clk_unprepare_unused_subtree()
509 static void clk_disable_unused_subtree(struct clk_core *clk) in clk_disable_unused_subtree()
511 struct clk_core *child; in clk_disable_unused_subtree()
555 struct clk_core *clk; in clk_disable_unused()
612 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *clk, in clk_core_get_parent_by_index()
628 struct clk_core *parent; in clk_get_parent_by_index()
644 static unsigned long clk_core_get_rate_nolock(struct clk_core *clk) in clk_core_get_rate_nolock()
674 static unsigned long __clk_get_accuracy(struct clk_core *clk) in __clk_get_accuracy()
688 static bool clk_core_is_prepared(struct clk_core *clk) in clk_core_is_prepared()
717 static bool clk_core_is_enabled(struct clk_core *clk) in clk_core_is_enabled()
747 static struct clk_core *__clk_lookup_subtree(const char *name, in __clk_lookup_subtree()
748 struct clk_core *clk) in __clk_lookup_subtree()
750 struct clk_core *child; in __clk_lookup_subtree()
751 struct clk_core *ret; in __clk_lookup_subtree()
765 static struct clk_core *clk_core_lookup(const char *name) in clk_core_lookup()
767 struct clk_core *root_clk; in clk_core_lookup()
768 struct clk_core *ret; in clk_core_lookup()
807 struct clk_core *core = hw->core, *parent, *best_parent = NULL; in clk_mux_determine_rate_flags()
852 struct clk_core *core = clk_core_lookup(name); in __clk_lookup()
857 static void clk_core_get_boundaries(struct clk_core *clk, in clk_core_get_boundaries()
905 static void clk_core_unprepare(struct clk_core *clk) in clk_core_unprepare()
949 static int clk_core_prepare(struct clk_core *clk) in clk_core_prepare()
1006 static void clk_core_disable(struct clk_core *clk) in clk_core_disable()
1060 static int clk_core_enable(struct clk_core *clk) in clk_core_enable()
1127 static unsigned long clk_core_round_rate_nolock(struct clk_core *clk, in clk_core_round_rate_nolock()
1133 struct clk_core *parent; in clk_core_round_rate_nolock()
1240 static int __clk_notify(struct clk_core *clk, unsigned long msg, in __clk_notify()
1272 static void __clk_recalc_accuracies(struct clk_core *clk) in __clk_recalc_accuracies()
1275 struct clk_core *child; in __clk_recalc_accuracies()
1292 static long clk_core_get_accuracy(struct clk_core *clk) in clk_core_get_accuracy()
1324 static unsigned long clk_recalc(struct clk_core *clk, in clk_recalc()
1346 static void __clk_recalc_rates(struct clk_core *clk, unsigned long msg) in __clk_recalc_rates()
1350 struct clk_core *child; in __clk_recalc_rates()
1372 static unsigned long clk_core_get_rate(struct clk_core *clk) in clk_core_get_rate()
1404 static int clk_fetch_parent_index(struct clk_core *clk, in clk_fetch_parent_index()
1405 struct clk_core *parent) in clk_fetch_parent_index()
1437 static void clk_reparent(struct clk_core *clk, struct clk_core *new_parent) in clk_reparent()
1454 static struct clk_core *__clk_set_parent_before(struct clk_core *clk, in __clk_set_parent_before()
1455 struct clk_core *parent) in __clk_set_parent_before()
1458 struct clk_core *old_parent = clk->parent; in __clk_set_parent_before()
1493 static void __clk_set_parent_after(struct clk_core *core, in __clk_set_parent_after()
1494 struct clk_core *parent, in __clk_set_parent_after()
1495 struct clk_core *old_parent) in __clk_set_parent_after()
1512 static int __clk_set_parent(struct clk_core *clk, struct clk_core *parent, in __clk_set_parent()
1517 struct clk_core *old_parent; in __clk_set_parent()
1565 static int __clk_speculate_rates(struct clk_core *clk, in __clk_speculate_rates()
1568 struct clk_core *child; in __clk_speculate_rates()
1596 static void clk_calc_subtree(struct clk_core *clk, unsigned long new_rate, in clk_calc_subtree()
1597 struct clk_core *new_parent, u8 p_index) in clk_calc_subtree()
1599 struct clk_core *child; in clk_calc_subtree()
1619 static struct clk_core *clk_calc_new_rates(struct clk_core *clk, in clk_calc_new_rates()
1622 struct clk_core *top = clk; in clk_calc_new_rates()
1623 struct clk_core *old_parent, *parent; in clk_calc_new_rates()
1709 static struct clk_core *clk_propagate_rate_change(struct clk_core *clk, in clk_propagate_rate_change()
1712 struct clk_core *child, *tmp_clk, *fail_clk = NULL; in clk_propagate_rate_change()
1747 static void clk_change_rate(struct clk_core *clk) in clk_change_rate()
1749 struct clk_core *child; in clk_change_rate()
1754 struct clk_core *old_parent; in clk_change_rate()
1808 static int clk_core_set_rate_nolock(struct clk_core *clk, in clk_core_set_rate_nolock()
1811 struct clk_core *top, *fail_clk; in clk_core_set_rate_nolock()
1981 static struct clk_core *__clk_init_parent(struct clk_core *clk) in __clk_init_parent()
1983 struct clk_core *ret = NULL; in __clk_init_parent()
2024 static void clk_core_reparent(struct clk_core *clk, in clk_core_reparent()
2025 struct clk_core *new_parent) in clk_core_reparent()
2044 struct clk_core *core, *parent_core; in clk_has_parent()
2066 static int clk_core_set_parent(struct clk_core *clk, struct clk_core *parent) in clk_core_set_parent()
2205 static int clk_core_get_phase(struct clk_core *clk) in clk_core_get_phase()
2273 struct clk_core *orphan; in __clk_init()
2275 struct clk_core *clk; in __clk_init()
2497 struct clk_core *clk; in clk_register()
2577 struct clk_core *clk = container_of(ref, struct clk_core, ref); in __clk_release()
2655 struct clk_core *child; in clk_unregister()
2737 struct clk_core *core = !clk ? NULL : clk->core; in __clk_get()