Lines Matching refs:clk_hw

45 struct clk_hw;
68 struct clk_hw *best_parent_hw;
218 int (*prepare)(struct clk_hw *hw);
219 void (*unprepare)(struct clk_hw *hw);
220 int (*is_prepared)(struct clk_hw *hw);
221 void (*unprepare_unused)(struct clk_hw *hw);
222 int (*enable)(struct clk_hw *hw);
223 void (*disable)(struct clk_hw *hw);
224 int (*is_enabled)(struct clk_hw *hw);
225 void (*disable_unused)(struct clk_hw *hw);
226 unsigned long (*recalc_rate)(struct clk_hw *hw,
228 long (*round_rate)(struct clk_hw *hw, unsigned long rate,
230 int (*determine_rate)(struct clk_hw *hw,
232 int (*set_parent)(struct clk_hw *hw, u8 index);
233 u8 (*get_parent)(struct clk_hw *hw);
234 int (*set_rate)(struct clk_hw *hw, unsigned long rate,
236 int (*set_rate_and_parent)(struct clk_hw *hw,
239 unsigned long (*recalc_accuracy)(struct clk_hw *hw,
241 int (*get_phase)(struct clk_hw *hw);
242 int (*set_phase)(struct clk_hw *hw, int degrees);
243 int (*get_duty_cycle)(struct clk_hw *hw,
245 int (*set_duty_cycle)(struct clk_hw *hw,
247 void (*init)(struct clk_hw *hw);
248 void (*debug_init)(struct clk_hw *hw, struct dentry *dentry);
284 struct clk_hw { struct
305 struct clk_hw hw; argument
317 struct clk_hw *clk_hw_register_fixed_rate(struct device *dev, const char *name,
324 struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev,
327 void clk_hw_unregister_fixed_rate(struct clk_hw *hw);
352 struct clk_hw hw;
369 struct clk_hw *clk_hw_register_gate(struct device *dev, const char *name,
374 void clk_hw_unregister_gate(struct clk_hw *hw);
375 int clk_gate_is_enabled(struct clk_hw *hw);
420 struct clk_hw hw;
443 unsigned long divider_recalc_rate(struct clk_hw *hw, unsigned long parent_rate,
446 long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
450 long divider_ro_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
462 struct clk_hw *clk_hw_register_divider(struct device *dev, const char *name,
471 struct clk_hw *clk_hw_register_divider_table(struct device *dev,
477 void clk_hw_unregister_divider(struct clk_hw *hw);
504 struct clk_hw hw;
529 struct clk_hw *clk_hw_register_mux(struct device *dev, const char *name,
540 struct clk_hw *clk_hw_register_mux_table(struct device *dev, const char *name,
546 int clk_mux_val_to_index(struct clk_hw *hw, u32 *table, unsigned int flags,
551 void clk_hw_unregister_mux(struct clk_hw *hw);
568 struct clk_hw hw;
580 struct clk_hw *clk_hw_register_fixed_factor(struct device *dev,
583 void clk_hw_unregister_fixed_factor(struct clk_hw *hw);
599 struct clk_hw hw;
608 void (*approximation)(struct clk_hw *hw,
621 struct clk_hw *clk_hw_register_fractional_divider(struct device *dev,
625 void clk_hw_unregister_fractional_divider(struct clk_hw *hw);
649 struct clk_hw hw;
676 struct clk_hw hw;
679 struct clk_hw *mux_hw;
680 struct clk_hw *rate_hw;
681 struct clk_hw *gate_hw;
692 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
693 struct clk_hw *rate_hw, const struct clk_ops *rate_ops,
694 struct clk_hw *gate_hw, const struct clk_ops *gate_ops,
697 struct clk_hw *clk_hw_register_composite(struct device *dev, const char *name,
699 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
700 struct clk_hw *rate_hw, const struct clk_ops *rate_ops,
701 struct clk_hw *gate_hw, const struct clk_ops *gate_ops,
703 void clk_hw_unregister_composite(struct clk_hw *hw);
716 struct clk_hw hw;
726 struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name,
729 void clk_hw_unregister_gpio_gate(struct clk_hw *hw);
745 struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name,
748 void clk_hw_unregister_gpio_mux(struct clk_hw *hw);
761 struct clk *clk_register(struct device *dev, struct clk_hw *hw);
762 struct clk *devm_clk_register(struct device *dev, struct clk_hw *hw);
764 int __must_check clk_hw_register(struct device *dev, struct clk_hw *hw);
765 int __must_check devm_clk_hw_register(struct device *dev, struct clk_hw *hw);
770 void clk_hw_unregister(struct clk_hw *hw);
771 void devm_clk_hw_unregister(struct device *dev, struct clk_hw *hw);
775 const char *clk_hw_get_name(const struct clk_hw *hw);
776 struct clk_hw *__clk_get_hw(struct clk *clk);
777 unsigned int clk_hw_get_num_parents(const struct clk_hw *hw);
778 struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw);
779 struct clk_hw *clk_hw_get_parent_by_index(const struct clk_hw *hw,
782 unsigned long clk_hw_get_rate(const struct clk_hw *hw);
784 unsigned long clk_hw_get_flags(const struct clk_hw *hw);
785 bool clk_hw_is_prepared(const struct clk_hw *hw);
786 bool clk_hw_rate_is_protected(const struct clk_hw *hw);
787 bool clk_hw_is_enabled(const struct clk_hw *hw);
790 int __clk_mux_determine_rate(struct clk_hw *hw,
792 int __clk_determine_rate(struct clk_hw *core, struct clk_rate_request *req);
793 int __clk_mux_determine_rate_closest(struct clk_hw *hw,
795 int clk_mux_determine_rate_flags(struct clk_hw *hw,
798 void clk_hw_reparent(struct clk_hw *hw, struct clk_hw *new_parent);
799 void clk_hw_set_rate_range(struct clk_hw *hw, unsigned long min_rate,
802 static inline void __clk_hw_set_clk(struct clk_hw *dst, struct clk_hw *src) in __clk_hw_set_clk()
808 static inline long divider_round_rate(struct clk_hw *hw, unsigned long rate, in divider_round_rate()
817 static inline long divider_ro_round_rate(struct clk_hw *hw, unsigned long rate, in divider_ro_round_rate()
831 unsigned long clk_hw_round_rate(struct clk_hw *hw, unsigned long rate);
842 struct clk_hw *hws[];
905 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
909 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
916 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec,
919 struct clk_hw *of_clk_hw_onecell_get(struct of_phandle_args *clkspec,
936 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in of_clk_add_hw_provider()
943 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in devm_of_clk_add_hw_provider()
956 static inline struct clk_hw *
966 static inline struct clk_hw *