Lines Matching full:clk_core
60 struct clk_core *core;
66 struct clk_core { struct
74 struct clk_core *parent; argument
81 struct clk_core *new_parent; argument
82 struct clk_core *new_child; argument
110 struct clk_core *core; argument
121 static int clk_pm_runtime_get(struct clk_core *core) in clk_pm_runtime_get()
129 static void clk_pm_runtime_put(struct clk_core *core) in clk_pm_runtime_put()
155 struct clk_core *core, *failed; in clk_pm_runtime_get_all()
200 struct clk_core *core; in clk_pm_runtime_put_all()
207 static void clk_pm_runtime_init(struct clk_core *core) in clk_pm_runtime_init()
289 static bool clk_core_rate_is_protected(struct clk_core *core) in clk_core_rate_is_protected()
294 static bool clk_core_is_prepared(struct clk_core *core) in clk_core_is_prepared()
313 static bool clk_core_is_enabled(struct clk_core *core) in clk_core_is_enabled()
405 static struct clk_core *clk_core_lookup(const char *name) in clk_core_lookup()
407 struct clk_core *core; in clk_core_lookup()
443 * clk_core_get - Find the clk_core parent of a clk
476 * A valid clk_core pointer when the clk can be found in the provider.
478 static struct clk_core *clk_core_get(struct clk_core *core, u8 p_index) in clk_core_get()
509 static void clk_core_fill_parent_index(struct clk_core *core, u8 index) in clk_core_fill_parent_index()
512 struct clk_core *parent; in clk_core_fill_parent_index()
535 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core, in clk_core_get_parent_by_index()
550 struct clk_core *parent; in clk_hw_get_parent_by_index()
563 static unsigned long clk_core_get_rate_nolock(struct clk_core *core) in clk_core_get_rate_nolock()
585 static unsigned long clk_core_get_accuracy_no_lock(struct clk_core *core) in clk_core_get_accuracy_no_lock()
629 static void clk_core_init_rate_req(struct clk_core * const core,
633 static int clk_core_round_rate_nolock(struct clk_core *core,
636 static bool clk_core_has_parent(struct clk_core *core, const struct clk_core *parent) in clk_core_has_parent()
638 struct clk_core *tmp; in clk_core_has_parent()
658 clk_core_forward_rate_req(struct clk_core *core, in clk_core_forward_rate_req()
660 struct clk_core *parent, in clk_core_forward_rate_req()
680 struct clk_core *core = hw->core; in clk_core_determine_rate_no_reparent()
681 struct clk_core *parent = core->parent; in clk_core_determine_rate_no_reparent()
721 struct clk_core *core = hw->core, *parent, *best_parent = NULL; in clk_mux_determine_rate_flags()
776 struct clk_core *core = clk_core_lookup(name); in __clk_lookup()
781 static void clk_core_get_boundaries(struct clk_core *core, in clk_core_get_boundaries()
815 static bool clk_core_check_boundaries(struct clk_core *core, in clk_core_check_boundaries()
887 static void clk_core_rate_unprotect(struct clk_core *core) in clk_core_rate_unprotect()
904 static int clk_core_rate_nuke_protect(struct clk_core *core) in clk_core_rate_nuke_protect()
962 static void clk_core_rate_protect(struct clk_core *core) in clk_core_rate_protect()
975 static void clk_core_rate_restore_protect(struct clk_core *core, int count) in clk_core_rate_restore_protect()
1040 static void clk_core_unprepare(struct clk_core *core) in clk_core_unprepare()
1073 static void clk_core_unprepare_lock(struct clk_core *core) in clk_core_unprepare_lock()
1100 static int clk_core_prepare(struct clk_core *core) in clk_core_prepare()
1149 static int clk_core_prepare_lock(struct clk_core *core) in clk_core_prepare_lock()
1181 static void clk_core_disable(struct clk_core *core) in clk_core_disable()
1208 static void clk_core_disable_lock(struct clk_core *core) in clk_core_disable_lock()
1238 static int clk_core_enable(struct clk_core *core) in clk_core_enable()
1274 static int clk_core_enable_lock(struct clk_core *core) in clk_core_enable_lock()
1298 struct clk_core *core = hw->core; in clk_gate_restore_context()
1307 static int clk_core_save_context(struct clk_core *core) in clk_core_save_context()
1309 struct clk_core *child; in clk_core_save_context()
1324 static void clk_core_restore_context(struct clk_core *core) in clk_core_restore_context()
1326 struct clk_core *child; in clk_core_restore_context()
1344 struct clk_core *clk; in clk_save_context()
1371 struct clk_core *core; in clk_restore_context()
1424 static int clk_core_prepare_enable(struct clk_core *core) in clk_core_prepare_enable()
1439 static void clk_core_disable_unprepare(struct clk_core *core) in clk_core_disable_unprepare()
1445 static void __init clk_unprepare_unused_subtree(struct clk_core *core) in clk_unprepare_unused_subtree()
1447 struct clk_core *child; in clk_unprepare_unused_subtree()
1470 static void __init clk_disable_unused_subtree(struct clk_core *core) in clk_disable_unused_subtree()
1472 struct clk_core *child; in clk_disable_unused_subtree()
1521 struct clk_core *core; in clk_disable_unused()
1560 static int clk_core_determine_round_nolock(struct clk_core *core, in clk_core_determine_round_nolock()
1608 static void clk_core_init_rate_req(struct clk_core * const core, in clk_core_init_rate_req()
1612 struct clk_core *parent; in clk_core_init_rate_req()
1683 static bool clk_core_can_round(struct clk_core * const core) in clk_core_can_round()
1688 static int clk_core_round_rate_nolock(struct clk_core *core, in clk_core_round_rate_nolock()
1834 static int __clk_notify(struct clk_core *core, unsigned long msg, in __clk_notify()
1866 static void __clk_recalc_accuracies(struct clk_core *core) in __clk_recalc_accuracies()
1869 struct clk_core *child; in __clk_recalc_accuracies()
1886 static long clk_core_get_accuracy_recalc(struct clk_core *core) in clk_core_get_accuracy_recalc()
1918 static unsigned long clk_recalc(struct clk_core *core, in clk_recalc()
1943 static void __clk_recalc_rates(struct clk_core *core, bool update_req, in __clk_recalc_rates()
1948 struct clk_core *child; in __clk_recalc_rates()
1972 static unsigned long clk_core_get_rate_recalc(struct clk_core *core) in clk_core_get_rate_recalc()
2004 static int clk_fetch_parent_index(struct clk_core *core, in clk_fetch_parent_index()
2005 struct clk_core *parent) in clk_fetch_parent_index()
2068 static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan) in clk_core_update_orphan_status()
2070 struct clk_core *child; in clk_core_update_orphan_status()
2078 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent) in clk_reparent()
2104 static struct clk_core *__clk_set_parent_before(struct clk_core *core, in __clk_set_parent_before()
2105 struct clk_core *parent) in __clk_set_parent_before()
2108 struct clk_core *old_parent = core->parent; in __clk_set_parent_before()
2150 static void __clk_set_parent_after(struct clk_core *core, in __clk_set_parent_after()
2151 struct clk_core *parent, in __clk_set_parent_after()
2152 struct clk_core *old_parent) in __clk_set_parent_after()
2170 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent, in __clk_set_parent()
2175 struct clk_core *old_parent; in __clk_set_parent()
2216 static int __clk_speculate_rates(struct clk_core *core, in __clk_speculate_rates()
2219 struct clk_core *child; in __clk_speculate_rates()
2247 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree()
2248 struct clk_core *new_parent, u8 p_index) in clk_calc_subtree()
2250 struct clk_core *child; in clk_calc_subtree()
2270 static struct clk_core *clk_calc_new_rates(struct clk_core *core, in clk_calc_new_rates()
2273 struct clk_core *top = core; in clk_calc_new_rates()
2274 struct clk_core *old_parent, *parent; in clk_calc_new_rates()
2357 static struct clk_core *clk_propagate_rate_change(struct clk_core *core, in clk_propagate_rate_change()
2360 struct clk_core *child, *tmp_clk, *fail_clk = NULL; in clk_propagate_rate_change()
2395 static void clk_change_rate(struct clk_core *core) in clk_change_rate()
2397 struct clk_core *child; in clk_change_rate()
2402 struct clk_core *old_parent; in clk_change_rate()
2403 struct clk_core *parent = NULL; in clk_change_rate()
2484 static unsigned long clk_core_req_round_rate_nolock(struct clk_core *core, in clk_core_req_round_rate_nolock()
2514 static int clk_core_set_rate_nolock(struct clk_core *core, in clk_core_set_rate_nolock()
2517 struct clk_core *top, *fail_clk; in clk_core_set_rate_nolock()
2809 static struct clk_core *__clk_init_parent(struct clk_core *core) in __clk_init_parent()
2819 static void clk_core_reparent(struct clk_core *core, in clk_core_reparent()
2820 struct clk_core *new_parent) in clk_core_reparent()
2855 static int clk_core_set_parent_nolock(struct clk_core *core, in clk_core_set_parent_nolock()
2856 struct clk_core *parent) in clk_core_set_parent_nolock()
2967 static int clk_core_set_phase_nolock(struct clk_core *core, int degrees) in clk_core_set_phase_nolock()
3040 static int clk_core_get_phase(struct clk_core *core) in clk_core_get_phase()
3078 static void clk_core_reset_duty_cycle_nolock(struct clk_core *core) in clk_core_reset_duty_cycle_nolock()
3085 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core);
3087 static int clk_core_update_duty_cycle_nolock(struct clk_core *core) in clk_core_update_duty_cycle_nolock()
3112 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core) in clk_core_update_duty_cycle_parent_nolock()
3127 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
3130 static int clk_core_set_duty_cycle_nolock(struct clk_core *core, in clk_core_set_duty_cycle_nolock()
3154 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core, in clk_core_set_duty_cycle_parent_nolock()
3210 static int clk_core_get_scaled_duty_cycle(struct clk_core *core, in clk_core_get_scaled_duty_cycle()
3251 * share the same struct clk_core object.
3285 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, in clk_summary_show_one()
3326 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c, in clk_summary_show_subtree()
3329 struct clk_core *child; in clk_summary_show_subtree()
3339 struct clk_core *c; in clk_summary_show()
3364 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level) in clk_dump_one()
3387 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level) in clk_dump_subtree()
3389 struct clk_core *child; in clk_dump_subtree()
3403 struct clk_core *c; in clk_dump_show()
3442 struct clk_core *core = data; in clk_rate_set()
3456 struct clk_core *core = data; in clk_phase_set()
3471 struct clk_core *core = data; in clk_prepare_enable_set()
3484 struct clk_core *core = data; in clk_prepare_enable_get()
3503 struct clk_core *core = data; in clk_rate_get()
3516 struct clk_core *core = data; in clk_phase_get()
3546 struct clk_core *core = s->private; in clk_flags_show()
3565 static void possible_parent_show(struct seq_file *s, struct clk_core *core, in possible_parent_show()
3568 struct clk_core *parent; in possible_parent_show()
3604 struct clk_core *core = s->private; in possible_parents_show()
3618 struct clk_core *core = s->private; in current_parent_show()
3632 struct clk_core *core = s->private; in current_parent_write()
3633 struct clk_core *parent; in current_parent_write()
3665 struct clk_core *core = s->private; in clk_duty_cycle_show()
3676 struct clk_core *core = s->private; in clk_min_rate_show()
3690 struct clk_core *core = s->private; in clk_max_rate_show()
3702 static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry) in clk_debug_create_one()
3755 static void clk_debug_register(struct clk_core *core) in clk_debug_register()
3772 static void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
3792 struct clk_core *core; in clk_debug_init()
3834 static inline void clk_debug_register(struct clk_core *core) { } in clk_debug_register()
3835 static inline void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
3842 struct clk_core *orphan; in clk_core_reparent_orphans_nolock()
3850 struct clk_core *parent = __clk_init_parent(orphan); in clk_core_reparent_orphans_nolock()
3882 * __clk_core_init - initialize the data structures in a struct clk_core
3883 * @core: clk_core being initialized
3885 * Initializes the lists in struct clk_core, queries the hardware for the
3888 static int __clk_core_init(struct clk_core *core) in __clk_core_init()
3891 struct clk_core *parent; in __clk_core_init()
4090 * clk_core_link_consumer - Add a clk consumer to the list of consumers in a clk_core
4094 static void clk_core_link_consumer(struct clk_core *core, struct clk *clk) in clk_core_link_consumer()
4102 * clk_core_unlink_consumer - Remove a clk consumer from the list of consumers in a clk_core
4112 * alloc_clk - Allocate a clk consumer, but leave it unlinked to the clk_core
4119 static struct clk *alloc_clk(struct clk_core *core, const char *dev_id, in alloc_clk()
4140 * Note, this assumes the clk has been unlinked from the clk_core consumer
4150 * clk_hw_create_clk: Allocate and link a clk consumer to a clk_core given
4158 * consumers. It connects a consumer to the clk_core and clk_hw structures
4165 struct clk_core *core; in clk_hw_create_clk()
4224 static int clk_core_populate_parent_map(struct clk_core *core, in clk_core_populate_parent_map()
4238 * Avoid unnecessary string look-ups of clk_core's possible parents by in clk_core_populate_parent_map()
4239 * having a cache of names/clk_hw pointers to clk_core pointers. in clk_core_populate_parent_map()
4286 static void clk_core_free_parent_map(struct clk_core *core) in clk_core_free_parent_map()
4301 /* Free memory allocated for a struct clk_core */
4304 struct clk_core *core = container_of(ref, struct clk_core, ref); in __clk_release()
4321 struct clk_core *core; in __clk_register()
4524 static void clk_core_evict_parent_cache_subtree(struct clk_core *root, in clk_core_evict_parent_cache_subtree()
4525 const struct clk_core *target) in clk_core_evict_parent_cache_subtree()
4528 struct clk_core *child; in clk_core_evict_parent_cache_subtree()
4539 static void clk_core_evict_parent_cache(struct clk_core *core) in clk_core_evict_parent_cache()
4542 struct clk_core *root; in clk_core_evict_parent_cache()
4587 struct clk_core *child; in clk_unregister()