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);
202 int clk_rate_exclusive_get(struct clk *clk);
214 int devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk);
229 void clk_rate_exclusive_put(struct clk *clk);
233 static inline int clk_notifier_register(struct clk *clk, in clk_notifier_register() argument
239 static inline int clk_notifier_unregister(struct clk *clk, in clk_notifier_unregister() argument
246 struct clk *clk, in devm_clk_notifier_register() argument
252 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy() argument
257 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase() argument
262 static inline long clk_get_phase(struct clk *clk) in clk_get_phase() argument
267 static inline int clk_set_duty_cycle(struct clk *clk, unsigned int num, in clk_set_duty_cycle() argument
273 static inline unsigned int clk_get_scaled_duty_cycle(struct clk *clk, in clk_get_scaled_duty_cycle() argument
279 static inline bool clk_is_match(const struct clk *p, const struct clk *q) in clk_is_match()
284 static inline int clk_rate_exclusive_get(struct clk *clk) in clk_rate_exclusive_get() argument
289 static inline int devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk) in devm_clk_rate_exclusive_get() argument
294 static inline void clk_rate_exclusive_put(struct clk *clk) {} in clk_rate_exclusive_put() argument
307 int clk_prepare(struct clk *clk);
326 bool clk_is_enabled_when_prepared(struct clk *clk);
328 static inline int clk_prepare(struct clk *clk) in clk_prepare() argument
341 static inline bool clk_is_enabled_when_prepared(struct clk *clk) in clk_is_enabled_when_prepared() argument
357 void clk_unprepare(struct clk *clk);
360 static inline void clk_unprepare(struct clk *clk) in clk_unprepare() argument
387 struct clk *clk_get(struct device *dev, const char *id);
535 struct clk *devm_clk_get(struct device *dev, const char *id);
556 struct clk *devm_clk_get_prepared(struct device *dev, const char *id);
576 struct clk *devm_clk_get_enabled(struct device *dev, const char *id);
599 struct clk *devm_clk_get_optional(struct device *dev, const char *id);
621 struct clk *devm_clk_get_optional_prepared(struct device *dev, const char *id);
643 struct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id);
667 struct clk *devm_clk_get_optional_enabled_with_rate(struct device *dev,
685 struct clk *devm_get_clk_from_child(struct device *dev,
698 int clk_enable(struct clk *clk);
726 void clk_disable(struct clk *clk);
751 unsigned long clk_get_rate(struct clk *clk);
763 void clk_put(struct clk *clk);
802 void devm_clk_put(struct device *dev, struct clk *clk);
830 long clk_round_rate(struct clk *clk, unsigned long rate);
842 int clk_set_rate(struct clk *clk, unsigned long rate);
859 int clk_set_rate_exclusive(struct clk *clk, unsigned long rate);
871 bool clk_has_parent(const struct clk *clk, const struct clk *parent);
881 int clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max);
890 int clk_set_min_rate(struct clk *clk, unsigned long rate);
899 int clk_set_max_rate(struct clk *clk, unsigned long rate);
908 int clk_set_parent(struct clk *clk, struct clk *parent);
917 struct clk *clk_get_parent(struct clk *clk);
934 struct clk *clk_get_sys(const char *dev_id, const char *con_id);
955 static inline struct clk *clk_get(struct device *dev, const char *id) in clk_get()
978 static inline struct clk *devm_clk_get(struct device *dev, const char *id) in devm_clk_get()
983 static inline struct clk *devm_clk_get_prepared(struct device *dev, in devm_clk_get_prepared()
989 static inline struct clk *devm_clk_get_enabled(struct device *dev, in devm_clk_get_enabled()
995 static inline struct clk *devm_clk_get_optional(struct device *dev, in devm_clk_get_optional()
1001 static inline struct clk *devm_clk_get_optional_prepared(struct device *dev, in devm_clk_get_optional_prepared()
1007 static inline struct clk *devm_clk_get_optional_enabled(struct device *dev, in devm_clk_get_optional_enabled()
1013 static inline struct clk *
1045 static inline struct clk *devm_get_clk_from_child(struct device *dev, in devm_get_clk_from_child()
1051 static inline void clk_put(struct clk *clk) {} in clk_put() argument
1057 static inline void devm_clk_put(struct device *dev, struct clk *clk) {} in devm_clk_put() argument
1059 static inline int clk_enable(struct clk *clk) in clk_enable() argument
1070 static inline void clk_disable(struct clk *clk) {} in clk_disable() argument
1076 static inline unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() argument
1081 static inline int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument
1086 static inline int clk_set_rate_exclusive(struct clk *clk, unsigned long rate) in clk_set_rate_exclusive() argument
1091 static inline long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument
1096 static inline bool clk_has_parent(struct clk *clk, struct clk *parent) in clk_has_parent() argument
1101 static inline int clk_set_rate_range(struct clk *clk, unsigned long min, in clk_set_rate_range() argument
1107 static inline int clk_set_min_rate(struct clk *clk, unsigned long rate) in clk_set_min_rate() argument
1112 static inline int clk_set_max_rate(struct clk *clk, unsigned long rate) in clk_set_max_rate() argument
1117 static inline int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() argument
1122 static inline struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() argument
1127 static inline struct clk *clk_get_sys(const char *dev_id, const char *con_id) in clk_get_sys()
1142 static inline int clk_prepare_enable(struct clk *clk) in clk_prepare_enable() argument
1146 ret = clk_prepare(clk); in clk_prepare_enable()
1149 ret = clk_enable(clk); in clk_prepare_enable()
1151 clk_unprepare(clk); in clk_prepare_enable()
1157 static inline void clk_disable_unprepare(struct clk *clk) in clk_disable_unprepare() argument
1159 clk_disable(clk); in clk_disable_unprepare()
1160 clk_unprepare(clk); in clk_disable_unprepare()
1191 static inline int clk_drop_range(struct clk *clk) in clk_drop_range() argument
1193 return clk_set_rate_range(clk, 0, ULONG_MAX); in clk_drop_range()
1205 static inline struct clk *clk_get_optional(struct device *dev, const char *id) in clk_get_optional()
1207 struct clk *clk = clk_get(dev, id); in clk_get_optional() local
1209 if (clk == ERR_PTR(-ENOENT)) in clk_get_optional()
1212 return clk; in clk_get_optional()
1216 struct clk *of_clk_get(struct device_node *np, int index);
1217 struct clk *of_clk_get_by_name(struct device_node *np, const char *name);
1218 struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
1220 static inline struct clk *of_clk_get(struct device_node *np, int index) in of_clk_get()
1224 static inline struct clk *of_clk_get_by_name(struct device_node *np, in of_clk_get_by_name()
1229 static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec) in of_clk_get_from_provider()