Lines Matching refs:clkspec
339 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec);
348 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec) in of_clk_get_hw_from_clkspec() argument
398 struct of_phandle_args clkspec; in clk_core_get() local
401 !of_parse_clkspec(np, index, name, &clkspec)) { in clk_core_get()
402 hw = of_clk_get_hw_from_clkspec(&clkspec); in clk_core_get()
403 of_node_put(clkspec.np); in clk_core_get()
4278 struct clk *(*get)(struct of_phandle_args *clkspec, void *data);
4279 struct clk_hw *(*get_hw)(struct of_phandle_args *clkspec, void *data);
4290 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, in of_clk_src_simple_get() argument
4297 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_simple_get() argument
4303 struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data) in of_clk_src_onecell_get() argument
4306 unsigned int idx = clkspec->args[0]; in of_clk_src_onecell_get()
4318 of_clk_hw_onecell_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_onecell_get() argument
4321 unsigned int idx = clkspec->args[0]; in of_clk_hw_onecell_get()
4341 struct clk *(*clk_src_get)(struct of_phandle_args *clkspec, in of_clk_add_provider() argument
4378 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in of_clk_add_hw_provider() argument
4447 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in devm_of_clk_add_hw_provider() argument
4595 struct of_phandle_args *clkspec) in __of_clk_get_hw_from_provider() argument
4600 return provider->get_hw(clkspec, provider->data); in __of_clk_get_hw_from_provider()
4602 clk = provider->get(clkspec, provider->data); in __of_clk_get_hw_from_provider()
4609 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec) in of_clk_get_hw_from_clkspec() argument
4614 if (!clkspec) in of_clk_get_hw_from_clkspec()
4619 if (provider->node == clkspec->np) { in of_clk_get_hw_from_clkspec()
4620 hw = __of_clk_get_hw_from_provider(provider, clkspec); in of_clk_get_hw_from_clkspec()
4638 struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec) in of_clk_get_from_provider() argument
4640 struct clk_hw *hw = of_clk_get_hw_from_clkspec(clkspec); in of_clk_get_from_provider()
4651 struct of_phandle_args clkspec; in of_clk_get_hw() local
4653 ret = of_parse_clkspec(np, index, con_id, &clkspec); in of_clk_get_hw()
4657 hw = of_clk_get_hw_from_clkspec(&clkspec); in of_clk_get_hw()
4658 of_node_put(clkspec.np); in of_clk_get_hw()
4716 struct of_phandle_args clkspec; in of_clk_get_parent_name() local
4726 &clkspec); in of_clk_get_parent_name()
4730 index = clkspec.args_count ? clkspec.args[0] : 0; in of_clk_get_parent_name()
4736 of_property_for_each_u32(clkspec.np, "clock-indices", prop, vp, pv) { in of_clk_get_parent_name()
4747 if (of_property_read_string_index(clkspec.np, "clock-output-names", in of_clk_get_parent_name()
4756 clk = of_clk_get_from_provider(&clkspec); in of_clk_get_parent_name()
4758 if (clkspec.args_count == 0) in of_clk_get_parent_name()
4759 clk_name = clkspec.np->name; in of_clk_get_parent_name()
4769 of_node_put(clkspec.np); in of_clk_get_parent_name()