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);
325 long clk_round_rate(struct clk *clk, unsigned long rate);
334 int clk_set_rate(struct clk *clk, unsigned long rate);
346 bool clk_has_parent(struct clk *clk, struct clk *parent);
356 int clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max);
365 int clk_set_min_rate(struct clk *clk, unsigned long rate);
374 int clk_set_max_rate(struct clk *clk, unsigned long rate);
383 int clk_set_parent(struct clk *clk, struct clk *parent);
392 struct clk *clk_get_parent(struct clk *clk);
409 struct clk *clk_get_sys(const char *dev_id, const char *con_id);
413 static inline struct clk *clk_get(struct device *dev, const char *id) in clk_get()
418 static inline struct clk *devm_clk_get(struct device *dev, const char *id) in devm_clk_get()
423 static inline void clk_put(struct clk *clk) {} in clk_put() argument
425 static inline void devm_clk_put(struct device *dev, struct clk *clk) {} in devm_clk_put() argument
427 static inline int clk_enable(struct clk *clk) in clk_enable() argument
432 static inline void clk_disable(struct clk *clk) {} in clk_disable() argument
434 static inline unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() argument
439 static inline int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument
444 static inline long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument
449 static inline bool clk_has_parent(struct clk *clk, struct clk *parent) in clk_has_parent() argument
454 static inline int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() argument
459 static inline struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() argument
467 static inline int clk_prepare_enable(struct clk *clk) in clk_prepare_enable() argument
471 ret = clk_prepare(clk); in clk_prepare_enable()
474 ret = clk_enable(clk); in clk_prepare_enable()
476 clk_unprepare(clk); in clk_prepare_enable()
482 static inline void clk_disable_unprepare(struct clk *clk) in clk_disable_unprepare() argument
484 clk_disable(clk); in clk_disable_unprepare()
485 clk_unprepare(clk); in clk_disable_unprepare()
492 struct clk *of_clk_get(struct device_node *np, int index);
493 struct clk *of_clk_get_by_name(struct device_node *np, const char *name);
494 struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
496 static inline struct clk *of_clk_get(struct device_node *np, int index) in of_clk_get()
500 static inline struct clk *of_clk_get_by_name(struct device_node *np, in of_clk_get_by_name()