Lines Matching refs:clkspec
220 struct clk *cpg_mssr_clk_src_twocell_get(struct of_phandle_args *clkspec, in cpg_mssr_clk_src_twocell_get() argument
223 unsigned int clkidx = clkspec->args[1]; in cpg_mssr_clk_src_twocell_get()
230 switch (clkspec->args[0]) { in cpg_mssr_clk_src_twocell_get()
253 dev_err(dev, "Invalid CPG clock type %u\n", clkspec->args[0]); in cpg_mssr_clk_src_twocell_get()
262 clkspec->args[0], clkspec->args[1], clk, in cpg_mssr_clk_src_twocell_get()
416 static bool cpg_mssr_is_pm_clk(const struct of_phandle_args *clkspec, in cpg_mssr_is_pm_clk() argument
421 if (clkspec->np != pd->np || clkspec->args_count != 2) in cpg_mssr_is_pm_clk()
424 switch (clkspec->args[0]) { in cpg_mssr_is_pm_clk()
427 if (clkspec->args[1] == pd->core_pm_clks[i]) in cpg_mssr_is_pm_clk()
443 struct of_phandle_args clkspec; in cpg_mssr_attach_dev() local
454 &clkspec)) { in cpg_mssr_attach_dev()
455 if (cpg_mssr_is_pm_clk(&clkspec, pd)) in cpg_mssr_attach_dev()
458 of_node_put(clkspec.np); in cpg_mssr_attach_dev()
465 clk = of_clk_get_from_provider(&clkspec); in cpg_mssr_attach_dev()
466 of_node_put(clkspec.np); in cpg_mssr_attach_dev()