| /linux-6.15/drivers/clk/ |
| H A D | clk-conf.c | 17 struct of_phandle_args clkspec; in __set_clk_parents() local 29 "#clock-cells", index, &clkspec); in __set_clk_parents() 38 of_node_put(clkspec.np); in __set_clk_parents() 42 of_node_put(clkspec.np); in __set_clk_parents() 51 "#clock-cells", index, &clkspec); in __set_clk_parents() 55 of_node_put(clkspec.np); in __set_clk_parents() 60 of_node_put(clkspec.np); in __set_clk_parents() 84 struct of_phandle_args clkspec; in __set_clk_rates() local 125 "#clock-cells", index, &clkspec); in __set_clk_rates() 134 of_node_put(clkspec.np); in __set_clk_rates() [all …]
|
| H A D | clk.c | 492 struct of_phandle_args clkspec; in clk_core_get() local 497 of_node_put(clkspec.np); in clk_core_get() 5265 if (!clkspec) in of_clk_get_hw_from_clkspec() 5306 struct of_phandle_args clkspec; in of_clk_get_hw() local 5313 of_node_put(clkspec.np); in of_clk_get_hw() 5371 struct of_phandle_args clkspec; in of_clk_get_parent_name() local 5380 &clkspec); in of_clk_get_parent_name() 5384 index = clkspec.args_count ? clkspec.args[0] : 0; in of_clk_get_parent_name() 5400 of_node_put(clkspec.np); in of_clk_get_parent_name() 5415 if (clkspec.args_count == 0) in of_clk_get_parent_name() [all …]
|
| H A D | clk-rk808.c | 75 of_clk_rk808_get(struct of_phandle_args *clkspec, void *data) in of_clk_rk808_get() argument 78 unsigned int idx = clkspec->args[0]; in of_clk_rk808_get()
|
| /linux-6.15/arch/mips/ralink/ |
| H A D | clk.c | 64 struct of_phandle_args clkspec; in plat_time_init() local 76 clkspec.np = of_find_compatible_node(NULL, NULL, compatible); in plat_time_init() 77 clkspec.args_count = 1; in plat_time_init() 78 clkspec.args[0] = cpu_clk_idx; in plat_time_init() 79 clk = of_clk_get_from_provider(&clkspec); in plat_time_init()
|
| /linux-6.15/drivers/clk/renesas/ |
| H A D | clk-mstp.c | 255 struct of_phandle_args clkspec; in cpg_mstp_attach_dev() local 261 &clkspec)) { in cpg_mstp_attach_dev() 262 if (of_device_is_compatible(clkspec.np, in cpg_mstp_attach_dev() 267 if (of_node_name_eq(clkspec.np, "zb_clk")) in cpg_mstp_attach_dev() 270 of_node_put(clkspec.np); in cpg_mstp_attach_dev() 277 clk = of_clk_get_from_provider(&clkspec); in cpg_mstp_attach_dev() 278 of_node_put(clkspec.np); in cpg_mstp_attach_dev()
|
| H A D | renesas-cpg-mssr.c | 278 unsigned int clkidx = clkspec->args[1]; in cpg_mssr_clk_src_twocell_get() 286 switch (clkspec->args[0]) { in cpg_mssr_clk_src_twocell_get() 324 clkspec->args[0], clkspec->args[1], clk, in cpg_mssr_clk_src_twocell_get() 496 if (clkspec->np != pd->genpd.dev.of_node || clkspec->args_count != 2) in cpg_mssr_is_pm_clk() 499 switch (clkspec->args[0]) { in cpg_mssr_is_pm_clk() 518 struct of_phandle_args clkspec; in cpg_mssr_attach_dev() local 529 &clkspec)) { in cpg_mssr_attach_dev() 530 if (cpg_mssr_is_pm_clk(&clkspec, pd)) in cpg_mssr_attach_dev() 533 of_node_put(clkspec.np); in cpg_mssr_attach_dev() 540 clk = of_clk_get_from_provider(&clkspec); in cpg_mssr_attach_dev() [all …]
|
| H A D | rzv2h-cpg.c | 349 unsigned int clkidx = clkspec->args[1]; in rzv2h_cpg_clk_src_twocell_get() 355 switch (clkspec->args[0]) { in rzv2h_cpg_clk_src_twocell_get() 384 clkspec->args[0], clkspec->args[1], clk, in rzv2h_cpg_clk_src_twocell_get() 771 const struct of_phandle_args *clkspec) in rzv2h_cpg_is_pm_clk() argument 773 if (clkspec->np != pd->genpd.dev.of_node || clkspec->args_count != 2) in rzv2h_cpg_is_pm_clk() 776 switch (clkspec->args[0]) { in rzv2h_cpg_is_pm_clk() 779 unsigned int id = clkspec->args[1]; in rzv2h_cpg_is_pm_clk() 803 struct of_phandle_args clkspec; in rzv2h_cpg_attach_dev() local 811 of_node_put(clkspec.np); in rzv2h_cpg_attach_dev() 819 of_node_put(clkspec.np); in rzv2h_cpg_attach_dev() [all …]
|
| H A D | rzg2l-cpg.c | 1064 unsigned int clkidx = clkspec->args[1]; in rzg2l_cpg_clk_src_twocell_get() 1070 switch (clkspec->args[0]) { in rzg2l_cpg_clk_src_twocell_get() 1100 clkspec->args[0], clkspec->args[1], clk, in rzg2l_cpg_clk_src_twocell_get() 1567 const struct of_phandle_args *clkspec) in rzg2l_cpg_is_pm_clk() argument 1569 if (clkspec->np != pd->genpd.dev.of_node || clkspec->args_count != 2) in rzg2l_cpg_is_pm_clk() 1572 switch (clkspec->args[0]) { in rzg2l_cpg_is_pm_clk() 1576 unsigned int id = clkspec->args[1]; in rzg2l_cpg_is_pm_clk() 1601 struct of_phandle_args clkspec; in rzg2l_cpg_attach_dev() local 1609 of_node_put(clkspec.np); in rzg2l_cpg_attach_dev() 1617 of_node_put(clkspec.np); in rzg2l_cpg_attach_dev() [all …]
|
| /linux-6.15/drivers/clk/versatile/ |
| H A D | clk-sp810.c | 71 static struct clk *clk_sp810_timerclken_of_get(struct of_phandle_args *clkspec, in clk_sp810_timerclken_of_get() argument 76 if (WARN_ON(clkspec->args_count != 1 || in clk_sp810_timerclken_of_get() 77 clkspec->args[0] >= ARRAY_SIZE(sp810->timerclken))) in clk_sp810_timerclken_of_get() 80 return sp810->timerclken[clkspec->args[0]].clk; in clk_sp810_timerclken_of_get()
|
| /linux-6.15/drivers/clk/ti/ |
| H A D | clk.c | 176 struct of_phandle_args clkspec; in ti_dt_clocks_register() local 223 clkspec.np = node; in ti_dt_clocks_register() 224 clkspec.args_count = num_args; in ti_dt_clocks_register() 226 ret = kstrtoint(tags[i], i ? 10 : 16, clkspec.args + i); in ti_dt_clocks_register() 234 clk = of_clk_get_from_provider(&clkspec); in ti_dt_clocks_register() 519 struct of_phandle_args clkspec; in ti_clk_add_aliases() local 521 clkspec.np = np; in ti_clk_add_aliases() 522 clk = of_clk_get_from_provider(&clkspec); in ti_clk_add_aliases()
|
| H A D | clk-dra7-atl.c | 228 struct of_phandle_args clkspec; in of_dra7_atl_clk_probe() local 233 NULL, i, &clkspec); in of_dra7_atl_clk_probe() 242 clk = of_clk_get_from_provider(&clkspec); in of_dra7_atl_clk_probe() 243 of_node_put(clkspec.np); in of_dra7_atl_clk_probe()
|
| H A 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()
|
| H A D | clkctrl.c | 224 static struct clk_hw *_ti_omap4_clkctrl_xlate(struct of_phandle_args *clkspec, in _ti_omap4_clkctrl_xlate() argument 230 if (clkspec->args_count != 2) in _ti_omap4_clkctrl_xlate() 234 clkspec->args[0], clkspec->args[1]); in _ti_omap4_clkctrl_xlate() 237 if (iter->reg_offset == clkspec->args[0] && in _ti_omap4_clkctrl_xlate() 238 iter->bit_offset == clkspec->args[1]) { in _ti_omap4_clkctrl_xlate()
|
| /linux-6.15/drivers/clk/meson/ |
| H A D | meson-clkc-utils.c | 11 struct clk_hw *meson_clk_hw_get(struct of_phandle_args *clkspec, void *clk_hw_data) in meson_clk_hw_get() argument 14 unsigned int idx = clkspec->args[0]; in meson_clk_hw_get()
|
| H A D | meson-clkc-utils.h | 17 struct clk_hw *meson_clk_hw_get(struct of_phandle_args *clkspec, void *clk_hw_data);
|
| /linux-6.15/drivers/clk/ux500/ |
| H A 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.15/drivers/clk/at91/ |
| H A 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.15/sound/soc/qcom/qdsp6/ |
| H A D | q6dsp-lpass-clocks.c | 109 static struct clk_hw *q6dsp_of_clk_hw_get(struct of_phandle_args *clkspec, in q6dsp_of_clk_hw_get() argument 113 unsigned int idx = clkspec->args[0]; in q6dsp_of_clk_hw_get() 114 unsigned int attr = clkspec->args[1]; in q6dsp_of_clk_hw_get()
|
| /linux-6.15/drivers/clk/imx/ |
| H A D | clk-imx6q.c | 173 struct of_phandle_args clkspec; in of_assigned_ldb_sels() local 181 "#clock-cells", index, &clkspec); in of_assigned_ldb_sels() 189 if (clkspec.np != node || clkspec.args[0] >= IMX6QDL_CLK_END) { in of_assigned_ldb_sels() 193 parent = clkspec.args[0]; in of_assigned_ldb_sels() 196 "#clock-cells", index, &clkspec); in of_assigned_ldb_sels() 199 if (clkspec.np != node || clkspec.args[0] >= IMX6QDL_CLK_END) { in of_assigned_ldb_sels() 203 child = clkspec.args[0]; in of_assigned_ldb_sels() 226 struct of_phandle_args clkspec; in pll6_bypassed() local 236 &clkspec); in pll6_bypassed() 240 if (clkspec.np == node && in pll6_bypassed() [all …]
|
| /linux-6.15/drivers/clk/mvebu/ |
| H A 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()
|
| H A 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()
|
| H A 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.15/drivers/clk/qcom/ |
| H A D | clk-spmi-pmic-div.c | 181 spmi_pmic_div_clk_hw_get(struct of_phandle_args *clkspec, void *data) in spmi_pmic_div_clk_hw_get() argument 184 int idx = clkspec->args[0] - 1; /* Start at 1 instead of 0 */ in spmi_pmic_div_clk_hw_get() 188 __func__, clkspec->args[0], cc->nclks); in spmi_pmic_div_clk_hw_get()
|
| /linux-6.15/include/linux/ |
| H A D | clk-provider.h | 1602 struct clk_hw *(*get)(struct of_phandle_args *clkspec, 1606 struct clk_hw *(*get)(struct of_phandle_args *clkspec, 1611 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, 1613 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec, 1616 struct clk_hw *of_clk_hw_onecell_get(struct of_phandle_args *clkspec, 1633 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in of_clk_add_hw_provider() argument 1640 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in devm_of_clk_add_hw_provider() argument 1649 struct of_phandle_args *clkspec, void *data) in of_clk_src_simple_get() argument 1654 of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_simple_get() argument 1659 struct of_phandle_args *clkspec, void *data) in of_clk_src_onecell_get() argument [all …]
|
| /linux-6.15/drivers/clk/hisilicon/ |
| H A 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()
|