Lines Matching refs:clk_core

50 	struct clk_core		*core;
56 struct clk_core { struct
63 struct clk_core *parent; argument
70 struct clk_core *new_parent; argument
71 struct clk_core *new_child; argument
100 struct clk_core *core; argument
111 static int clk_pm_runtime_get(struct clk_core *core) in clk_pm_runtime_get()
126 static void clk_pm_runtime_put(struct clk_core *core) in clk_pm_runtime_put()
203 static bool clk_core_rate_is_protected(struct clk_core *core) in clk_core_rate_is_protected()
208 static bool clk_core_is_prepared(struct clk_core *core) in clk_core_is_prepared()
227 static bool clk_core_is_enabled(struct clk_core *core) in clk_core_is_enabled()
296 static struct clk_core *__clk_lookup_subtree(const char *name, in __clk_lookup_subtree()
297 struct clk_core *core) in __clk_lookup_subtree()
299 struct clk_core *child; in __clk_lookup_subtree()
300 struct clk_core *ret; in __clk_lookup_subtree()
314 static struct clk_core *clk_core_lookup(const char *name) in clk_core_lookup()
316 struct clk_core *root_clk; in clk_core_lookup()
317 struct clk_core *ret; in clk_core_lookup()
394 static struct clk_core *clk_core_get(struct clk_core *core, u8 p_index) in clk_core_get()
422 static void clk_core_fill_parent_index(struct clk_core *core, u8 index) in clk_core_fill_parent_index()
425 struct clk_core *parent = ERR_PTR(-ENOENT); in clk_core_fill_parent_index()
447 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core, in clk_core_get_parent_by_index()
462 struct clk_core *parent; in clk_hw_get_parent_by_index()
475 static unsigned long clk_core_get_rate_nolock(struct clk_core *core) in clk_core_get_rate_nolock()
497 static unsigned long clk_core_get_accuracy_no_lock(struct clk_core *core) in clk_core_get_accuracy_no_lock()
551 struct clk_core *core = hw->core, *parent, *best_parent = NULL; in clk_mux_determine_rate_flags()
613 struct clk_core *core = clk_core_lookup(name); in __clk_lookup()
618 static void clk_core_get_boundaries(struct clk_core *core, in clk_core_get_boundaries()
636 static bool clk_core_check_boundaries(struct clk_core *core, in clk_core_check_boundaries()
689 static void clk_core_rate_unprotect(struct clk_core *core) in clk_core_rate_unprotect()
706 static int clk_core_rate_nuke_protect(struct clk_core *core) in clk_core_rate_nuke_protect()
764 static void clk_core_rate_protect(struct clk_core *core) in clk_core_rate_protect()
777 static void clk_core_rate_restore_protect(struct clk_core *core, int count) in clk_core_rate_restore_protect()
823 static void clk_core_unprepare(struct clk_core *core) in clk_core_unprepare()
856 static void clk_core_unprepare_lock(struct clk_core *core) in clk_core_unprepare_lock()
883 static int clk_core_prepare(struct clk_core *core) in clk_core_prepare()
932 static int clk_core_prepare_lock(struct clk_core *core) in clk_core_prepare_lock()
964 static void clk_core_disable(struct clk_core *core) in clk_core_disable()
991 static void clk_core_disable_lock(struct clk_core *core) in clk_core_disable_lock()
1021 static int clk_core_enable(struct clk_core *core) in clk_core_enable()
1057 static int clk_core_enable_lock(struct clk_core *core) in clk_core_enable_lock()
1081 struct clk_core *core = hw->core; in clk_gate_restore_context()
1090 static int clk_core_save_context(struct clk_core *core) in clk_core_save_context()
1092 struct clk_core *child; in clk_core_save_context()
1107 static void clk_core_restore_context(struct clk_core *core) in clk_core_restore_context()
1109 struct clk_core *child; in clk_core_restore_context()
1127 struct clk_core *clk; in clk_save_context()
1154 struct clk_core *core; in clk_restore_context()
1186 static int clk_core_prepare_enable(struct clk_core *core) in clk_core_prepare_enable()
1201 static void clk_core_disable_unprepare(struct clk_core *core) in clk_core_disable_unprepare()
1207 static void __init clk_unprepare_unused_subtree(struct clk_core *core) in clk_unprepare_unused_subtree()
1209 struct clk_core *child; in clk_unprepare_unused_subtree()
1241 static void __init clk_disable_unused_subtree(struct clk_core *core) in clk_disable_unused_subtree()
1243 struct clk_core *child; in clk_disable_unused_subtree()
1301 struct clk_core *core; in clk_disable_unused()
1328 static void clk_unprepare_disable_dev_subtree(struct clk_core *core, in clk_unprepare_disable_dev_subtree()
1331 struct clk_core *child; in clk_unprepare_disable_dev_subtree()
1346 struct clk_core *core; in clk_sync_state()
1360 static int clk_core_determine_round_nolock(struct clk_core *core, in clk_core_determine_round_nolock()
1394 static void clk_core_init_rate_req(struct clk_core * const core, in clk_core_init_rate_req()
1397 struct clk_core *parent; in clk_core_init_rate_req()
1412 static bool clk_core_can_round(struct clk_core * const core) in clk_core_can_round()
1417 static int clk_core_round_rate_nolock(struct clk_core *core, in clk_core_round_rate_nolock()
1540 static int __clk_notify(struct clk_core *core, unsigned long msg, in __clk_notify()
1572 static void __clk_recalc_accuracies(struct clk_core *core) in __clk_recalc_accuracies()
1575 struct clk_core *child; in __clk_recalc_accuracies()
1592 static long clk_core_get_accuracy_recalc(struct clk_core *core) in clk_core_get_accuracy_recalc()
1624 static unsigned long clk_recalc(struct clk_core *core, in clk_recalc()
1648 static void __clk_recalc_rates(struct clk_core *core, unsigned long msg) in __clk_recalc_rates()
1652 struct clk_core *child; in __clk_recalc_rates()
1674 static unsigned long clk_core_get_rate_recalc(struct clk_core *core) in clk_core_get_rate_recalc()
1705 static int clk_fetch_parent_index(struct clk_core *core, in clk_fetch_parent_index()
1706 struct clk_core *parent) in clk_fetch_parent_index()
1766 static void clk_core_hold_state(struct clk_core *core) in clk_core_hold_state()
1780 static void __clk_core_update_orphan_hold_state(struct clk_core *core) in __clk_core_update_orphan_hold_state()
1782 struct clk_core *child; in __clk_core_update_orphan_hold_state()
1796 static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan) in clk_core_update_orphan_status()
1798 struct clk_core *child; in clk_core_update_orphan_status()
1806 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent) in clk_reparent()
1832 static struct clk_core *__clk_set_parent_before(struct clk_core *core, in __clk_set_parent_before()
1833 struct clk_core *parent) in __clk_set_parent_before()
1836 struct clk_core *old_parent = core->parent; in __clk_set_parent_before()
1878 static void __clk_set_parent_after(struct clk_core *core, in __clk_set_parent_after()
1879 struct clk_core *parent, in __clk_set_parent_after()
1880 struct clk_core *old_parent) in __clk_set_parent_after()
1898 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent, in __clk_set_parent()
1903 struct clk_core *old_parent; in __clk_set_parent()
1943 static int __clk_speculate_rates(struct clk_core *core, in __clk_speculate_rates()
1946 struct clk_core *child; in __clk_speculate_rates()
1974 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree()
1975 struct clk_core *new_parent, u8 p_index) in clk_calc_subtree()
1977 struct clk_core *child; in clk_calc_subtree()
1997 static struct clk_core *clk_calc_new_rates(struct clk_core *core, in clk_calc_new_rates()
2000 struct clk_core *top = core; in clk_calc_new_rates()
2001 struct clk_core *old_parent, *parent; in clk_calc_new_rates()
2084 static struct clk_core *clk_propagate_rate_change(struct clk_core *core, in clk_propagate_rate_change()
2087 struct clk_core *child, *tmp_clk, *fail_clk = NULL; in clk_propagate_rate_change()
2129 static void clk_change_rate(struct clk_core *core) in clk_change_rate()
2131 struct clk_core *child; in clk_change_rate()
2136 struct clk_core *old_parent; in clk_change_rate()
2137 struct clk_core *parent = NULL; in clk_change_rate()
2229 static unsigned long clk_core_req_round_rate_nolock(struct clk_core *core, in clk_core_req_round_rate_nolock()
2256 static int clk_core_set_rate_nolock(struct clk_core *core, in clk_core_set_rate_nolock()
2259 struct clk_core *top, *fail_clk; in clk_core_set_rate_nolock()
2528 static struct clk_core *__clk_init_parent(struct clk_core *core) in __clk_init_parent()
2538 static void clk_core_reparent(struct clk_core *core, in clk_core_reparent()
2539 struct clk_core *new_parent) in clk_core_reparent()
2566 struct clk_core *core, *parent_core; in clk_has_parent()
2588 static int clk_core_set_parent_nolock(struct clk_core *core, in clk_core_set_parent_nolock()
2589 struct clk_core *parent) in clk_core_set_parent_nolock()
2700 static int clk_core_set_phase_nolock(struct clk_core *core, int degrees) in clk_core_set_phase_nolock()
2773 static int clk_core_get_phase(struct clk_core *core) in clk_core_get_phase()
2811 static void clk_core_reset_duty_cycle_nolock(struct clk_core *core) in clk_core_reset_duty_cycle_nolock()
2818 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core);
2820 static int clk_core_update_duty_cycle_nolock(struct clk_core *core) in clk_core_update_duty_cycle_nolock()
2845 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core) in clk_core_update_duty_cycle_parent_nolock()
2860 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
2863 static int clk_core_set_duty_cycle_nolock(struct clk_core *core, in clk_core_set_duty_cycle_nolock()
2887 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core, in clk_core_set_duty_cycle_parent_nolock()
2943 static int clk_core_get_scaled_duty_cycle(struct clk_core *core, in clk_core_get_scaled_duty_cycle()
3018 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, in clk_summary_show_one()
3039 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c, in clk_summary_show_subtree()
3042 struct clk_core *child; in clk_summary_show_subtree()
3052 struct clk_core *c; in clk_summary_show()
3071 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level) in clk_dump_one()
3094 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level) in clk_dump_subtree()
3096 struct clk_core *child; in clk_dump_subtree()
3110 struct clk_core *c; in clk_dump_show()
3146 struct clk_core *core = data; in clk_rate_set()
3160 struct clk_core *core = data; in clk_prepare_enable_set()
3173 struct clk_core *core = data; in clk_prepare_enable_get()
3189 struct clk_core *core = data; in clk_rate_get()
3219 struct clk_core *core = s->private; in clk_flags_show()
3238 static void possible_parent_show(struct seq_file *s, struct clk_core *core, in possible_parent_show()
3241 struct clk_core *parent; in possible_parent_show()
3274 struct clk_core *core = s->private; in possible_parents_show()
3288 struct clk_core *core = s->private; in current_parent_show()
3299 struct clk_core *core = s->private; in clk_duty_cycle_show()
3310 struct clk_core *core = s->private; in clk_min_rate_show()
3324 struct clk_core *core = s->private; in clk_max_rate_show()
3336 static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry) in clk_debug_create_one()
3384 static void clk_debug_register(struct clk_core *core) in clk_debug_register()
3401 static void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
3421 struct clk_core *core; in clk_debug_init()
3463 static inline void clk_debug_register(struct clk_core *core) { } in clk_debug_register()
3464 static inline void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
3471 struct clk_core *orphan; in clk_core_reparent_orphans_nolock()
3479 struct clk_core *parent = __clk_init_parent(orphan); in clk_core_reparent_orphans_nolock()
3518 static int __clk_core_init(struct clk_core *core) in __clk_core_init()
3521 struct clk_core *parent; in __clk_core_init()
3727 static void clk_core_link_consumer(struct clk_core *core, struct clk *clk) in clk_core_link_consumer()
3752 static struct clk *alloc_clk(struct clk_core *core, const char *dev_id, in alloc_clk()
3798 struct clk_core *core; in clk_hw_create_clk()
3857 static int clk_core_populate_parent_map(struct clk_core *core, in clk_core_populate_parent_map()
3919 static void clk_core_free_parent_map(struct clk_core *core) in clk_core_free_parent_map()
3938 struct clk_core *core; in __clk_register()
4096 struct clk_core *core = container_of(ref, struct clk_core, ref); in __clk_release()
4140 static void clk_core_evict_parent_cache_subtree(struct clk_core *root, in clk_core_evict_parent_cache_subtree()
4141 struct clk_core *target) in clk_core_evict_parent_cache_subtree()
4144 struct clk_core *child; in clk_core_evict_parent_cache_subtree()
4155 static void clk_core_evict_parent_cache(struct clk_core *core) in clk_core_evict_parent_cache()
4158 struct clk_core *root; in clk_core_evict_parent_cache()
4202 struct clk_core *child; in clk_unregister()
5304 struct clk_core *core; in clk_rate_write()
5363 struct clk_core *core; in clk_enable_write()
5422 struct clk_core *core, *p; in clk_parent_write()
5464 static void clk_proc_summary_show_one(struct seq_file *s, struct clk_core *c, in clk_proc_summary_show_one()
5481 struct clk_core *c, int level) in clk_proc_summary_show_subtree()
5483 struct clk_core *child; in clk_proc_summary_show_subtree()
5496 struct clk_core *c; in clk_proc_summary_show()