Lines Matching refs:clk

21 struct clk;
59 struct clk *clk; member
76 struct clk *clk; member
90 int clk_notifier_register(struct clk *clk, struct notifier_block *nb);
97 int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb);
107 long clk_get_accuracy(struct clk *clk);
117 int clk_set_phase(struct clk *clk, int degrees);
126 int clk_get_phase(struct clk *clk);
139 bool clk_is_match(const struct clk *p, const struct clk *q);
143 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy() argument
148 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase() argument
153 static inline long clk_get_phase(struct clk *clk) in clk_get_phase() argument
158 static inline bool clk_is_match(const struct clk *p, const struct clk *q) in clk_is_match()
174 int clk_prepare(struct clk *clk);
176 static inline int clk_prepare(struct clk *clk) in clk_prepare() argument
193 void clk_unprepare(struct clk *clk);
195 static inline void clk_unprepare(struct clk *clk) in clk_unprepare() argument
217 struct clk *clk_get(struct device *dev, const char *id);
237 struct clk *devm_clk_get(struct device *dev, const char *id);
249 int clk_enable(struct clk *clk);
265 void clk_disable(struct clk *clk);
272 unsigned long clk_get_rate(struct clk *clk);
284 void clk_put(struct clk *clk);
297 void devm_clk_put(struct device *dev, struct clk *clk);
311 long clk_round_rate(struct clk *clk, unsigned long rate);
320 int clk_set_rate(struct clk *clk, unsigned long rate);
332 bool clk_has_parent(struct clk *clk, struct clk *parent);
342 int clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max);
351 int clk_set_min_rate(struct clk *clk, unsigned long rate);
360 int clk_set_max_rate(struct clk *clk, unsigned long rate);
369 int clk_set_parent(struct clk *clk, struct clk *parent);
378 struct clk *clk_get_parent(struct clk *clk);
395 struct clk *clk_get_sys(const char *dev_id, const char *con_id);
399 static inline struct clk *clk_get(struct device *dev, const char *id) in clk_get()
404 static inline struct clk *devm_clk_get(struct device *dev, const char *id) in devm_clk_get()
409 static inline void clk_put(struct clk *clk) {} in clk_put() argument
411 static inline void devm_clk_put(struct device *dev, struct clk *clk) {} in devm_clk_put() argument
413 static inline int clk_enable(struct clk *clk) in clk_enable() argument
418 static inline void clk_disable(struct clk *clk) {} in clk_disable() argument
420 static inline unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() argument
425 static inline int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument
430 static inline long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument
435 static inline bool clk_has_parent(struct clk *clk, struct clk *parent) in clk_has_parent() argument
440 static inline int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() argument
445 static inline struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() argument
453 static inline int clk_prepare_enable(struct clk *clk) in clk_prepare_enable() argument
457 ret = clk_prepare(clk); in clk_prepare_enable()
460 ret = clk_enable(clk); in clk_prepare_enable()
462 clk_unprepare(clk); in clk_prepare_enable()
468 static inline void clk_disable_unprepare(struct clk *clk) in clk_disable_unprepare() argument
470 clk_disable(clk); in clk_disable_unprepare()
471 clk_unprepare(clk); in clk_disable_unprepare()
491 struct clk *of_clk_get(struct device_node *np, int index);
492 struct clk *of_clk_get_by_name(struct device_node *np, const char *name);
493 struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
495 static inline struct clk *of_clk_get(struct device_node *np, int index) in of_clk_get()
499 static inline struct clk *of_clk_get_by_name(struct device_node *np, in of_clk_get_by_name()