Lines Matching defs:clk_core

50 	struct clk_core		*core;
56 struct clk_core {
63 struct clk_core *parent;
70 struct clk_core *new_parent;
71 struct clk_core *new_child;
98 struct clk_core *core;
109 static int clk_pm_runtime_get(struct clk_core *core)
117 static void clk_pm_runtime_put(struct clk_core *core)
194 static bool clk_core_rate_is_protected(struct clk_core *core)
199 static bool clk_core_is_prepared(struct clk_core *core)
218 static bool clk_core_is_enabled(struct clk_core *core)
298 static struct clk_core *__clk_lookup_subtree(const char *name,
299 struct clk_core *core)
301 struct clk_core *child;
302 struct clk_core *ret;
316 static struct clk_core *clk_core_lookup(const char *name)
318 struct clk_core *root_clk;
319 struct clk_core *ret;
361 * clk_core_get - Find the clk_core parent of a clk
394 * A valid clk_core pointer when the clk can be found in the provider.
396 static struct clk_core *clk_core_get(struct clk_core *core, u8 p_index)
427 static void clk_core_fill_parent_index(struct clk_core *core, u8 index)
430 struct clk_core *parent;
453 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core,
468 struct clk_core *parent;
481 static unsigned long clk_core_get_rate_nolock(struct clk_core *core)
503 static unsigned long clk_core_get_accuracy_no_lock(struct clk_core *core)
553 static void clk_core_init_rate_req(struct clk_core * const core,
557 static int clk_core_round_rate_nolock(struct clk_core *core,
560 static bool clk_core_has_parent(struct clk_core *core, const struct clk_core *parent)
562 struct clk_core *tmp;
582 clk_core_forward_rate_req(struct clk_core *core,
584 struct clk_core *parent,
604 struct clk_core *core = hw->core;
605 struct clk_core *parent = core->parent;
645 struct clk_core *core = hw->core, *parent, *best_parent = NULL;
700 struct clk_core *core = clk_core_lookup(name);
705 static void clk_core_get_boundaries(struct clk_core *core,
739 static bool clk_core_check_boundaries(struct clk_core *core,
811 static void clk_core_rate_unprotect(struct clk_core *core)
828 static int clk_core_rate_nuke_protect(struct clk_core *core)
886 static void clk_core_rate_protect(struct clk_core *core)
899 static void clk_core_rate_restore_protect(struct clk_core *core, int count)
945 static void clk_core_unprepare(struct clk_core *core)
978 static void clk_core_unprepare_lock(struct clk_core *core)
1005 static int clk_core_prepare(struct clk_core *core)
1054 static int clk_core_prepare_lock(struct clk_core *core)
1086 static void clk_core_disable(struct clk_core *core)
1113 static void clk_core_disable_lock(struct clk_core *core)
1143 static int clk_core_enable(struct clk_core *core)
1179 static int clk_core_enable_lock(struct clk_core *core)
1203 struct clk_core *core = hw->core;
1212 static int clk_core_save_context(struct clk_core *core)
1214 struct clk_core *child;
1229 static void clk_core_restore_context(struct clk_core *core)
1231 struct clk_core *child;
1249 struct clk_core *clk;
1276 struct clk_core *core;
1329 static int clk_core_prepare_enable(struct clk_core *core)
1344 static void clk_core_disable_unprepare(struct clk_core *core)
1350 static void __init clk_unprepare_unused_subtree(struct clk_core *core)
1352 struct clk_core *child;
1380 static void __init clk_disable_unused_subtree(struct clk_core *core)
1382 struct clk_core *child;
1436 struct clk_core *core;
1465 static int clk_core_determine_round_nolock(struct clk_core *core,
1513 static void clk_core_init_rate_req(struct clk_core * const core,
1517 struct clk_core *parent;
1588 static bool clk_core_can_round(struct clk_core * const core)
1593 static int clk_core_round_rate_nolock(struct clk_core *core,
1739 static int __clk_notify(struct clk_core *core, unsigned long msg,
1771 static void __clk_recalc_accuracies(struct clk_core *core)
1774 struct clk_core *child;
1791 static long clk_core_get_accuracy_recalc(struct clk_core *core)
1823 static unsigned long clk_recalc(struct clk_core *core,
1848 static void __clk_recalc_rates(struct clk_core *core, bool update_req,
1853 struct clk_core *child;
1877 static unsigned long clk_core_get_rate_recalc(struct clk_core *core)
1909 static int clk_fetch_parent_index(struct clk_core *core,
1910 struct clk_core *parent)
1973 static void clk_core_update_orphan_status(struct clk_core *core, bool is_orphan)
1975 struct clk_core *child;
1983 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent)
2009 static struct clk_core *__clk_set_parent_before(struct clk_core *core,
2010 struct clk_core *parent)
2013 struct clk_core *old_parent = core->parent;
2055 static void __clk_set_parent_after(struct clk_core *core,
2056 struct clk_core *parent,
2057 struct clk_core *old_parent)
2075 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent,
2080 struct clk_core *old_parent;
2121 static int __clk_speculate_rates(struct clk_core *core,
2124 struct clk_core *child;
2152 static void clk_calc_subtree(struct clk_core *core, unsigned long new_rate,
2153 struct clk_core *new_parent, u8 p_index)
2155 struct clk_core *child;
2175 static struct clk_core *clk_calc_new_rates(struct clk_core *core,
2178 struct clk_core *top = core;
2179 struct clk_core *old_parent, *parent;
2262 static struct clk_core *clk_propagate_rate_change(struct clk_core *core,
2265 struct clk_core *child, *tmp_clk, *fail_clk = NULL;
2300 static void clk_change_rate(struct clk_core *core)
2302 struct clk_core *child;
2307 struct clk_core *old_parent;
2308 struct clk_core *parent = NULL;
2389 static unsigned long clk_core_req_round_rate_nolock(struct clk_core *core,
2419 static int clk_core_set_rate_nolock(struct clk_core *core,
2422 struct clk_core *top, *fail_clk;
2714 static struct clk_core *__clk_init_parent(struct clk_core *core)
2724 static void clk_core_reparent(struct clk_core *core,
2725 struct clk_core *new_parent)
2760 static int clk_core_set_parent_nolock(struct clk_core *core,
2761 struct clk_core *parent)
2872 static int clk_core_set_phase_nolock(struct clk_core *core, int degrees)
2945 static int clk_core_get_phase(struct clk_core *core)
2983 static void clk_core_reset_duty_cycle_nolock(struct clk_core *core)
2990 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core);
2992 static int clk_core_update_duty_cycle_nolock(struct clk_core *core)
3017 static int clk_core_update_duty_cycle_parent_nolock(struct clk_core *core)
3032 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
3035 static int clk_core_set_duty_cycle_nolock(struct clk_core *core,
3059 static int clk_core_set_duty_cycle_parent_nolock(struct clk_core *core,
3115 static int clk_core_get_scaled_duty_cycle(struct clk_core *core,
3156 * share the same struct clk_core object.
3190 static void clk_summary_show_one(struct seq_file *s, struct clk_core *c,
3218 static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c,
3221 struct clk_core *child;
3233 struct clk_core *c;
3252 static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level)
3275 static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level)
3277 struct clk_core *child;
3291 struct clk_core *c;
3323 struct clk_core *core = data;
3337 struct clk_core *core = data;
3350 struct clk_core *core = data;
3366 struct clk_core *core = data;
3399 struct clk_core *core = s->private;
3418 static void possible_parent_show(struct seq_file *s, struct clk_core *core,
3421 struct clk_core *parent;
3457 struct clk_core *core = s->private;
3471 struct clk_core *core = s->private;
3485 struct clk_core *core = s->private;
3486 struct clk_core *parent;
3518 struct clk_core *core = s->private;
3529 struct clk_core *core = s->private;
3543 struct clk_core *core = s->private;
3555 static void clk_debug_create_one(struct clk_core *core, struct dentry *pdentry)
3607 static void clk_debug_register(struct clk_core *core)
3624 static void clk_debug_unregister(struct clk_core *core)
3644 struct clk_core *core;
3686 static inline void clk_debug_register(struct clk_core *core) { }
3687 static inline void clk_debug_unregister(struct clk_core *core)
3694 struct clk_core *orphan;
3702 struct clk_core *parent = __clk_init_parent(orphan);
3734 * __clk_core_init - initialize the data structures in a struct clk_core
3735 * @core: clk_core being initialized
3737 * Initializes the lists in struct clk_core, queries the hardware for the
3740 static int __clk_core_init(struct clk_core *core)
3743 struct clk_core *parent;
3941 * clk_core_link_consumer - Add a clk consumer to the list of consumers in a clk_core
3945 static void clk_core_link_consumer(struct clk_core *core, struct clk *clk)
3953 * clk_core_unlink_consumer - Remove a clk consumer from the list of consumers in a clk_core
3963 * alloc_clk - Allocate a clk consumer, but leave it unlinked to the clk_core
3970 static struct clk *alloc_clk(struct clk_core *core, const char *dev_id,
3991 * Note, this assumes the clk has been unlinked from the clk_core consumer
4001 * clk_hw_create_clk: Allocate and link a clk consumer to a clk_core given
4009 * consumers. It connects a consumer to the clk_core and clk_hw structures
4016 struct clk_core *core;
4075 static int clk_core_populate_parent_map(struct clk_core *core,
4089 * Avoid unnecessary string look-ups of clk_core's possible parents by
4090 * having a cache of names/clk_hw pointers to clk_core pointers.
4137 static void clk_core_free_parent_map(struct clk_core *core)
4156 struct clk_core *core;
4314 struct clk_core *core = container_of(ref, struct clk_core, ref);
4365 static void clk_core_evict_parent_cache_subtree(struct clk_core *root,
4366 const struct clk_core *target)
4369 struct clk_core *child;
4380 static void clk_core_evict_parent_cache(struct clk_core *core)
4383 struct clk_core *root;
4427 struct clk_core *child;