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
98 struct clk_core *core; argument
109 static int clk_pm_runtime_get(struct clk_core *core) in clk_pm_runtime_get()
120 static void clk_pm_runtime_put(struct clk_core *core) in clk_pm_runtime_put()
197 static bool clk_core_rate_is_protected(struct clk_core *core) in clk_core_rate_is_protected()
202 static bool clk_core_is_prepared(struct clk_core *core) in clk_core_is_prepared()
221 static bool clk_core_is_enabled(struct clk_core *core) in clk_core_is_enabled()
290 static struct clk_core *__clk_lookup_subtree(const char *name, in __clk_lookup_subtree()
291 struct clk_core *core) in __clk_lookup_subtree()
293 struct clk_core *child; in __clk_lookup_subtree()
294 struct clk_core *ret; in __clk_lookup_subtree()
308 static struct clk_core *clk_core_lookup(const char *name) in clk_core_lookup()
310 struct clk_core *root_clk; in clk_core_lookup()
311 struct clk_core *ret; in clk_core_lookup()
388 static struct clk_core *clk_core_get(struct clk_core *core, u8 p_index) in clk_core_get()
416 static void clk_core_fill_parent_index(struct clk_core *core, u8 index) in clk_core_fill_parent_index()
419 struct clk_core *parent = ERR_PTR(-ENOENT); in clk_core_fill_parent_index()
441 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core, in clk_core_get_parent_by_index()
456 struct clk_core *parent; in clk_hw_get_parent_by_index()
469 static unsigned long clk_core_get_rate_nolock(struct clk_core *core) in clk_core_get_rate_nolock()
491 static unsigned long __clk_get_accuracy(struct clk_core *core) in __clk_get_accuracy()
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()
671 static void clk_core_rate_unprotect(struct clk_core *core) in clk_core_rate_unprotect()
688 static int clk_core_rate_nuke_protect(struct clk_core *core) in clk_core_rate_nuke_protect()
746 static void clk_core_rate_protect(struct clk_core *core) in clk_core_rate_protect()
759 static void clk_core_rate_restore_protect(struct clk_core *core, int count) in clk_core_rate_restore_protect()
805 static void clk_core_unprepare(struct clk_core *core) in clk_core_unprepare()
839 static void clk_core_unprepare_lock(struct clk_core *core) in clk_core_unprepare_lock()
866 static int clk_core_prepare(struct clk_core *core) in clk_core_prepare()
915 static int clk_core_prepare_lock(struct clk_core *core) in clk_core_prepare_lock()
947 static void clk_core_disable(struct clk_core *core) in clk_core_disable()
974 static void clk_core_disable_lock(struct clk_core *core) in clk_core_disable_lock()
1004 static int clk_core_enable(struct clk_core *core) in clk_core_enable()
1040 static int clk_core_enable_lock(struct clk_core *core) in clk_core_enable_lock()
1064 struct clk_core *core = hw->core; in clk_gate_restore_context()
1073 static int clk_core_save_context(struct clk_core *core) in clk_core_save_context()
1075 struct clk_core *child; in clk_core_save_context()
1090 static void clk_core_restore_context(struct clk_core *core) in clk_core_restore_context()
1092 struct clk_core *child; in clk_core_restore_context()
1110 struct clk_core *clk; in clk_save_context()
1137 struct clk_core *core; in clk_restore_context()
1169 static int clk_core_prepare_enable(struct clk_core *core) in clk_core_prepare_enable()
1184 static void clk_core_disable_unprepare(struct clk_core *core) in clk_core_disable_unprepare()
1190 static void clk_unprepare_unused_subtree(struct clk_core *core) in clk_unprepare_unused_subtree()
1192 struct clk_core *child; in clk_unprepare_unused_subtree()
1220 static void clk_disable_unused_subtree(struct clk_core *core) in clk_disable_unused_subtree()
1222 struct clk_core *child; in clk_disable_unused_subtree()
1276 struct clk_core *core; in clk_disable_unused()
1303 static int clk_core_determine_round_nolock(struct clk_core *core, in clk_core_determine_round_nolock()
1337 static void clk_core_init_rate_req(struct clk_core * const core, in clk_core_init_rate_req()
1340 struct clk_core *parent; in clk_core_init_rate_req()
1355 static bool clk_core_can_round(struct clk_core * const core) in clk_core_can_round()
1360 static int clk_core_round_rate_nolock(struct clk_core *core, in clk_core_round_rate_nolock()
1468 static int __clk_notify(struct clk_core *core, unsigned long msg, in __clk_notify()
1500 static void __clk_recalc_accuracies(struct clk_core *core) in __clk_recalc_accuracies()
1503 struct clk_core *child; in __clk_recalc_accuracies()
1520 static long clk_core_get_accuracy(struct clk_core *core) in clk_core_get_accuracy()
1552 static unsigned long clk_recalc(struct clk_core *core, in clk_recalc()
1576 static void __clk_recalc_rates(struct clk_core *core, unsigned long msg) in __clk_recalc_rates()
1580 struct clk_core *child; in __clk_recalc_rates()
1602 static unsigned long clk_core_get_rate(struct clk_core *core) in clk_core_get_rate()
1634 static int clk_fetch_parent_index(struct clk_core *core, in clk_fetch_parent_index()
1635 struct clk_core *parent) in clk_fetch_parent_index()
1680 static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan) in clk_core_update_orphan_status()
1682 struct clk_core *child; in clk_core_update_orphan_status()
1690 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent) in clk_reparent()
1716 static struct clk_core *__clk_set_parent_before(struct clk_core *core, in __clk_set_parent_before()
1717 struct clk_core *parent) in __clk_set_parent_before()
1720 struct clk_core *old_parent = core->parent; in __clk_set_parent_before()
1762 static void __clk_set_parent_after(struct clk_core *core, in __clk_set_parent_after()
1763 struct clk_core *parent, in __clk_set_parent_after()
1764 struct clk_core *old_parent) in __clk_set_parent_after()
1782 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent, in __clk_set_parent()
1787 struct clk_core *old_parent; in __clk_set_parent()
1827 static int __clk_speculate_rates(struct clk_core *core, in __clk_speculate_rates()
1830 struct clk_core *child; in __clk_speculate_rates()
1858 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree()
1859 struct clk_core *new_parent, u8 p_index) in clk_calc_subtree()
1861 struct clk_core *child; in clk_calc_subtree()
1881 static struct clk_core *clk_calc_new_rates(struct clk_core *core, in clk_calc_new_rates()
1884 struct clk_core *top = core; in clk_calc_new_rates()
1885 struct clk_core *old_parent, *parent; in clk_calc_new_rates()
1968 static struct clk_core *clk_propagate_rate_change(struct clk_core *core, in clk_propagate_rate_change()
1971 struct clk_core *child, *tmp_clk, *fail_clk = NULL; in clk_propagate_rate_change()
2006 static void clk_change_rate(struct clk_core *core) in clk_change_rate()
2008 struct clk_core *child; in clk_change_rate()
2013 struct clk_core *old_parent; in clk_change_rate()
2014 struct clk_core *parent = NULL; in clk_change_rate()
2103 static unsigned long clk_core_req_round_rate_nolock(struct clk_core *core, in clk_core_req_round_rate_nolock()
2130 static int clk_core_set_rate_nolock(struct clk_core *core, in clk_core_set_rate_nolock()
2133 struct clk_core *top, *fail_clk; in clk_core_set_rate_nolock()
2396 static struct clk_core *__clk_init_parent(struct clk_core *core) in __clk_init_parent()
2406 static void clk_core_reparent(struct clk_core *core, in clk_core_reparent()
2407 struct clk_core *new_parent) in clk_core_reparent()
2434 struct clk_core *core, *parent_core; in clk_has_parent()
2456 static int clk_core_set_parent_nolock(struct clk_core *core, in clk_core_set_parent_nolock()
2457 struct clk_core *parent) in clk_core_set_parent_nolock()
2568 static int clk_core_set_phase_nolock(struct clk_core *core, int degrees) in clk_core_set_phase_nolock()
2641 static int clk_core_get_phase(struct clk_core *core) in clk_core_get_phase()
2671 static void clk_core_reset_duty_cycle_nolock(struct clk_core *core) in clk_core_reset_duty_cycle_nolock()
2678 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core);
2680 static int clk_core_update_duty_cycle_nolock(struct clk_core *core) in clk_core_update_duty_cycle_nolock()
2705 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core) in clk_core_update_duty_cycle_parent_nolock()
2720 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
2723 static int clk_core_set_duty_cycle_nolock(struct clk_core *core, in clk_core_set_duty_cycle_nolock()
2747 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core, in clk_core_set_duty_cycle_parent_nolock()
2803 static int clk_core_get_scaled_duty_cycle(struct clk_core *core, in clk_core_get_scaled_duty_cycle()
2878 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, in clk_summary_show_one()
2890 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c, in clk_summary_show_subtree()
2893 struct clk_core *child; in clk_summary_show_subtree()
2903 struct clk_core *c; in clk_summary_show()
2922 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level) in clk_dump_one()
2942 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level) in clk_dump_subtree()
2944 struct clk_core *child; in clk_dump_subtree()
2958 struct clk_core *c; in clk_dump_show()
3003 struct clk_core *core = s->private; in clk_flags_show()
3022 static void possible_parent_show(struct seq_file *s, struct clk_core *core, in possible_parent_show()
3025 struct clk_core *parent; in possible_parent_show()
3058 struct clk_core *core = s->private; in possible_parents_show()
3072 struct clk_core *core = s->private; in current_parent_show()
3083 struct clk_core *core = s->private; in clk_duty_cycle_show()
3094 struct clk_core *core = s->private; in clk_min_rate_show()
3108 struct clk_core *core = s->private; in clk_max_rate_show()
3120 static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry) in clk_debug_create_one()
3163 static void clk_debug_register(struct clk_core *core) in clk_debug_register()
3180 static void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
3200 struct clk_core *core; in clk_debug_init()
3224 static inline void clk_debug_register(struct clk_core *core) { } in clk_debug_register()
3225 static inline void clk_debug_reparent(struct clk_core *core, in clk_debug_reparent()
3226 struct clk_core *new_parent) in clk_debug_reparent()
3229 static inline void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
3241 static int __clk_core_init(struct clk_core *core) in __clk_core_init()
3244 struct clk_core *orphan; in __clk_core_init()
3397 struct clk_core *parent = __clk_init_parent(orphan); in __clk_core_init()
3431 static void clk_core_link_consumer(struct clk_core *core, struct clk *clk) in clk_core_link_consumer()
3456 static struct clk *alloc_clk(struct clk_core *core, const char *dev_id, in alloc_clk()
3502 struct clk_core *core; in clk_hw_create_clk()
3542 static int clk_core_populate_parent_map(struct clk_core *core, in clk_core_populate_parent_map()
3604 static void clk_core_free_parent_map(struct clk_core *core) in clk_core_free_parent_map()
3623 struct clk_core *core; in __clk_register()
3759 struct clk_core *core = container_of(ref, struct clk_core, ref); in __clk_release()
3803 static void clk_core_evict_parent_cache_subtree(struct clk_core *root, in clk_core_evict_parent_cache_subtree()
3804 struct clk_core *target) in clk_core_evict_parent_cache_subtree()
3807 struct clk_core *child; in clk_core_evict_parent_cache_subtree()
3818 static void clk_core_evict_parent_cache(struct clk_core *core) in clk_core_evict_parent_cache()
3821 struct clk_core *root; in clk_core_evict_parent_cache()
3860 struct clk_core *child; in clk_unregister()