/linux-6.1.9/drivers/clk/ |
D | clk-conf.c | 16 struct of_phandle_args clkspec; in __set_clk_parents() local 28 "#clock-cells", index, &clkspec); in __set_clk_parents() 36 if (clkspec.np == node && !clk_supplier) in __set_clk_parents() 38 pclk = of_clk_get_from_provider(&clkspec); in __set_clk_parents() 47 "#clock-cells", index, &clkspec); in __set_clk_parents() 50 if (clkspec.np == node && !clk_supplier) { in __set_clk_parents() 54 clk = of_clk_get_from_provider(&clkspec); in __set_clk_parents() 78 struct of_phandle_args clkspec; in __set_clk_rates() local 88 "#clock-cells", index, &clkspec); in __set_clk_rates() 96 if (clkspec.np == node && !clk_supplier) in __set_clk_rates() [all …]
|
D | clk.c | 334 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec); 343 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec) in of_clk_get_hw_from_clkspec() argument 393 struct of_phandle_args clkspec; in clk_core_get() local 396 !of_parse_clkspec(np, index, name, &clkspec)) { in clk_core_get() 397 hw = of_clk_get_hw_from_clkspec(&clkspec); in clk_core_get() 398 of_node_put(clkspec.np); in clk_core_get() 4683 struct clk *(*get)(struct of_phandle_args *clkspec, void *data); 4684 struct clk_hw *(*get_hw)(struct of_phandle_args *clkspec, void *data); 4695 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, in of_clk_src_simple_get() argument 4702 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_simple_get() argument [all …]
|
D | clk-rk808.c | 78 of_clk_rk808_get(struct of_phandle_args *clkspec, void *data) in of_clk_rk808_get() argument 81 unsigned int idx = clkspec->args[0]; in of_clk_rk808_get()
|
/linux-6.1.9/drivers/clk/renesas/ |
D | clk-mstp.c | 269 struct of_phandle_args clkspec; in cpg_mstp_attach_dev() local 275 &clkspec)) { in cpg_mstp_attach_dev() 276 if (of_device_is_compatible(clkspec.np, in cpg_mstp_attach_dev() 281 if (of_node_name_eq(clkspec.np, "zb_clk")) in cpg_mstp_attach_dev() 284 of_node_put(clkspec.np); in cpg_mstp_attach_dev() 291 clk = of_clk_get_from_provider(&clkspec); in cpg_mstp_attach_dev() 292 of_node_put(clkspec.np); in cpg_mstp_attach_dev()
|
D | renesas-cpg-mssr.c | 277 struct clk *cpg_mssr_clk_src_twocell_get(struct of_phandle_args *clkspec, in cpg_mssr_clk_src_twocell_get() argument 280 unsigned int clkidx = clkspec->args[1]; in cpg_mssr_clk_src_twocell_get() 288 switch (clkspec->args[0]) { in cpg_mssr_clk_src_twocell_get() 317 dev_err(dev, "Invalid CPG clock type %u\n", clkspec->args[0]); in cpg_mssr_clk_src_twocell_get() 326 clkspec->args[0], clkspec->args[1], clk, in cpg_mssr_clk_src_twocell_get() 485 static bool cpg_mssr_is_pm_clk(const struct of_phandle_args *clkspec, in cpg_mssr_is_pm_clk() argument 490 if (clkspec->np != pd->genpd.dev.of_node || clkspec->args_count != 2) in cpg_mssr_is_pm_clk() 493 switch (clkspec->args[0]) { in cpg_mssr_is_pm_clk() 496 if (clkspec->args[1] == pd->core_pm_clks[i]) in cpg_mssr_is_pm_clk() 512 struct of_phandle_args clkspec; in cpg_mssr_attach_dev() local [all …]
|
D | rzg2l-cpg.c | 759 *rzg2l_cpg_clk_src_twocell_get(struct of_phandle_args *clkspec, in rzg2l_cpg_clk_src_twocell_get() argument 762 unsigned int clkidx = clkspec->args[1]; in rzg2l_cpg_clk_src_twocell_get() 768 switch (clkspec->args[0]) { in rzg2l_cpg_clk_src_twocell_get() 789 dev_err(dev, "Invalid CPG clock type %u\n", clkspec->args[0]); in rzg2l_cpg_clk_src_twocell_get() 798 clkspec->args[0], clkspec->args[1], clk, in rzg2l_cpg_clk_src_twocell_get() 1226 static bool rzg2l_cpg_is_pm_clk(const struct of_phandle_args *clkspec) in rzg2l_cpg_is_pm_clk() argument 1228 if (clkspec->args_count != 2) in rzg2l_cpg_is_pm_clk() 1231 switch (clkspec->args[0]) { in rzg2l_cpg_is_pm_clk() 1243 struct of_phandle_args clkspec; in rzg2l_cpg_attach_dev() local 1250 &clkspec)) { in rzg2l_cpg_attach_dev() [all …]
|
D | r9a06g032-clocks.c | 381 static int create_add_module_clock(struct of_phandle_args *clkspec, in create_add_module_clock() argument 387 clk = of_clk_get_from_provider(clkspec); in create_add_module_clock() 410 struct of_phandle_args clkspec; in r9a06g032_attach_dev() local 416 &clkspec)) { in r9a06g032_attach_dev() 417 if (clkspec.np != pd->dev.of_node) in r9a06g032_attach_dev() 420 index = clkspec.args[0]; in r9a06g032_attach_dev() 423 error = create_add_module_clock(&clkspec, dev); in r9a06g032_attach_dev() 424 of_node_put(clkspec.np); in r9a06g032_attach_dev()
|
/linux-6.1.9/drivers/clk/ti/ |
D | clk.c | 169 struct of_phandle_args clkspec; in ti_dt_clocks_register() local 216 clkspec.np = node; in ti_dt_clocks_register() 217 clkspec.args_count = num_args; in ti_dt_clocks_register() 219 ret = kstrtoint(tags[i], i ? 10 : 16, clkspec.args + i); in ti_dt_clocks_register() 227 clk = of_clk_get_from_provider(&clkspec); in ti_dt_clocks_register() 473 struct of_phandle_args clkspec; in ti_clk_add_aliases() local 475 clkspec.np = np; in ti_clk_add_aliases() 476 clk = of_clk_get_from_provider(&clkspec); in ti_clk_add_aliases()
|
D | composite.c | 71 struct of_phandle_args clkspec; in _get_component_node() local 74 &clkspec); in _get_component_node() 78 return clkspec.np; in _get_component_node()
|
D | clkctrl.c | 223 static struct clk_hw *_ti_omap4_clkctrl_xlate(struct of_phandle_args *clkspec, in _ti_omap4_clkctrl_xlate() argument 229 if (clkspec->args_count != 2) in _ti_omap4_clkctrl_xlate() 233 clkspec->args[0], clkspec->args[1]); in _ti_omap4_clkctrl_xlate() 236 if (iter->reg_offset == clkspec->args[0] && in _ti_omap4_clkctrl_xlate() 237 iter->bit_offset == clkspec->args[1]) { in _ti_omap4_clkctrl_xlate()
|
D | clk-dra7-atl.c | 238 struct of_phandle_args clkspec; in of_dra7_atl_clk_probe() local 243 NULL, i, &clkspec); in of_dra7_atl_clk_probe() 252 clk = of_clk_get_from_provider(&clkspec); in of_dra7_atl_clk_probe()
|
/linux-6.1.9/drivers/clk/versatile/ |
D | clk-sp810.c | 70 static struct clk *clk_sp810_timerclken_of_get(struct of_phandle_args *clkspec, in clk_sp810_timerclken_of_get() argument 75 if (WARN_ON(clkspec->args_count != 1 || in clk_sp810_timerclken_of_get() 76 clkspec->args[0] >= ARRAY_SIZE(sp810->timerclken))) in clk_sp810_timerclken_of_get() 79 return sp810->timerclken[clkspec->args[0]].clk; in clk_sp810_timerclken_of_get()
|
/linux-6.1.9/drivers/clk/ux500/ |
D | u8500_of_clk.c | 29 static struct clk *ux500_twocell_get(struct of_phandle_args *clkspec, in ux500_twocell_get() argument 35 if (clkspec->args_count != 2) in ux500_twocell_get() 38 base = clkspec->args[0]; in ux500_twocell_get() 39 bit = clkspec->args[1]; in ux500_twocell_get() 74 static struct clk_hw *ux500_clkout_get(struct of_phandle_args *clkspec, in ux500_clkout_get() argument 80 if (clkspec->args_count != 3) in ux500_clkout_get() 83 id = clkspec->args[0]; in ux500_clkout_get() 84 source = clkspec->args[1]; in ux500_clkout_get() 85 divider = clkspec->args[2]; in ux500_clkout_get()
|
/linux-6.1.9/drivers/clk/at91/ |
D | pmc.c | 47 struct clk_hw *of_clk_hw_pmc_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_pmc_get() argument 49 unsigned int type = clkspec->args[0]; in of_clk_hw_pmc_get() 50 unsigned int idx = clkspec->args[1]; in of_clk_hw_pmc_get()
|
/linux-6.1.9/drivers/clk/imx/ |
D | clk-imx6q.c | 168 struct of_phandle_args clkspec; in of_assigned_ldb_sels() local 176 "#clock-cells", index, &clkspec); in of_assigned_ldb_sels() 184 if (clkspec.np != node || clkspec.args[0] >= IMX6QDL_CLK_END) { in of_assigned_ldb_sels() 188 parent = clkspec.args[0]; in of_assigned_ldb_sels() 191 "#clock-cells", index, &clkspec); in of_assigned_ldb_sels() 194 if (clkspec.np != node || clkspec.args[0] >= IMX6QDL_CLK_END) { in of_assigned_ldb_sels() 198 child = clkspec.args[0]; in of_assigned_ldb_sels() 221 struct of_phandle_args clkspec; in pll6_bypassed() local 231 &clkspec); in pll6_bypassed() 235 if (clkspec.np == node && in pll6_bypassed() [all …]
|
/linux-6.1.9/sound/soc/qcom/qdsp6/ |
D | q6dsp-lpass-clocks.c | 110 static struct clk_hw *q6dsp_of_clk_hw_get(struct of_phandle_args *clkspec, in q6dsp_of_clk_hw_get() argument 114 unsigned int idx = clkspec->args[0]; in q6dsp_of_clk_hw_get() 115 unsigned int attr = clkspec->args[1]; in q6dsp_of_clk_hw_get()
|
/linux-6.1.9/include/linux/ |
D | clk-provider.h | 1511 struct clk_hw *(*get)(struct of_phandle_args *clkspec, 1515 struct clk_hw *(*get)(struct of_phandle_args *clkspec, 1520 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, 1522 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec, 1524 struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data); 1525 struct clk_hw *of_clk_hw_onecell_get(struct of_phandle_args *clkspec, 1542 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in of_clk_add_hw_provider() argument 1549 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in devm_of_clk_add_hw_provider() argument 1558 struct of_phandle_args *clkspec, void *data) in of_clk_src_simple_get() argument 1563 of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_simple_get() argument [all …]
|
/linux-6.1.9/drivers/clk/mvebu/ |
D | kirkwood.c | 272 struct of_phandle_args *clkspec, void *data) in clk_muxing_get_src() argument 277 if (clkspec->args_count < 1) in clk_muxing_get_src() 283 if (clkspec->args[0] == mux->shift) in clk_muxing_get_src()
|
D | common.c | 202 struct of_phandle_args *clkspec, void *data) in clk_gating_get_src() argument 206 if (clkspec->args_count < 1) in clk_gating_get_src() 212 if (clkspec->args[0] == gate->bit_idx) in clk_gating_get_src()
|
D | cp110-system-controller.c | 195 static struct clk_hw *cp110_of_clk_get(struct of_phandle_args *clkspec, in cp110_of_clk_get() argument 199 unsigned int type = clkspec->args[0]; in cp110_of_clk_get() 200 unsigned int idx = clkspec->args[1]; in cp110_of_clk_get()
|
/linux-6.1.9/drivers/clk/qcom/ |
D | clk-spmi-pmic-div.c | 184 spmi_pmic_div_clk_hw_get(struct of_phandle_args *clkspec, void *data) in spmi_pmic_div_clk_hw_get() argument 187 int idx = clkspec->args[0] - 1; /* Start at 1 instead of 0 */ in spmi_pmic_div_clk_hw_get() 191 __func__, clkspec->args[0], cc->nclks); in spmi_pmic_div_clk_hw_get()
|
/linux-6.1.9/drivers/clk/hisilicon/ |
D | clk-hi3660-stub.c | 111 static struct clk_hw *hi3660_stub_clk_hw_get(struct of_phandle_args *clkspec, in hi3660_stub_clk_hw_get() argument 114 unsigned int idx = clkspec->args[0]; in hi3660_stub_clk_hw_get()
|
/linux-6.1.9/drivers/clk/tegra/ |
D | clk-tegra20.c | 1073 static struct clk *tegra20_clk_src_onecell_get(struct of_phandle_args *clkspec, in tegra20_clk_src_onecell_get() argument 1084 if (clkspec->args[0] != TEGRA20_CLK_RTC && in tegra20_clk_src_onecell_get() 1085 clkspec->args[0] != TEGRA20_CLK_TWD && in tegra20_clk_src_onecell_get() 1086 clkspec->args[0] != TEGRA20_CLK_TIMER && in tegra20_clk_src_onecell_get() 1090 clk = of_clk_src_onecell_get(clkspec, data); in tegra20_clk_src_onecell_get() 1103 if (clkspec->args[0] == TEGRA20_CLK_CDEV1 || in tegra20_clk_src_onecell_get() 1104 clkspec->args[0] == TEGRA20_CLK_CDEV2) { in tegra20_clk_src_onecell_get() 1110 if (clkspec->args[0] == TEGRA20_CLK_EMC) { in tegra20_clk_src_onecell_get()
|
/linux-6.1.9/drivers/clk/starfive/ |
D | clk-starfive-jh7100-audio.c | 88 static struct clk_hw *jh7100_audclk_get(struct of_phandle_args *clkspec, void *data) in jh7100_audclk_get() argument 91 unsigned int idx = clkspec->args[0]; in jh7100_audclk_get()
|
/linux-6.1.9/drivers/clk/baikal-t1/ |
D | clk-ccu-pll.c | 129 static struct clk_hw *ccu_pll_of_clk_hw_get(struct of_phandle_args *clkspec, in ccu_pll_of_clk_hw_get() argument 136 clk_id = clkspec->args[0]; in ccu_pll_of_clk_hw_get()
|