Lines Matching refs:clk_core
44 struct clk_core { struct
49 struct clk_core *parent; argument
51 struct clk_core **parents; argument
57 struct clk_core *new_parent; argument
58 struct clk_core *new_child; argument
82 struct clk_core *core; argument
151 static bool clk_core_is_prepared(struct clk_core *core) in clk_core_is_prepared()
163 static bool clk_core_is_enabled(struct clk_core *core) in clk_core_is_enabled()
175 static void clk_unprepare_unused_subtree(struct clk_core *core) in clk_unprepare_unused_subtree()
177 struct clk_core *child; in clk_unprepare_unused_subtree()
200 static void clk_disable_unused_subtree(struct clk_core *core) in clk_disable_unused_subtree()
202 struct clk_core *child; in clk_disable_unused_subtree()
246 struct clk_core *core; in clk_disable_unused()
305 static struct clk_core *__clk_lookup_subtree(const char *name, in __clk_lookup_subtree()
306 struct clk_core *core) in __clk_lookup_subtree()
308 struct clk_core *child; in __clk_lookup_subtree()
309 struct clk_core *ret; in __clk_lookup_subtree()
323 static struct clk_core *clk_core_lookup(const char *name) in clk_core_lookup()
325 struct clk_core *root_clk; in clk_core_lookup()
326 struct clk_core *ret; in clk_core_lookup()
348 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core, in clk_core_get_parent_by_index()
365 struct clk_core *parent; in clk_hw_get_parent_by_index()
378 static unsigned long clk_core_get_rate_nolock(struct clk_core *core) in clk_core_get_rate_nolock()
405 static unsigned long __clk_get_accuracy(struct clk_core *core) in __clk_get_accuracy()
457 struct clk_core *core = hw->core, *parent, *best_parent = NULL; in clk_mux_determine_rate_flags()
518 struct clk_core *core = clk_core_lookup(name); in __clk_lookup()
523 static void clk_core_get_boundaries(struct clk_core *core, in clk_core_get_boundaries()
568 static void clk_core_unprepare(struct clk_core *core) in clk_core_unprepare()
614 static int clk_core_prepare(struct clk_core *core) in clk_core_prepare()
673 static void clk_core_disable(struct clk_core *core) in clk_core_disable()
721 static int clk_core_enable(struct clk_core *core) in clk_core_enable()
785 static int clk_core_round_rate_nolock(struct clk_core *core, in clk_core_round_rate_nolock()
788 struct clk_core *parent; in clk_core_round_rate_nolock()
905 static int __clk_notify(struct clk_core *core, unsigned long msg, in __clk_notify()
935 static void __clk_recalc_accuracies(struct clk_core *core) in __clk_recalc_accuracies()
938 struct clk_core *child; in __clk_recalc_accuracies()
955 static long clk_core_get_accuracy(struct clk_core *core) in clk_core_get_accuracy()
987 static unsigned long clk_recalc(struct clk_core *core, in clk_recalc()
1007 static void __clk_recalc_rates(struct clk_core *core, unsigned long msg) in __clk_recalc_rates()
1011 struct clk_core *child; in __clk_recalc_rates()
1033 static unsigned long clk_core_get_rate(struct clk_core *core) in clk_core_get_rate()
1065 static int clk_fetch_parent_index(struct clk_core *core, in clk_fetch_parent_index()
1066 struct clk_core *parent) in clk_fetch_parent_index()
1101 static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan) in clk_core_update_orphan_status()
1103 struct clk_core *child; in clk_core_update_orphan_status()
1111 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent) in clk_reparent()
1137 static struct clk_core *__clk_set_parent_before(struct clk_core *core, in __clk_set_parent_before()
1138 struct clk_core *parent) in __clk_set_parent_before()
1141 struct clk_core *old_parent = core->parent; in __clk_set_parent_before()
1176 static void __clk_set_parent_after(struct clk_core *core, in __clk_set_parent_after()
1177 struct clk_core *parent, in __clk_set_parent_after()
1178 struct clk_core *old_parent) in __clk_set_parent_after()
1195 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent, in __clk_set_parent()
1200 struct clk_core *old_parent; in __clk_set_parent()
1240 static int __clk_speculate_rates(struct clk_core *core, in __clk_speculate_rates()
1243 struct clk_core *child; in __clk_speculate_rates()
1271 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree()
1272 struct clk_core *new_parent, u8 p_index) in clk_calc_subtree()
1274 struct clk_core *child; in clk_calc_subtree()
1294 static struct clk_core *clk_calc_new_rates(struct clk_core *core, in clk_calc_new_rates()
1297 struct clk_core *top = core; in clk_calc_new_rates()
1298 struct clk_core *old_parent, *parent; in clk_calc_new_rates()
1392 static struct clk_core *clk_propagate_rate_change(struct clk_core *core, in clk_propagate_rate_change()
1395 struct clk_core *child, *tmp_clk, *fail_clk = NULL; in clk_propagate_rate_change()
1430 static void clk_change_rate(struct clk_core *core) in clk_change_rate()
1432 struct clk_core *child; in clk_change_rate()
1437 struct clk_core *old_parent; in clk_change_rate()
1494 static int clk_core_set_rate_nolock(struct clk_core *core, in clk_core_set_rate_nolock()
1497 struct clk_core *top, *fail_clk; in clk_core_set_rate_nolock()
1671 static struct clk_core *__clk_init_parent(struct clk_core *core) in __clk_init_parent()
1673 struct clk_core *ret = NULL; in __clk_init_parent()
1714 static void clk_core_reparent(struct clk_core *core, in clk_core_reparent()
1715 struct clk_core *new_parent) in clk_core_reparent()
1742 struct clk_core *core, *parent_core; in clk_has_parent()
1764 static int clk_core_set_parent(struct clk_core *core, struct clk_core *parent) in clk_core_set_parent()
1903 static int clk_core_get_phase(struct clk_core *core) in clk_core_get_phase()
1977 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, in clk_summary_show_one()
1990 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c, in clk_summary_show_subtree()
1993 struct clk_core *child; in clk_summary_show_subtree()
2006 struct clk_core *c; in clk_summary_show()
2036 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level) in clk_dump_one()
2050 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level) in clk_dump_subtree()
2052 struct clk_core *child; in clk_dump_subtree()
2069 struct clk_core *c; in clk_dump()
2105 static int clk_debug_create_one(struct clk_core *core, struct dentry *pdentry) in clk_debug_create_one()
2180 static int clk_debug_register(struct clk_core *core) in clk_debug_register()
2205 static void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
2238 struct clk_core *core; in clk_debug_init()
2277 static inline int clk_debug_register(struct clk_core *core) { return 0; } in clk_debug_register()
2278 static inline void clk_debug_reparent(struct clk_core *core, in clk_debug_reparent()
2279 struct clk_core *new_parent) in clk_debug_reparent()
2282 static inline void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
2298 struct clk_core *orphan; in __clk_init()
2300 struct clk_core *core; in __clk_init()
2527 struct clk_core *core; in clk_register()
2601 struct clk_core *core = container_of(ref, struct clk_core, ref); in __clk_release()
2679 struct clk_core *child; in clk_unregister()
2761 struct clk_core *core = !clk ? NULL : clk->core; in __clk_get()