Lines Matching refs:clk_core

51 struct clk_core {  struct
57 struct clk_core *parent; argument
59 struct clk_core **parents; argument
65 struct clk_core *new_parent; argument
66 struct clk_core *new_child; argument
92 struct clk_core *core; argument
102 static int clk_pm_runtime_get(struct clk_core *core) in clk_pm_runtime_get()
117 static void clk_pm_runtime_put(struct clk_core *core) in clk_pm_runtime_put()
194 static bool clk_core_rate_is_protected(struct clk_core *core) in clk_core_rate_is_protected()
199 static bool clk_core_is_prepared(struct clk_core *core) in clk_core_is_prepared()
218 static bool clk_core_is_enabled(struct clk_core *core) in clk_core_is_enabled()
298 static struct clk_core *__clk_lookup_subtree(const char *name, in __clk_lookup_subtree()
299 struct clk_core *core) in __clk_lookup_subtree()
301 struct clk_core *child; in __clk_lookup_subtree()
302 struct clk_core *ret; in __clk_lookup_subtree()
316 static struct clk_core *clk_core_lookup(const char *name) in clk_core_lookup()
318 struct clk_core *root_clk; in clk_core_lookup()
319 struct clk_core *ret; in clk_core_lookup()
341 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core, in clk_core_get_parent_by_index()
357 struct clk_core *parent; in clk_hw_get_parent_by_index()
370 static unsigned long clk_core_get_rate_nolock(struct clk_core *core) in clk_core_get_rate_nolock()
397 static unsigned long __clk_get_accuracy(struct clk_core *core) in __clk_get_accuracy()
454 struct clk_core *core = hw->core, *parent, *best_parent = NULL; in clk_mux_determine_rate_flags()
516 struct clk_core *core = clk_core_lookup(name); in __clk_lookup()
521 static void clk_core_get_boundaries(struct clk_core *core, in clk_core_get_boundaries()
537 static bool clk_core_check_boundaries(struct clk_core *core, in clk_core_check_boundaries()
584 static void clk_core_rate_unprotect(struct clk_core *core) in clk_core_rate_unprotect()
601 static int clk_core_rate_nuke_protect(struct clk_core *core) in clk_core_rate_nuke_protect()
659 static void clk_core_rate_protect(struct clk_core *core) in clk_core_rate_protect()
672 static void clk_core_rate_restore_protect(struct clk_core *core, int count) in clk_core_rate_restore_protect()
718 static void clk_core_unprepare(struct clk_core *core) in clk_core_unprepare()
751 static void clk_core_unprepare_lock(struct clk_core *core) in clk_core_unprepare_lock()
778 static int clk_core_prepare(struct clk_core *core) in clk_core_prepare()
827 static int clk_core_prepare_lock(struct clk_core *core) in clk_core_prepare_lock()
859 static void clk_core_disable(struct clk_core *core) in clk_core_disable()
886 static void clk_core_disable_lock(struct clk_core *core) in clk_core_disable_lock()
916 static int clk_core_enable(struct clk_core *core) in clk_core_enable()
952 static int clk_core_enable_lock(struct clk_core *core) in clk_core_enable_lock()
986 static int clk_core_prepare_enable(struct clk_core *core) in clk_core_prepare_enable()
1001 static void clk_core_disable_unprepare(struct clk_core *core) in clk_core_disable_unprepare()
1007 static void clk_unprepare_unused_subtree(struct clk_core *core) in clk_unprepare_unused_subtree()
1009 struct clk_core *child; in clk_unprepare_unused_subtree()
1037 static void clk_disable_unused_subtree(struct clk_core *core) in clk_disable_unused_subtree()
1039 struct clk_core *child; in clk_disable_unused_subtree()
1093 struct clk_core *core; in clk_disable_unused()
1120 static int clk_core_determine_round_nolock(struct clk_core *core, in clk_core_determine_round_nolock()
1154 static void clk_core_init_rate_req(struct clk_core * const core, in clk_core_init_rate_req()
1157 struct clk_core *parent; in clk_core_init_rate_req()
1172 static bool clk_core_can_round(struct clk_core * const core) in clk_core_can_round()
1180 static int clk_core_round_rate_nolock(struct clk_core *core, in clk_core_round_rate_nolock()
1288 static int __clk_notify(struct clk_core *core, unsigned long msg, in __clk_notify()
1320 static void __clk_recalc_accuracies(struct clk_core *core) in __clk_recalc_accuracies()
1323 struct clk_core *child; in __clk_recalc_accuracies()
1340 static long clk_core_get_accuracy(struct clk_core *core) in clk_core_get_accuracy()
1372 static unsigned long clk_recalc(struct clk_core *core, in clk_recalc()
1396 static void __clk_recalc_rates(struct clk_core *core, unsigned long msg) in __clk_recalc_rates()
1400 struct clk_core *child; in __clk_recalc_rates()
1422 static unsigned long clk_core_get_rate(struct clk_core *core) in clk_core_get_rate()
1454 static int clk_fetch_parent_index(struct clk_core *core, in clk_fetch_parent_index()
1455 struct clk_core *parent) in clk_fetch_parent_index()
1472 static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan) in clk_core_update_orphan_status()
1474 struct clk_core *child; in clk_core_update_orphan_status()
1482 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent) in clk_reparent()
1508 static struct clk_core *__clk_set_parent_before(struct clk_core *core, in __clk_set_parent_before()
1509 struct clk_core *parent) in __clk_set_parent_before()
1512 struct clk_core *old_parent = core->parent; in __clk_set_parent_before()
1554 static void __clk_set_parent_after(struct clk_core *core, in __clk_set_parent_after()
1555 struct clk_core *parent, in __clk_set_parent_after()
1556 struct clk_core *old_parent) in __clk_set_parent_after()
1574 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent, in __clk_set_parent()
1579 struct clk_core *old_parent; in __clk_set_parent()
1619 static int __clk_speculate_rates(struct clk_core *core, in __clk_speculate_rates()
1622 struct clk_core *child; in __clk_speculate_rates()
1650 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree()
1651 struct clk_core *new_parent, u8 p_index) in clk_calc_subtree()
1653 struct clk_core *child; in clk_calc_subtree()
1673 static struct clk_core *clk_calc_new_rates(struct clk_core *core, in clk_calc_new_rates()
1676 struct clk_core *top = core; in clk_calc_new_rates()
1677 struct clk_core *old_parent, *parent; in clk_calc_new_rates()
1760 static struct clk_core *clk_propagate_rate_change(struct clk_core *core, in clk_propagate_rate_change()
1763 struct clk_core *child, *tmp_clk, *fail_clk = NULL; in clk_propagate_rate_change()
1798 static void clk_change_rate(struct clk_core *core) in clk_change_rate()
1800 struct clk_core *child; in clk_change_rate()
1805 struct clk_core *old_parent; in clk_change_rate()
1806 struct clk_core *parent = NULL; in clk_change_rate()
1895 static unsigned long clk_core_req_round_rate_nolock(struct clk_core *core, in clk_core_req_round_rate_nolock()
1922 static int clk_core_set_rate_nolock(struct clk_core *core, in clk_core_set_rate_nolock()
1925 struct clk_core *top, *fail_clk; in clk_core_set_rate_nolock()
2194 static struct clk_core *__clk_init_parent(struct clk_core *core) in __clk_init_parent()
2204 static void clk_core_reparent(struct clk_core *core, in clk_core_reparent()
2205 struct clk_core *new_parent) in clk_core_reparent()
2232 struct clk_core *core, *parent_core; in clk_has_parent()
2250 static int clk_core_set_parent_nolock(struct clk_core *core, in clk_core_set_parent_nolock()
2251 struct clk_core *parent) in clk_core_set_parent_nolock()
2356 static int clk_core_set_phase_nolock(struct clk_core *core, int degrees) in clk_core_set_phase_nolock()
2429 static int clk_core_get_phase(struct clk_core *core) in clk_core_get_phase()
2459 static void clk_core_reset_duty_cycle_nolock(struct clk_core *core) in clk_core_reset_duty_cycle_nolock()
2466 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core);
2468 static int clk_core_update_duty_cycle_nolock(struct clk_core *core) in clk_core_update_duty_cycle_nolock()
2493 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core) in clk_core_update_duty_cycle_parent_nolock()
2508 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
2511 static int clk_core_set_duty_cycle_nolock(struct clk_core *core, in clk_core_set_duty_cycle_nolock()
2535 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core, in clk_core_set_duty_cycle_parent_nolock()
2591 static int clk_core_get_scaled_duty_cycle(struct clk_core *core, in clk_core_get_scaled_duty_cycle()
2666 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, in clk_summary_show_one()
2681 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c, in clk_summary_show_subtree()
2684 struct clk_core *child; in clk_summary_show_subtree()
2697 struct clk_core *c; in clk_summary_show()
2716 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level) in clk_dump_one()
2733 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level) in clk_dump_subtree()
2735 struct clk_core *child; in clk_dump_subtree()
2752 struct clk_core *c; in clk_dump_show()
2798 struct clk_core *core = s->private; in clk_flags_show()
2819 struct clk_core *core = s->private; in possible_parents_show()
2833 struct clk_core *core = s->private; in clk_duty_cycle_show()
2842 static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry) in clk_debug_create_one()
2879 static void clk_debug_register(struct clk_core *core) in clk_debug_register()
2896 static void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
2916 struct clk_core *core; in clk_debug_init()
2940 static inline void clk_debug_register(struct clk_core *core) { } in clk_debug_register()
2941 static inline void clk_debug_reparent(struct clk_core *core, in clk_debug_reparent()
2942 struct clk_core *new_parent) in clk_debug_reparent()
2945 static inline void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
2957 static int __clk_core_init(struct clk_core *core) in __clk_core_init()
2960 struct clk_core *orphan; in __clk_core_init()
3125 struct clk_core *parent = __clk_init_parent(orphan); in __clk_core_init()
3207 struct clk_core *core; in clk_register()
3316 struct clk_core *core = container_of(ref, struct clk_core, ref); in __clk_release()
3365 static void clk_core_evict_parent_cache_subtree(struct clk_core *root, in clk_core_evict_parent_cache_subtree()
3366 struct clk_core *target) in clk_core_evict_parent_cache_subtree()
3369 struct clk_core *child; in clk_core_evict_parent_cache_subtree()
3380 static void clk_core_evict_parent_cache(struct clk_core *core) in clk_core_evict_parent_cache()
3383 struct clk_core *root; in clk_core_evict_parent_cache()
3422 struct clk_core *child; in clk_unregister()
3581 struct clk_core *core = !clk ? NULL : clk->core; in __clk_get()