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()
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()
287 static struct clk_core *__clk_lookup_subtree(const char *name, in __clk_lookup_subtree()
288 struct clk_core *core) in __clk_lookup_subtree()
290 struct clk_core *child; in __clk_lookup_subtree()
291 struct clk_core *ret; in __clk_lookup_subtree()
305 static struct clk_core *clk_core_lookup(const char *name) in clk_core_lookup()
307 struct clk_core *root_clk; in clk_core_lookup()
308 struct clk_core *ret; in clk_core_lookup()
385 static struct clk_core *clk_core_get(struct clk_core *core, u8 p_index) in clk_core_get()
413 static void clk_core_fill_parent_index(struct clk_core *core, u8 index) in clk_core_fill_parent_index()
416 struct clk_core *parent; in clk_core_fill_parent_index()
439 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core, in clk_core_get_parent_by_index()
454 struct clk_core *parent; in clk_hw_get_parent_by_index()
467 static unsigned long clk_core_get_rate_nolock(struct clk_core *core) in clk_core_get_rate_nolock()
489 static unsigned long clk_core_get_accuracy_no_lock(struct clk_core *core) in clk_core_get_accuracy_no_lock()
539 static void clk_core_init_rate_req(struct clk_core * const core,
543 static int clk_core_round_rate_nolock(struct clk_core *core,
546 static bool clk_core_has_parent(struct clk_core *core, const struct clk_core *parent) in clk_core_has_parent()
548 struct clk_core *tmp; in clk_core_has_parent()
568 clk_core_forward_rate_req(struct clk_core *core, in clk_core_forward_rate_req()
570 struct clk_core *parent, in clk_core_forward_rate_req()
590 struct clk_core *core = hw->core, *parent, *best_parent = NULL; in clk_mux_determine_rate_flags()
664 struct clk_core *core = clk_core_lookup(name); in __clk_lookup()
669 static void clk_core_get_boundaries(struct clk_core *core, in clk_core_get_boundaries()
703 static bool clk_core_check_boundaries(struct clk_core *core, in clk_core_check_boundaries()
756 static void clk_core_rate_unprotect(struct clk_core *core) in clk_core_rate_unprotect()
773 static int clk_core_rate_nuke_protect(struct clk_core *core) in clk_core_rate_nuke_protect()
831 static void clk_core_rate_protect(struct clk_core *core) in clk_core_rate_protect()
844 static void clk_core_rate_restore_protect(struct clk_core *core, int count) in clk_core_rate_restore_protect()
890 static void clk_core_unprepare(struct clk_core *core) in clk_core_unprepare()
923 static void clk_core_unprepare_lock(struct clk_core *core) in clk_core_unprepare_lock()
950 static int clk_core_prepare(struct clk_core *core) in clk_core_prepare()
999 static int clk_core_prepare_lock(struct clk_core *core) in clk_core_prepare_lock()
1031 static void clk_core_disable(struct clk_core *core) in clk_core_disable()
1058 static void clk_core_disable_lock(struct clk_core *core) in clk_core_disable_lock()
1088 static int clk_core_enable(struct clk_core *core) in clk_core_enable()
1124 static int clk_core_enable_lock(struct clk_core *core) in clk_core_enable_lock()
1148 struct clk_core *core = hw->core; in clk_gate_restore_context()
1157 static int clk_core_save_context(struct clk_core *core) in clk_core_save_context()
1159 struct clk_core *child; in clk_core_save_context()
1174 static void clk_core_restore_context(struct clk_core *core) in clk_core_restore_context()
1176 struct clk_core *child; in clk_core_restore_context()
1194 struct clk_core *clk; in clk_save_context()
1221 struct clk_core *core; in clk_restore_context()
1274 static int clk_core_prepare_enable(struct clk_core *core) in clk_core_prepare_enable()
1289 static void clk_core_disable_unprepare(struct clk_core *core) in clk_core_disable_unprepare()
1295 static void __init clk_unprepare_unused_subtree(struct clk_core *core) in clk_unprepare_unused_subtree()
1297 struct clk_core *child; in clk_unprepare_unused_subtree()
1325 static void __init clk_disable_unused_subtree(struct clk_core *core) in clk_disable_unused_subtree()
1327 struct clk_core *child; in clk_disable_unused_subtree()
1381 struct clk_core *core; in clk_disable_unused()
1408 static int clk_core_determine_round_nolock(struct clk_core *core, in clk_core_determine_round_nolock()
1456 static void clk_core_init_rate_req(struct clk_core * const core, in clk_core_init_rate_req()
1460 struct clk_core *parent; in clk_core_init_rate_req()
1529 static bool clk_core_can_round(struct clk_core * const core) in clk_core_can_round()
1534 static int clk_core_round_rate_nolock(struct clk_core *core, in clk_core_round_rate_nolock()
1667 static int __clk_notify(struct clk_core *core, unsigned long msg, in __clk_notify()
1699 static void __clk_recalc_accuracies(struct clk_core *core) in __clk_recalc_accuracies()
1702 struct clk_core *child; in __clk_recalc_accuracies()
1719 static long clk_core_get_accuracy_recalc(struct clk_core *core) in clk_core_get_accuracy_recalc()
1751 static unsigned long clk_recalc(struct clk_core *core, in clk_recalc()
1776 static void __clk_recalc_rates(struct clk_core *core, bool update_req, in __clk_recalc_rates()
1781 struct clk_core *child; in __clk_recalc_rates()
1805 static unsigned long clk_core_get_rate_recalc(struct clk_core *core) in clk_core_get_rate_recalc()
1837 static int clk_fetch_parent_index(struct clk_core *core, in clk_fetch_parent_index()
1838 struct clk_core *parent) in clk_fetch_parent_index()
1901 static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan) in clk_core_update_orphan_status()
1903 struct clk_core *child; in clk_core_update_orphan_status()
1911 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent) in clk_reparent()
1937 static struct clk_core *__clk_set_parent_before(struct clk_core *core, in __clk_set_parent_before()
1938 struct clk_core *parent) in __clk_set_parent_before()
1941 struct clk_core *old_parent = core->parent; in __clk_set_parent_before()
1983 static void __clk_set_parent_after(struct clk_core *core, in __clk_set_parent_after()
1984 struct clk_core *parent, in __clk_set_parent_after()
1985 struct clk_core *old_parent) in __clk_set_parent_after()
2003 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent, in __clk_set_parent()
2008 struct clk_core *old_parent; in __clk_set_parent()
2049 static int __clk_speculate_rates(struct clk_core *core, in __clk_speculate_rates()
2052 struct clk_core *child; in __clk_speculate_rates()
2080 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate, in clk_calc_subtree()
2081 struct clk_core *new_parent, u8 p_index) in clk_calc_subtree()
2083 struct clk_core *child; in clk_calc_subtree()
2103 static struct clk_core *clk_calc_new_rates(struct clk_core *core, in clk_calc_new_rates()
2106 struct clk_core *top = core; in clk_calc_new_rates()
2107 struct clk_core *old_parent, *parent; in clk_calc_new_rates()
2186 static struct clk_core *clk_propagate_rate_change(struct clk_core *core, in clk_propagate_rate_change()
2189 struct clk_core *child, *tmp_clk, *fail_clk = NULL; in clk_propagate_rate_change()
2224 static void clk_change_rate(struct clk_core *core) in clk_change_rate()
2226 struct clk_core *child; in clk_change_rate()
2231 struct clk_core *old_parent; in clk_change_rate()
2232 struct clk_core *parent = NULL; in clk_change_rate()
2313 static unsigned long clk_core_req_round_rate_nolock(struct clk_core *core, in clk_core_req_round_rate_nolock()
2339 static int clk_core_set_rate_nolock(struct clk_core *core, in clk_core_set_rate_nolock()
2342 struct clk_core *top, *fail_clk; in clk_core_set_rate_nolock()
2634 static struct clk_core *__clk_init_parent(struct clk_core *core) in __clk_init_parent()
2644 static void clk_core_reparent(struct clk_core *core, in clk_core_reparent()
2645 struct clk_core *new_parent) in clk_core_reparent()
2680 static int clk_core_set_parent_nolock(struct clk_core *core, in clk_core_set_parent_nolock()
2681 struct clk_core *parent) in clk_core_set_parent_nolock()
2792 static int clk_core_set_phase_nolock(struct clk_core *core, int degrees) in clk_core_set_phase_nolock()
2865 static int clk_core_get_phase(struct clk_core *core) in clk_core_get_phase()
2903 static void clk_core_reset_duty_cycle_nolock(struct clk_core *core) in clk_core_reset_duty_cycle_nolock()
2910 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core);
2912 static int clk_core_update_duty_cycle_nolock(struct clk_core *core) in clk_core_update_duty_cycle_nolock()
2937 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core) in clk_core_update_duty_cycle_parent_nolock()
2952 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
2955 static int clk_core_set_duty_cycle_nolock(struct clk_core *core, in clk_core_set_duty_cycle_nolock()
2979 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core, in clk_core_set_duty_cycle_parent_nolock()
3035 static int clk_core_get_scaled_duty_cycle(struct clk_core *core, in clk_core_get_scaled_duty_cycle()
3110 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, in clk_summary_show_one()
3138 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c, in clk_summary_show_subtree()
3141 struct clk_core *child; in clk_summary_show_subtree()
3153 struct clk_core *c; in clk_summary_show()
3172 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level) in clk_dump_one()
3195 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level) in clk_dump_subtree()
3197 struct clk_core *child; in clk_dump_subtree()
3211 struct clk_core *c; in clk_dump_show()
3243 struct clk_core *core = data; in clk_rate_set()
3257 struct clk_core *core = data; in clk_prepare_enable_set()
3270 struct clk_core *core = data; in clk_prepare_enable_get()
3286 struct clk_core *core = data; in clk_rate_get()
3319 struct clk_core *core = s->private; in clk_flags_show()
3338 static void possible_parent_show(struct seq_file *s, struct clk_core *core, in possible_parent_show()
3341 struct clk_core *parent; in possible_parent_show()
3374 struct clk_core *core = s->private; in possible_parents_show()
3388 struct clk_core *core = s->private; in current_parent_show()
3402 struct clk_core *core = s->private; in current_parent_write()
3403 struct clk_core *parent; in current_parent_write()
3435 struct clk_core *core = s->private; in clk_duty_cycle_show()
3446 struct clk_core *core = s->private; in clk_min_rate_show()
3460 struct clk_core *core = s->private; in clk_max_rate_show()
3472 static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry) in clk_debug_create_one()
3524 static void clk_debug_register(struct clk_core *core) in clk_debug_register()
3541 static void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
3561 struct clk_core *core; in clk_debug_init()
3603 static inline void clk_debug_register(struct clk_core *core) { } in clk_debug_register()
3604 static inline void clk_debug_unregister(struct clk_core *core) in clk_debug_unregister()
3611 struct clk_core *orphan; in clk_core_reparent_orphans_nolock()
3619 struct clk_core *parent = __clk_init_parent(orphan); in clk_core_reparent_orphans_nolock()
3657 static int __clk_core_init(struct clk_core *core) in __clk_core_init()
3660 struct clk_core *parent; in __clk_core_init()
3855 static void clk_core_link_consumer(struct clk_core *core, struct clk *clk) in clk_core_link_consumer()
3880 static struct clk *alloc_clk(struct clk_core *core, const char *dev_id, in alloc_clk()
3926 struct clk_core *core; in clk_hw_create_clk()
3985 static int clk_core_populate_parent_map(struct clk_core *core, in clk_core_populate_parent_map()
4047 static void clk_core_free_parent_map(struct clk_core *core) in clk_core_free_parent_map()
4066 struct clk_core *core; in __clk_register()
4224 struct clk_core *core = container_of(ref, struct clk_core, ref); in __clk_release()
4268 static void clk_core_evict_parent_cache_subtree(struct clk_core *root, in clk_core_evict_parent_cache_subtree()
4269 const struct clk_core *target) in clk_core_evict_parent_cache_subtree()
4272 struct clk_core *child; in clk_core_evict_parent_cache_subtree()
4283 static void clk_core_evict_parent_cache(struct clk_core *core) in clk_core_evict_parent_cache()
4286 struct clk_core *root; in clk_core_evict_parent_cache()
4330 struct clk_core *child; in clk_unregister()