Lines Matching refs:clk_hw

37 struct clk_hw;
60 struct clk_hw *best_parent_hw;
215 int (*prepare)(struct clk_hw *hw);
216 void (*unprepare)(struct clk_hw *hw);
217 int (*is_prepared)(struct clk_hw *hw);
218 void (*unprepare_unused)(struct clk_hw *hw);
219 int (*enable)(struct clk_hw *hw);
220 void (*disable)(struct clk_hw *hw);
221 int (*is_enabled)(struct clk_hw *hw);
222 void (*disable_unused)(struct clk_hw *hw);
223 int (*save_context)(struct clk_hw *hw);
224 void (*restore_context)(struct clk_hw *hw);
225 unsigned long (*recalc_rate)(struct clk_hw *hw,
227 long (*round_rate)(struct clk_hw *hw, unsigned long rate,
229 int (*determine_rate)(struct clk_hw *hw,
231 int (*set_parent)(struct clk_hw *hw, u8 index);
232 u8 (*get_parent)(struct clk_hw *hw);
233 int (*set_rate)(struct clk_hw *hw, unsigned long rate,
235 int (*set_rate_and_parent)(struct clk_hw *hw,
238 unsigned long (*recalc_accuracy)(struct clk_hw *hw,
240 int (*get_phase)(struct clk_hw *hw);
241 int (*set_phase)(struct clk_hw *hw, int degrees);
242 int (*get_duty_cycle)(struct clk_hw *hw,
244 int (*set_duty_cycle)(struct clk_hw *hw,
246 void (*init)(struct clk_hw *hw);
247 void (*debug_init)(struct clk_hw *hw, struct dentry *dentry);
258 const struct clk_hw *hw;
284 const struct clk_hw **parent_hws;
305 struct clk_hw { struct
326 struct clk_hw hw; argument
337 struct clk_hw *clk_hw_register_fixed_rate(struct device *dev, const char *name,
344 struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev,
347 void clk_hw_unregister_fixed_rate(struct clk_hw *hw);
375 struct clk_hw hw;
393 struct clk_hw *clk_hw_register_gate(struct device *dev, const char *name,
398 void clk_hw_unregister_gate(struct clk_hw *hw);
399 int clk_gate_is_enabled(struct clk_hw *hw);
447 struct clk_hw hw;
471 unsigned long divider_recalc_rate(struct clk_hw *hw, unsigned long parent_rate,
474 long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
478 long divider_ro_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
490 struct clk_hw *clk_hw_register_divider(struct device *dev, const char *name,
499 struct clk_hw *clk_hw_register_divider_table(struct device *dev,
505 void clk_hw_unregister_divider(struct clk_hw *hw);
537 struct clk_hw hw;
563 struct clk_hw *clk_hw_register_mux(struct device *dev, const char *name,
574 struct clk_hw *clk_hw_register_mux_table(struct device *dev, const char *name,
580 int clk_mux_val_to_index(struct clk_hw *hw, u32 *table, unsigned int flags,
585 void clk_hw_unregister_mux(struct clk_hw *hw);
602 struct clk_hw hw;
614 struct clk_hw *clk_hw_register_fixed_factor(struct device *dev,
617 void clk_hw_unregister_fixed_factor(struct clk_hw *hw);
642 struct clk_hw hw;
651 void (*approximation)(struct clk_hw *hw,
667 struct clk_hw *clk_hw_register_fractional_divider(struct device *dev,
671 void clk_hw_unregister_fractional_divider(struct clk_hw *hw);
698 struct clk_hw hw;
726 struct clk_hw hw;
729 struct clk_hw *mux_hw;
730 struct clk_hw *rate_hw;
731 struct clk_hw *gate_hw;
742 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
743 struct clk_hw *rate_hw, const struct clk_ops *rate_ops,
744 struct clk_hw *gate_hw, const struct clk_ops *gate_ops,
747 struct clk_hw *clk_hw_register_composite(struct device *dev, const char *name,
749 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
750 struct clk_hw *rate_hw, const struct clk_ops *rate_ops,
751 struct clk_hw *gate_hw, const struct clk_ops *gate_ops,
753 void clk_hw_unregister_composite(struct clk_hw *hw);
769 struct clk_hw hw;
779 struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name,
782 void clk_hw_unregister_gpio_gate(struct clk_hw *hw);
788 struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name,
791 void clk_hw_unregister_gpio_mux(struct clk_hw *hw);
793 struct clk *clk_register(struct device *dev, struct clk_hw *hw);
794 struct clk *devm_clk_register(struct device *dev, struct clk_hw *hw);
796 int __must_check clk_hw_register(struct device *dev, struct clk_hw *hw);
797 int __must_check devm_clk_hw_register(struct device *dev, struct clk_hw *hw);
798 int __must_check of_clk_hw_register(struct device_node *node, struct clk_hw *hw);
803 void clk_hw_unregister(struct clk_hw *hw);
804 void devm_clk_hw_unregister(struct device *dev, struct clk_hw *hw);
808 const char *clk_hw_get_name(const struct clk_hw *hw);
810 struct clk_hw *__clk_get_hw(struct clk *clk);
812 static inline struct clk_hw *__clk_get_hw(struct clk *clk) in __clk_get_hw()
814 return (struct clk_hw *)clk; in __clk_get_hw()
817 unsigned int clk_hw_get_num_parents(const struct clk_hw *hw);
818 struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw);
819 struct clk_hw *clk_hw_get_parent_by_index(const struct clk_hw *hw,
821 int clk_hw_set_parent(struct clk_hw *hw, struct clk_hw *new_parent);
823 unsigned long clk_hw_get_rate(const struct clk_hw *hw);
825 unsigned long clk_hw_get_flags(const struct clk_hw *hw);
829 bool clk_hw_is_prepared(const struct clk_hw *hw);
830 bool clk_hw_rate_is_protected(const struct clk_hw *hw);
831 bool clk_hw_is_enabled(const struct clk_hw *hw);
834 int __clk_mux_determine_rate(struct clk_hw *hw,
836 int __clk_determine_rate(struct clk_hw *core, struct clk_rate_request *req);
837 int __clk_mux_determine_rate_closest(struct clk_hw *hw,
839 int clk_mux_determine_rate_flags(struct clk_hw *hw,
842 void clk_hw_reparent(struct clk_hw *hw, struct clk_hw *new_parent);
843 void clk_hw_set_rate_range(struct clk_hw *hw, unsigned long min_rate,
846 static inline void __clk_hw_set_clk(struct clk_hw *dst, struct clk_hw *src) in __clk_hw_set_clk()
852 static inline long divider_round_rate(struct clk_hw *hw, unsigned long rate, in divider_round_rate()
861 static inline long divider_ro_round_rate(struct clk_hw *hw, unsigned long rate, in divider_ro_round_rate()
875 unsigned long clk_hw_round_rate(struct clk_hw *hw, unsigned long rate);
884 struct clk_hw *hws[];
914 .parent_hws = (const struct clk_hw*[]) { _parent }, \
1034 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
1038 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
1045 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec,
1048 struct clk_hw *of_clk_hw_onecell_get(struct of_phandle_args *clkspec,
1065 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in of_clk_add_hw_provider()
1072 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in devm_of_clk_add_hw_provider()
1085 static inline struct clk_hw *
1095 static inline struct clk_hw *
1112 void clk_gate_restore_context(struct clk_hw *hw);