Lines Matching refs:clk
20 struct clk;
58 struct clk *clk; member
75 struct clk *clk; member
92 struct clk *clk; member
106 int clk_notifier_register(struct clk *clk, struct notifier_block *nb);
113 int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb);
123 long clk_get_accuracy(struct clk *clk);
133 int clk_set_phase(struct clk *clk, int degrees);
142 int clk_get_phase(struct clk *clk);
153 int clk_set_duty_cycle(struct clk *clk, unsigned int num, unsigned int den);
163 int clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale);
176 bool clk_is_match(const struct clk *p, const struct clk *q);
180 static inline int clk_notifier_register(struct clk *clk, in clk_notifier_register() argument
186 static inline int clk_notifier_unregister(struct clk *clk, in clk_notifier_unregister() argument
192 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy() argument
197 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase() argument
202 static inline long clk_get_phase(struct clk *clk) in clk_get_phase() argument
207 static inline int clk_set_duty_cycle(struct clk *clk, unsigned int num, in clk_set_duty_cycle() argument
213 static inline unsigned int clk_get_scaled_duty_cycle(struct clk *clk, in clk_get_scaled_duty_cycle() argument
219 static inline bool clk_is_match(const struct clk *p, const struct clk *q) in clk_is_match()
235 int clk_prepare(struct clk *clk);
239 static inline int clk_prepare(struct clk *clk) in clk_prepare() argument
262 void clk_unprepare(struct clk *clk);
265 static inline void clk_unprepare(struct clk *clk) in clk_unprepare() argument
291 struct clk *clk_get(struct device *dev, const char *id);
349 struct clk *devm_clk_get(struct device *dev, const char *id);
365 struct clk *devm_get_clk_from_child(struct device *dev,
383 int clk_rate_exclusive_get(struct clk *clk);
398 void clk_rate_exclusive_put(struct clk *clk);
410 int clk_enable(struct clk *clk);
438 void clk_disable(struct clk *clk);
463 unsigned long clk_get_rate(struct clk *clk);
475 void clk_put(struct clk *clk);
501 void devm_clk_put(struct device *dev, struct clk *clk);
529 long clk_round_rate(struct clk *clk, unsigned long rate);
538 int clk_set_rate(struct clk *clk, unsigned long rate);
555 int clk_set_rate_exclusive(struct clk *clk, unsigned long rate);
567 bool clk_has_parent(struct clk *clk, struct clk *parent);
577 int clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max);
586 int clk_set_min_rate(struct clk *clk, unsigned long rate);
595 int clk_set_max_rate(struct clk *clk, unsigned long rate);
604 int clk_set_parent(struct clk *clk, struct clk *parent);
613 struct clk *clk_get_parent(struct clk *clk);
630 struct clk *clk_get_sys(const char *dev_id, const char *con_id);
634 static inline struct clk *clk_get(struct device *dev, const char *id) in clk_get()
645 static inline struct clk *devm_clk_get(struct device *dev, const char *id) in devm_clk_get()
656 static inline struct clk *devm_get_clk_from_child(struct device *dev, in devm_get_clk_from_child()
662 static inline void clk_put(struct clk *clk) {} in clk_put() argument
666 static inline void devm_clk_put(struct device *dev, struct clk *clk) {} in devm_clk_put() argument
669 static inline int clk_rate_exclusive_get(struct clk *clk) in clk_rate_exclusive_get() argument
674 static inline void clk_rate_exclusive_put(struct clk *clk) {} in clk_rate_exclusive_put() argument
676 static inline int clk_enable(struct clk *clk) in clk_enable() argument
686 static inline void clk_disable(struct clk *clk) {} in clk_disable() argument
692 static inline unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() argument
697 static inline int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument
702 static inline int clk_set_rate_exclusive(struct clk *clk, unsigned long rate) in clk_set_rate_exclusive() argument
707 static inline long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument
712 static inline bool clk_has_parent(struct clk *clk, struct clk *parent) in clk_has_parent() argument
717 static inline int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() argument
722 static inline struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() argument
727 static inline struct clk *clk_get_sys(const char *dev_id, const char *con_id) in clk_get_sys()
734 static inline int clk_prepare_enable(struct clk *clk) in clk_prepare_enable() argument
738 ret = clk_prepare(clk); in clk_prepare_enable()
741 ret = clk_enable(clk); in clk_prepare_enable()
743 clk_unprepare(clk); in clk_prepare_enable()
749 static inline void clk_disable_unprepare(struct clk *clk) in clk_disable_unprepare() argument
751 clk_disable(clk); in clk_disable_unprepare()
752 clk_unprepare(clk); in clk_disable_unprepare()
778 struct clk *of_clk_get(struct device_node *np, int index);
779 struct clk *of_clk_get_by_name(struct device_node *np, const char *name);
780 struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
782 static inline struct clk *of_clk_get(struct device_node *np, int index) in of_clk_get()
786 static inline struct clk *of_clk_get_by_name(struct device_node *np, in of_clk_get_by_name()
791 static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec) in of_clk_get_from_provider()