Lines Matching refs:clk
17 struct clk;
55 struct clk *clk; member
72 struct clk *clk; member
89 struct clk *clk; member
103 int clk_notifier_register(struct clk *clk, struct notifier_block *nb);
110 int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb);
120 int devm_clk_notifier_register(struct device *dev, struct clk *clk,
131 long clk_get_accuracy(struct clk *clk);
141 int clk_set_phase(struct clk *clk, int degrees);
150 int clk_get_phase(struct clk *clk);
161 int clk_set_duty_cycle(struct clk *clk, unsigned int num, unsigned int den);
171 int clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale);
184 bool clk_is_match(const struct clk *p, const struct clk *q);
188 static inline int clk_notifier_register(struct clk *clk, in clk_notifier_register() argument
194 static inline int clk_notifier_unregister(struct clk *clk, in clk_notifier_unregister() argument
201 struct clk *clk, in devm_clk_notifier_register() argument
207 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy() argument
212 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase() argument
217 static inline long clk_get_phase(struct clk *clk) in clk_get_phase() argument
222 static inline int clk_set_duty_cycle(struct clk *clk, unsigned int num, in clk_set_duty_cycle() argument
228 static inline unsigned int clk_get_scaled_duty_cycle(struct clk *clk, in clk_get_scaled_duty_cycle() argument
234 static inline bool clk_is_match(const struct clk *p, const struct clk *q) in clk_is_match()
250 int clk_prepare(struct clk *clk);
254 static inline int clk_prepare(struct clk *clk) in clk_prepare() argument
278 void clk_unprepare(struct clk *clk);
281 static inline void clk_unprepare(struct clk *clk) in clk_unprepare() argument
308 struct clk *clk_get(struct device *dev, const char *id);
437 struct clk *devm_clk_get(struct device *dev, const char *id);
448 struct clk *devm_clk_get_optional(struct device *dev, const char *id);
464 struct clk *devm_get_clk_from_child(struct device *dev,
482 int clk_rate_exclusive_get(struct clk *clk);
497 void clk_rate_exclusive_put(struct clk *clk);
509 int clk_enable(struct clk *clk);
537 void clk_disable(struct clk *clk);
562 unsigned long clk_get_rate(struct clk *clk);
574 void clk_put(struct clk *clk);
613 void devm_clk_put(struct device *dev, struct clk *clk);
641 long clk_round_rate(struct clk *clk, unsigned long rate);
653 int clk_set_rate(struct clk *clk, unsigned long rate);
670 int clk_set_rate_exclusive(struct clk *clk, unsigned long rate);
682 bool clk_has_parent(struct clk *clk, struct clk *parent);
692 int clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max);
701 int clk_set_min_rate(struct clk *clk, unsigned long rate);
710 int clk_set_max_rate(struct clk *clk, unsigned long rate);
719 int clk_set_parent(struct clk *clk, struct clk *parent);
728 struct clk *clk_get_parent(struct clk *clk);
745 struct clk *clk_get_sys(const char *dev_id, const char *con_id);
766 static inline struct clk *clk_get(struct device *dev, const char *id) in clk_get()
789 static inline struct clk *devm_clk_get(struct device *dev, const char *id) in devm_clk_get()
794 static inline struct clk *devm_clk_get_optional(struct device *dev, in devm_clk_get_optional()
819 static inline struct clk *devm_get_clk_from_child(struct device *dev, in devm_get_clk_from_child()
825 static inline void clk_put(struct clk *clk) {} in clk_put() argument
831 static inline void devm_clk_put(struct device *dev, struct clk *clk) {} in devm_clk_put() argument
834 static inline int clk_rate_exclusive_get(struct clk *clk) in clk_rate_exclusive_get() argument
839 static inline void clk_rate_exclusive_put(struct clk *clk) {} in clk_rate_exclusive_put() argument
841 static inline int clk_enable(struct clk *clk) in clk_enable() argument
852 static inline void clk_disable(struct clk *clk) {} in clk_disable() argument
858 static inline unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() argument
863 static inline int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument
868 static inline int clk_set_rate_exclusive(struct clk *clk, unsigned long rate) in clk_set_rate_exclusive() argument
873 static inline long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument
878 static inline bool clk_has_parent(struct clk *clk, struct clk *parent) in clk_has_parent() argument
883 static inline int clk_set_rate_range(struct clk *clk, unsigned long min, in clk_set_rate_range() argument
889 static inline int clk_set_min_rate(struct clk *clk, unsigned long rate) in clk_set_min_rate() argument
894 static inline int clk_set_max_rate(struct clk *clk, unsigned long rate) in clk_set_max_rate() argument
899 static inline int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() argument
904 static inline struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() argument
909 static inline struct clk *clk_get_sys(const char *dev_id, const char *con_id) in clk_get_sys()
924 static inline int clk_prepare_enable(struct clk *clk) in clk_prepare_enable() argument
928 ret = clk_prepare(clk); in clk_prepare_enable()
931 ret = clk_enable(clk); in clk_prepare_enable()
933 clk_unprepare(clk); in clk_prepare_enable()
939 static inline void clk_disable_unprepare(struct clk *clk) in clk_disable_unprepare() argument
941 clk_disable(clk); in clk_disable_unprepare()
942 clk_unprepare(clk); in clk_disable_unprepare()
976 static inline struct clk *clk_get_optional(struct device *dev, const char *id) in clk_get_optional()
978 struct clk *clk = clk_get(dev, id); in clk_get_optional() local
980 if (clk == ERR_PTR(-ENOENT)) in clk_get_optional()
983 return clk; in clk_get_optional()
987 struct clk *of_clk_get(struct device_node *np, int index);
988 struct clk *of_clk_get_by_name(struct device_node *np, const char *name);
989 struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
991 static inline struct clk *of_clk_get(struct device_node *np, int index) in of_clk_get()
995 static inline struct clk *of_clk_get_by_name(struct device_node *np, in of_clk_get_by_name()
1000 static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec) in of_clk_get_from_provider()