Lines Matching refs:clkspec
272 struct clk *cpg_mssr_clk_src_twocell_get(struct of_phandle_args *clkspec, in cpg_mssr_clk_src_twocell_get() argument
275 unsigned int clkidx = clkspec->args[1]; in cpg_mssr_clk_src_twocell_get()
283 switch (clkspec->args[0]) { in cpg_mssr_clk_src_twocell_get()
312 dev_err(dev, "Invalid CPG clock type %u\n", clkspec->args[0]); in cpg_mssr_clk_src_twocell_get()
321 clkspec->args[0], clkspec->args[1], clk, in cpg_mssr_clk_src_twocell_get()
480 static bool cpg_mssr_is_pm_clk(const struct of_phandle_args *clkspec, in cpg_mssr_is_pm_clk() argument
485 if (clkspec->np != pd->genpd.dev.of_node || clkspec->args_count != 2) in cpg_mssr_is_pm_clk()
488 switch (clkspec->args[0]) { in cpg_mssr_is_pm_clk()
491 if (clkspec->args[1] == pd->core_pm_clks[i]) in cpg_mssr_is_pm_clk()
507 struct of_phandle_args clkspec; in cpg_mssr_attach_dev() local
518 &clkspec)) { in cpg_mssr_attach_dev()
519 if (cpg_mssr_is_pm_clk(&clkspec, pd)) in cpg_mssr_attach_dev()
522 of_node_put(clkspec.np); in cpg_mssr_attach_dev()
529 clk = of_clk_get_from_provider(&clkspec); in cpg_mssr_attach_dev()
530 of_node_put(clkspec.np); in cpg_mssr_attach_dev()