Lines Matching defs:clk
83 struct clk { struct
84 struct clk_core *core; argument
89 struct hlist_node clks_node; argument
297 static int clk_debug_create_one(struct clk_core *clk, struct dentry *pdentry) in clk_debug_create_one()
372 static int clk_debug_register(struct clk_core *clk) in clk_debug_register()
397 static void clk_debug_unregister(struct clk_core *clk) in clk_debug_unregister()
433 struct clk_core *clk; in clk_debug_init() local
472 static inline int clk_debug_register(struct clk_core *clk) { return 0; } in clk_debug_register()
473 static inline void clk_debug_reparent(struct clk_core *clk, in clk_debug_reparent()
477 static inline void clk_debug_unregister(struct clk_core *clk) in clk_debug_unregister()
483 static void clk_unprepare_unused_subtree(struct clk_core *clk) in clk_unprepare_unused_subtree()
509 static void clk_disable_unused_subtree(struct clk_core *clk) in clk_disable_unused_subtree()
555 struct clk_core *clk; in clk_disable_unused() local
584 const char *__clk_get_name(struct clk *clk) in __clk_get_name()
590 struct clk_hw *__clk_get_hw(struct clk *clk) in __clk_get_hw()
596 u8 __clk_get_num_parents(struct clk *clk) in __clk_get_num_parents()
602 struct clk *__clk_get_parent(struct clk *clk) in __clk_get_parent()
612 static struct clk_core *clk_core_get_parent_by_index(struct clk_core *clk, in clk_core_get_parent_by_index()
626 struct clk *clk_get_parent_by_index(struct clk *clk, u8 index) in clk_get_parent_by_index()
639 unsigned int __clk_get_enable_count(struct clk *clk) in __clk_get_enable_count()
644 static unsigned long clk_core_get_rate_nolock(struct clk_core *clk) in clk_core_get_rate_nolock()
665 unsigned long __clk_get_rate(struct clk *clk) in __clk_get_rate()
674 static unsigned long __clk_get_accuracy(struct clk_core *clk) in __clk_get_accuracy()
682 unsigned long __clk_get_flags(struct clk *clk) in __clk_get_flags()
688 static bool clk_core_is_prepared(struct clk_core *clk) in clk_core_is_prepared()
709 bool __clk_is_prepared(struct clk *clk) in __clk_is_prepared()
717 static bool clk_core_is_enabled(struct clk_core *clk) in clk_core_is_enabled()
738 bool __clk_is_enabled(struct clk *clk) in __clk_is_enabled()
748 struct clk_core *clk) in __clk_lookup_subtree()
857 static void clk_core_get_boundaries(struct clk_core *clk, in clk_core_get_boundaries()
905 static void clk_core_unprepare(struct clk_core *clk) in clk_core_unprepare()
938 void clk_unprepare(struct clk *clk) in clk_unprepare()
949 static int clk_core_prepare(struct clk_core *clk) in clk_core_prepare()
991 int clk_prepare(struct clk *clk) in clk_prepare()
1006 static void clk_core_disable(struct clk_core *clk) in clk_core_disable()
1027 static void __clk_disable(struct clk *clk) in __clk_disable()
1047 void clk_disable(struct clk *clk) in clk_disable()
1060 static int clk_core_enable(struct clk_core *clk) in clk_core_enable()
1093 static int __clk_enable(struct clk *clk) in __clk_enable()
1114 int clk_enable(struct clk *clk) in clk_enable()
1127 static unsigned long clk_core_round_rate_nolock(struct clk_core *clk, in clk_core_round_rate_nolock()
1188 unsigned long __clk_round_rate(struct clk *clk, unsigned long rate) in __clk_round_rate()
1211 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
1240 static int __clk_notify(struct clk_core *clk, unsigned long msg, in __clk_notify()
1272 static void __clk_recalc_accuracies(struct clk_core *clk) in __clk_recalc_accuracies()
1292 static long clk_core_get_accuracy(struct clk_core *clk) in clk_core_get_accuracy()
1315 long clk_get_accuracy(struct clk *clk) in clk_get_accuracy()
1324 static unsigned long clk_recalc(struct clk_core *clk, in clk_recalc()
1346 static void __clk_recalc_rates(struct clk_core *clk, unsigned long msg) in __clk_recalc_rates()
1372 static unsigned long clk_core_get_rate(struct clk_core *clk) in clk_core_get_rate()
1395 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
1404 static int clk_fetch_parent_index(struct clk_core *clk, in clk_fetch_parent_index()
1437 static void clk_reparent(struct clk_core *clk, struct clk_core *new_parent) in clk_reparent()
1454 static struct clk_core *__clk_set_parent_before(struct clk_core *clk, in __clk_set_parent_before()
1512 static int __clk_set_parent(struct clk_core *clk, struct clk_core *parent, in __clk_set_parent()
1565 static int __clk_speculate_rates(struct clk_core *clk, in __clk_speculate_rates()
1596 static void clk_calc_subtree(struct clk_core *clk, unsigned long new_rate, in clk_calc_subtree()
1619 static struct clk_core *clk_calc_new_rates(struct clk_core *clk, in clk_calc_new_rates()
1709 static struct clk_core *clk_propagate_rate_change(struct clk_core *clk, in clk_propagate_rate_change()
1747 static void clk_change_rate(struct clk_core *clk) in clk_change_rate()
1808 static int clk_core_set_rate_nolock(struct clk_core *clk, in clk_core_set_rate_nolock()
1868 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
1894 int clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max) in clk_set_rate_range()
1929 int clk_set_min_rate(struct clk *clk, unsigned long rate) in clk_set_min_rate()
1945 int clk_set_max_rate(struct clk *clk, unsigned long rate) in clk_set_max_rate()
1960 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent()
1981 static struct clk_core *__clk_init_parent(struct clk_core *clk) in __clk_init_parent()
2024 static void clk_core_reparent(struct clk_core *clk, in clk_core_reparent()
2042 bool clk_has_parent(struct clk *clk, struct clk *parent) in clk_has_parent()
2066 static int clk_core_set_parent(struct clk_core *clk, struct clk_core *parent) in clk_core_set_parent()
2146 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent()
2175 int clk_set_phase(struct clk *clk, int degrees) in clk_set_phase()
2205 static int clk_core_get_phase(struct clk_core *clk) in clk_core_get_phase()
2228 int clk_get_phase(struct clk *clk) in clk_get_phase()
2275 struct clk_core *clk; in __clk_init() local
2452 struct clk *clk; in __clk_create_clk() local
2474 void __clk_free_clk(struct clk *clk) in __clk_free_clk()
2497 struct clk_core *clk; in clk_register() local
2577 struct clk_core *clk = container_of(ref, struct clk_core, ref); in __clk_release() local
2630 void clk_unregister(struct clk *clk) in clk_unregister()
2691 struct clk *clk; in devm_clk_register() local
2726 void devm_clk_unregister(struct device *dev, struct clk *clk) in devm_clk_unregister()
2735 int __clk_get(struct clk *clk) in __clk_get()
2748 void __clk_put(struct clk *clk) in __clk_put()
2795 int clk_notifier_register(struct clk *clk, struct notifier_block *nb) in clk_notifier_register()
2844 int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb) in clk_notifier_unregister()
2984 struct clk *clk = ERR_PTR(-EPROBE_DEFER); in __of_clk_get_from_provider() local
3090 struct clk *clk = of_clk_get(np, i); in parent_ready() local