Lines Matching refs:clkspec
271 struct clk *cpg_mssr_clk_src_twocell_get(struct of_phandle_args *clkspec, in cpg_mssr_clk_src_twocell_get() argument
274 unsigned int clkidx = clkspec->args[1]; in cpg_mssr_clk_src_twocell_get()
282 switch (clkspec->args[0]) { in cpg_mssr_clk_src_twocell_get()
311 dev_err(dev, "Invalid CPG clock type %u\n", clkspec->args[0]); in cpg_mssr_clk_src_twocell_get()
320 clkspec->args[0], clkspec->args[1], clk, in cpg_mssr_clk_src_twocell_get()
479 static bool cpg_mssr_is_pm_clk(const struct of_phandle_args *clkspec, in cpg_mssr_is_pm_clk() argument
484 if (clkspec->np != pd->genpd.dev.of_node || clkspec->args_count != 2) in cpg_mssr_is_pm_clk()
487 switch (clkspec->args[0]) { in cpg_mssr_is_pm_clk()
490 if (clkspec->args[1] == pd->core_pm_clks[i]) in cpg_mssr_is_pm_clk()
506 struct of_phandle_args clkspec; in cpg_mssr_attach_dev() local
517 &clkspec)) { in cpg_mssr_attach_dev()
518 if (cpg_mssr_is_pm_clk(&clkspec, pd)) in cpg_mssr_attach_dev()
521 of_node_put(clkspec.np); in cpg_mssr_attach_dev()
528 clk = of_clk_get_from_provider(&clkspec); in cpg_mssr_attach_dev()
529 of_node_put(clkspec.np); in cpg_mssr_attach_dev()