Lines Matching defs:clk_core
54 struct clk_core *core;
60 struct clk_core {
68 struct clk_core *parent;
75 struct clk_core *new_parent;
76 struct clk_core *new_child;
103 struct clk_core *core;
114 static int clk_pm_runtime_get(struct clk_core *core)
129 static void clk_pm_runtime_put(struct clk_core *core)
155 struct clk_core *core, *failed;
200 struct clk_core *core;
207 static void clk_pm_runtime_init(struct clk_core *core)
289 static bool clk_core_rate_is_protected(struct clk_core *core)
294 static bool clk_core_is_prepared(struct clk_core *core)
313 static bool clk_core_is_enabled(struct clk_core *core)
393 static struct clk_core *__clk_lookup_subtree(const char *name,
394 struct clk_core *core)
396 struct clk_core *child;
397 struct clk_core *ret;
411 static struct clk_core *clk_core_lookup(const char *name)
413 struct clk_core *root_clk;
414 struct clk_core *ret;
456 * clk_core_get - Find the clk_core parent of a clk
489 * A valid clk_core pointer when the clk can be found in the provider.
491 static struct clk_core *clk_core_get(struct clk_core *core, u8 p_index)
522 static void clk_core_fill_parent_index(struct clk_core *core, u8 index)
525 struct clk_core *parent = ERR_PTR(-ENOENT);
547 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core,
562 struct clk_core *parent;
575 static unsigned long clk_core_get_rate_nolock(struct clk_core *core)
597 static unsigned long clk_core_get_accuracy_no_lock(struct clk_core *core)
651 struct clk_core *core = hw->core, *parent, *best_parent = NULL;
713 struct clk_core *core = clk_core_lookup(name);
718 static void clk_core_get_boundaries(struct clk_core *core,
736 static bool clk_core_check_boundaries(struct clk_core *core,
789 static void clk_core_rate_unprotect(struct clk_core *core)
806 static int clk_core_rate_nuke_protect(struct clk_core *core)
864 static void clk_core_rate_protect(struct clk_core *core)
877 static void clk_core_rate_restore_protect(struct clk_core *core, int count)
923 static void clk_core_unprepare(struct clk_core *core)
956 static void clk_core_unprepare_lock(struct clk_core *core)
983 static int clk_core_prepare(struct clk_core *core)
1032 static int clk_core_prepare_lock(struct clk_core *core)
1064 static void clk_core_disable(struct clk_core *core)
1091 static void clk_core_disable_lock(struct clk_core *core)
1121 static int clk_core_enable(struct clk_core *core)
1157 static int clk_core_enable_lock(struct clk_core *core)
1181 struct clk_core *core = hw->core;
1190 static int clk_core_save_context(struct clk_core *core)
1192 struct clk_core *child;
1207 static void clk_core_restore_context(struct clk_core *core)
1209 struct clk_core *child;
1227 struct clk_core *clk;
1254 struct clk_core *core;
1286 static int clk_core_prepare_enable(struct clk_core *core)
1301 static void clk_core_disable_unprepare(struct clk_core *core)
1307 static void __init clk_unprepare_unused_subtree(struct clk_core *core)
1309 struct clk_core *child;
1332 static void __init clk_disable_unused_subtree(struct clk_core *core)
1334 struct clk_core *child;
1383 struct clk_core *core;
1422 static int clk_core_determine_round_nolock(struct clk_core *core,
1456 static void clk_core_init_rate_req(struct clk_core * const core,
1459 struct clk_core *parent;
1474 static bool clk_core_can_round(struct clk_core * const core)
1479 static int clk_core_round_rate_nolock(struct clk_core *core,
1602 static int __clk_notify(struct clk_core *core, unsigned long msg,
1634 static void __clk_recalc_accuracies(struct clk_core *core)
1637 struct clk_core *child;
1654 static long clk_core_get_accuracy_recalc(struct clk_core *core)
1686 static unsigned long clk_recalc(struct clk_core *core,
1710 static void __clk_recalc_rates(struct clk_core *core, unsigned long msg)
1714 struct clk_core *child;
1736 static unsigned long clk_core_get_rate_recalc(struct clk_core *core)
1767 static int clk_fetch_parent_index(struct clk_core *core,
1768 struct clk_core *parent)
1831 static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan)
1833 struct clk_core *child;
1841 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent)
1867 static struct clk_core *__clk_set_parent_before(struct clk_core *core,
1868 struct clk_core *parent)
1871 struct clk_core *old_parent = core->parent;
1913 static void __clk_set_parent_after(struct clk_core *core,
1914 struct clk_core *parent,
1915 struct clk_core *old_parent)
1933 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent,
1938 struct clk_core *old_parent;
1978 static int __clk_speculate_rates(struct clk_core *core,
1981 struct clk_core *child;
2009 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate,
2010 struct clk_core *new_parent, u8 p_index)
2012 struct clk_core *child;
2032 static struct clk_core *clk_calc_new_rates(struct clk_core *core,
2035 struct clk_core *top = core;
2036 struct clk_core *old_parent, *parent;
2119 static struct clk_core *clk_propagate_rate_change(struct clk_core *core,
2122 struct clk_core *child, *tmp_clk, *fail_clk = NULL;
2157 static void clk_change_rate(struct clk_core *core)
2159 struct clk_core *child;
2164 struct clk_core *old_parent;
2165 struct clk_core *parent = NULL;
2254 static unsigned long clk_core_req_round_rate_nolock(struct clk_core *core,
2281 static int clk_core_set_rate_nolock(struct clk_core *core,
2284 struct clk_core *top, *fail_clk;
2553 static struct clk_core *__clk_init_parent(struct clk_core *core)
2563 static void clk_core_reparent(struct clk_core *core,
2564 struct clk_core *new_parent)
2591 struct clk_core *core, *parent_core;
2613 static int clk_core_set_parent_nolock(struct clk_core *core,
2614 struct clk_core *parent)
2725 static int clk_core_set_phase_nolock(struct clk_core *core, int degrees)
2798 static int clk_core_get_phase(struct clk_core *core)
2836 static void clk_core_reset_duty_cycle_nolock(struct clk_core *core)
2843 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core);
2845 static int clk_core_update_duty_cycle_nolock(struct clk_core *core)
2870 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core)
2885 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
2888 static int clk_core_set_duty_cycle_nolock(struct clk_core *core,
2912 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
2968 static int clk_core_get_scaled_duty_cycle(struct clk_core *core,
3009 * share the same struct clk_core object.
3043 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c,
3064 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c,
3067 struct clk_core *child;
3077 struct clk_core *c;
3096 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level)
3119 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level)
3121 struct clk_core *child;
3135 struct clk_core *c;
3167 struct clk_core *core = data;
3181 struct clk_core *core = data;
3194 struct clk_core *core = data;
3210 struct clk_core *core = data;
3240 struct clk_core *core = s->private;
3259 static void possible_parent_show(struct seq_file *s, struct clk_core *core,
3262 struct clk_core *parent;
3298 struct clk_core *core = s->private;
3312 struct clk_core *core = s->private;
3323 struct clk_core *core = s->private;
3334 struct clk_core *core = s->private;
3348 struct clk_core *core = s->private;
3360 static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry)
3408 static void clk_debug_register(struct clk_core *core)
3425 static void clk_debug_unregister(struct clk_core *core)
3445 struct clk_core *core;
3487 static inline void clk_debug_register(struct clk_core *core) { }
3488 static inline void clk_debug_unregister(struct clk_core *core)
3495 struct clk_core *orphan;
3503 struct clk_core *parent = __clk_init_parent(orphan);
3535 * __clk_core_init - initialize the data structures in a struct clk_core
3536 * @core: clk_core being initialized
3538 * Initializes the lists in struct clk_core, queries the hardware for the
3541 static int __clk_core_init(struct clk_core *core)
3544 struct clk_core *parent;
3740 * clk_core_link_consumer - Add a clk consumer to the list of consumers in a clk_core
3744 static void clk_core_link_consumer(struct clk_core *core, struct clk *clk)
3752 * clk_core_unlink_consumer - Remove a clk consumer from the list of consumers in a clk_core
3762 * alloc_clk - Allocate a clk consumer, but leave it unlinked to the clk_core
3769 static struct clk *alloc_clk(struct clk_core *core, const char *dev_id,
3790 * Note, this assumes the clk has been unlinked from the clk_core consumer
3800 * clk_hw_create_clk: Allocate and link a clk consumer to a clk_core given
3808 * consumers. It connects a consumer to the clk_core and clk_hw structures
3815 struct clk_core *core;
3855 static int clk_core_populate_parent_map(struct clk_core *core,
3869 * Avoid unnecessary string look-ups of clk_core's possible parents by
3870 * having a cache of names/clk_hw pointers to clk_core pointers.
3917 static void clk_core_free_parent_map(struct clk_core *core)
3932 /* Free memory allocated for a struct clk_core */
3935 struct clk_core *core = container_of(ref, struct clk_core, ref);
3952 struct clk_core *core;
4141 static void clk_core_evict_parent_cache_subtree(struct clk_core *root,
4142 struct clk_core *target)
4145 struct clk_core *child;
4156 static void clk_core_evict_parent_cache(struct clk_core *core)
4159 struct clk_core *root;
4203 struct clk_core *child;