Lines Matching refs:clk

13  * flags used across common struct clk.  these flags should only affect the

17 * Please update clk_flags[] in drivers/clk/clk.c when making changes here!
25 #define CLK_GET_RATE_NOCACHE BIT(6) /* do not use the cached clk rate */
27 #define CLK_GET_ACCURACY_NOCACHE BIT(8) /* do not use the cached clk accuracy */
36 struct clk;
42 * struct clk_rate_request - Structure encoding the clk constraints that
47 * @min_rate: Minimum rate imposed by clk users.
48 * @max_rate: Maximum rate imposed by clk users.
249 * struct clk_parent_data - clk parent information
250 * @hw: parent clk_hw pointer (used for clk providers with internal clks)
251 * @fw_name: parent name local to provider registering clk
253 * @index: parent index local to provider registering clk (if @fw_name absent)
270 * parents are external to the clk controller)
272 * are internal to the clk controller)
288 * struct clk_hw - handle for traversing from a struct clk to its corresponding
290 * clk_foo and then referenced by the struct clk instance that uses struct
296 * @clk: pointer to the per-user struct clk instance that can be used to call
297 * into the clk API
305 struct clk *clk;
326 * * CLK_FIXED_RATE_PARENT_ACCURACY - Use the accuracy of the parent clk
344 struct clk *clk_register_fixed_rate(struct device *dev, const char *name, const char *parent_name, unsigned long flags,
362 * @parent_hw: pointer to parent clk
373 * @parent_data: parent clk data
397 * @parent_hw: pointer to parent clk
420 void clk_unregister_fixed_rate(struct clk *clk);
467 struct clk *clk_register_gate(struct device *dev, const char *name, const char *parent_name, unsigned long flags,
488 * @parent_hw: pointer to parent clk
503 * @parent_data: parent clk data
513 void clk_unregister_gate(struct clk *clk);
602 struct clk *clk_register_divider_table(struct device *dev, const char *name, const char *parent_name,
640 * @parent_hw: pointer to parent clk
656 * @parent_data: parent clk data
690 * @parent_hw: pointer to parent clk
708 * @parent_data: parent clk data
722 void clk_unregister_divider(struct clk *clk);
780 struct clk *clk_register_mux_table(struct device *dev, const char *name, const char *const *parent_names,
805 void clk_unregister_mux(struct clk *clk);
831 struct clk *clk_register_fixed_factor(struct device *dev, const char *name, const char *parent_name,
833 void clk_unregister_fixed_factor(struct clk *clk);
885 struct clk *clk_register_fractional_divider(struct device *dev, const char *name, const char *parent_name,
964 struct clk *clk_register_composite(struct device *dev, const char *name, const char *const *parent_names,
968 struct clk *clk_register_composite_pdata(struct device *dev, const char *name,
973 void clk_unregister_composite(struct clk *clk);
986 struct clk *clk_register(struct device *dev, struct clk_hw *hw);
987 struct clk *devm_clk_register(struct device *dev, struct clk_hw *hw);
993 void clk_unregister(struct clk *clk);
994 void devm_clk_unregister(struct device *dev, struct clk *clk);
1000 const char *__clk_get_name(const struct clk *clk);
1003 struct clk_hw *__clk_get_hw(struct clk *clk);
1005 static inline struct clk_hw *__clk_get_hw(struct clk *clk)
1007 return (struct clk_hw *)clk;
1015 unsigned int __clk_get_enable_count(struct clk *clk);
1023 bool __clk_is_enabled(struct clk *clk);
1024 struct clk *__clk_lookup(const char *name);
1034 dst->clk = src->clk;
1057 struct clk **clks;
1066 #define CLK_OF_DECLARE(name, compat, fn) OF_DECLARE_1(clk, name, compat, fn)
1078 OF_DECLARE_1(clk, name, compat, name##_of_clk_init_driver)
1176 * fixed factor clk declarations.
1193 int of_clk_add_provider(struct device_node *np, struct clk *(*clk_src_get)(struct of_phandle_args *args, void *data),
1201 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, void *data);
1203 struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data);
1211 struct clk *(*clk_src_get)(struct of_phandle_args *args, void *data), void *data)
1232 static inline struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, void *data)
1240 static inline struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data)