Lines Matching refs:clkspec
345 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec);
354 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec)
404 struct of_phandle_args clkspec;
407 !of_parse_clkspec(np, index, name, &clkspec)) {
408 hw = of_clk_get_hw_from_clkspec(&clkspec);
409 of_node_put(clkspec.np);
4778 struct clk *(*get)(struct of_phandle_args *clkspec, void *data);
4779 struct clk_hw *(*get_hw)(struct of_phandle_args *clkspec, void *data);
4790 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec,
4797 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data)
4803 struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data)
4806 unsigned int idx = clkspec->args[0];
4818 of_clk_hw_onecell_get(struct of_phandle_args *clkspec, void *data)
4821 unsigned int idx = clkspec->args[0];
4841 struct clk *(*clk_src_get)(struct of_phandle_args *clkspec,
4883 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
4957 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
5083 struct of_phandle_args *clkspec)
5088 return provider->get_hw(clkspec, provider->data);
5090 clk = provider->get(clkspec, provider->data);
5097 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec)
5102 if (!clkspec)
5107 if (provider->node == clkspec->np) {
5108 hw = __of_clk_get_hw_from_provider(provider, clkspec);
5120 * @clkspec: pointer to a clock specifier data structure
5126 struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
5128 struct clk_hw *hw = of_clk_get_hw_from_clkspec(clkspec);
5139 struct of_phandle_args clkspec;
5141 ret = of_parse_clkspec(np, index, con_id, &clkspec);
5145 hw = of_clk_get_hw_from_clkspec(&clkspec);
5146 of_node_put(clkspec.np);
5204 struct of_phandle_args clkspec;
5214 &clkspec);
5218 index = clkspec.args_count ? clkspec.args[0] : 0;
5224 of_property_for_each_u32(clkspec.np, "clock-indices", prop, vp, pv) {
5235 if (of_property_read_string_index(clkspec.np, "clock-output-names",
5244 clk = of_clk_get_from_provider(&clkspec);
5246 if (clkspec.args_count == 0)
5247 clk_name = clkspec.np->name;
5257 of_node_put(clkspec.np);