Lines Matching refs:clkspec
762 *rzg2l_cpg_clk_src_twocell_get(struct of_phandle_args *clkspec, in rzg2l_cpg_clk_src_twocell_get() argument
765 unsigned int clkidx = clkspec->args[1]; in rzg2l_cpg_clk_src_twocell_get()
771 switch (clkspec->args[0]) { in rzg2l_cpg_clk_src_twocell_get()
792 dev_err(dev, "Invalid CPG clock type %u\n", clkspec->args[0]); in rzg2l_cpg_clk_src_twocell_get()
801 clkspec->args[0], clkspec->args[1], clk, in rzg2l_cpg_clk_src_twocell_get()
1230 const struct of_phandle_args *clkspec) in rzg2l_cpg_is_pm_clk() argument
1236 if (clkspec->args_count != 2) in rzg2l_cpg_is_pm_clk()
1239 if (clkspec->args[0] != CPG_MOD) in rzg2l_cpg_is_pm_clk()
1242 id = clkspec->args[1] + info->num_total_core_clks; in rzg2l_cpg_is_pm_clk()
1255 struct of_phandle_args clkspec; in rzg2l_cpg_attach_dev() local
1262 &clkspec)) { in rzg2l_cpg_attach_dev()
1263 if (rzg2l_cpg_is_pm_clk(priv, &clkspec)) { in rzg2l_cpg_attach_dev()
1268 of_node_put(clkspec.np); in rzg2l_cpg_attach_dev()
1272 clk = of_clk_get_from_provider(&clkspec); in rzg2l_cpg_attach_dev()
1273 of_node_put(clkspec.np); in rzg2l_cpg_attach_dev()
1286 of_node_put(clkspec.np); in rzg2l_cpg_attach_dev()