Home
last modified time | relevance | path

Searched refs:clkspec (Results 1 – 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/clk/
Dclk-conf.c16 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 …]
Dclk.c341 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec);
350 of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec) in of_clk_get_hw_from_clkspec() argument
400 struct of_phandle_args clkspec; in clk_core_get() local
403 !of_parse_clkspec(np, index, name, &clkspec)) { in clk_core_get()
404 hw = of_clk_get_hw_from_clkspec(&clkspec); in clk_core_get()
405 of_node_put(clkspec.np); in clk_core_get()
4417 struct clk *(*get)(struct of_phandle_args *clkspec, void *data);
4418 struct clk_hw *(*get_hw)(struct of_phandle_args *clkspec, void *data);
4429 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, in of_clk_src_simple_get() argument
4436 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_simple_get() argument
[all …]
Dclk-rk808.c78 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()
Dclk-max77686.c148 of_clk_max77686_get(struct of_phandle_args *clkspec, void *data) in of_clk_max77686_get() argument
151 unsigned int idx = clkspec->args[0]; in of_clk_max77686_get()
/kernel/linux/linux-5.10/drivers/clk/renesas/
Dclk-mstp.c269 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()
Drenesas-cpg-mssr.c272 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
[all …]
Dr9a06g032-clocks.c355 static int create_add_module_clock(struct of_phandle_args *clkspec, in create_add_module_clock() argument
361 clk = of_clk_get_from_provider(clkspec); in create_add_module_clock()
384 struct of_phandle_args clkspec; in r9a06g032_attach_dev() local
390 &clkspec)) { in r9a06g032_attach_dev()
391 if (clkspec.np != pd->dev.of_node) in r9a06g032_attach_dev()
394 index = clkspec.args[0]; in r9a06g032_attach_dev()
397 error = create_add_module_clock(&clkspec, dev); in r9a06g032_attach_dev()
398 of_node_put(clkspec.np); in r9a06g032_attach_dev()
/kernel/linux/linux-5.10/drivers/clk/ti/
Dclk.c136 struct of_phandle_args clkspec; in ti_dt_clocks_register() local
183 clkspec.np = node; in ti_dt_clocks_register()
184 clkspec.args_count = num_args; in ti_dt_clocks_register()
186 ret = kstrtoint(tags[i], i ? 10 : 16, clkspec.args + i); in ti_dt_clocks_register()
194 clk = of_clk_get_from_provider(&clkspec); in ti_dt_clocks_register()
416 struct of_phandle_args clkspec; in ti_clk_add_aliases() local
418 clkspec.np = np; in ti_clk_add_aliases()
419 clk = of_clk_get_from_provider(&clkspec); in ti_clk_add_aliases()
Dcomposite.c79 struct of_phandle_args clkspec; in _get_component_node() local
82 &clkspec); in _get_component_node()
86 return clkspec.np; in _get_component_node()
Dclkctrl.c231 static struct clk_hw *_ti_omap4_clkctrl_xlate(struct of_phandle_args *clkspec, in _ti_omap4_clkctrl_xlate() argument
238 if (clkspec->args_count != 2) in _ti_omap4_clkctrl_xlate()
242 clkspec->args[0], clkspec->args[1]); in _ti_omap4_clkctrl_xlate()
245 if (entry->reg_offset == clkspec->args[0] && in _ti_omap4_clkctrl_xlate()
246 entry->bit_offset == clkspec->args[1]) { in _ti_omap4_clkctrl_xlate()
Dclk-dra7-atl.c244 struct of_phandle_args clkspec; in of_dra7_atl_clk_probe() local
249 NULL, i, &clkspec); in of_dra7_atl_clk_probe()
258 clk = of_clk_get_from_provider(&clkspec); in of_dra7_atl_clk_probe()
/kernel/linux/linux-5.10/drivers/clk/versatile/
Dclk-sp810.c70 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()
/kernel/linux/linux-5.10/drivers/clk/imx/
Dclk-imx6q.c168 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
Drcar_du_of.c190 struct of_phandle_args clkspec; member
256 &lvds->clkspec); in rcar_du_of_lvds_patch()
304 rcar_du_of_lvds_patch_one(lvds_node, &lvds_data[i].clkspec, in rcar_du_of_lvds_patch()
311 of_node_put(lvds_data[i].clkspec.np); in rcar_du_of_lvds_patch()
/kernel/linux/linux-5.10/include/linux/
Dclk-provider.h1308 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
1312 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
1317 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec,
1319 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec,
1321 struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data);
1322 struct clk_hw *of_clk_hw_onecell_get(struct of_phandle_args *clkspec,
1339 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in of_clk_add_hw_provider() argument
1346 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in devm_of_clk_add_hw_provider() argument
1355 struct of_phandle_args *clkspec, void *data) in of_clk_src_simple_get() argument
1360 of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_simple_get() argument
[all …]
/kernel/linux/linux-5.10/drivers/clk/mvebu/
Dkirkwood.c272 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()
Dcommon.c202 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()
Dcp110-system-controller.c195 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()
/kernel/linux/linux-5.10/drivers/clk/qcom/
Dclk-spmi-pmic-div.c184 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()
/kernel/linux/linux-5.10/drivers/clk/hisilicon/
Dclk-hi3660-stub.c111 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()
/kernel/linux/linux-5.10/drivers/clk/at91/
Dpmc.c47 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()
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/
Dq6afe-clocks.c203 static struct clk_hw *q6afe_of_clk_hw_get(struct of_phandle_args *clkspec, in q6afe_of_clk_hw_get() argument
207 unsigned int idx = clkspec->args[0]; in q6afe_of_clk_hw_get()
208 unsigned int attr = clkspec->args[1]; in q6afe_of_clk_hw_get()
/kernel/linux/linux-5.10/drivers/clk/baikal-t1/
Dclk-ccu-pll.c126 static struct clk_hw *ccu_pll_of_clk_hw_get(struct of_phandle_args *clkspec, in ccu_pll_of_clk_hw_get() argument
133 clk_id = clkspec->args[0]; in ccu_pll_of_clk_hw_get()
/kernel/linux/linux-5.10/drivers/clk/keystone/
Dsci-clk.c385 static struct clk_hw *sci_clk_get(struct of_phandle_args *clkspec, void *data) in sci_clk_get() argument
391 if (clkspec->args_count != 2) in sci_clk_get()
394 key.dev_id = clkspec->args[0]; in sci_clk_get()
395 key.clk_id = clkspec->args[1]; in sci_clk_get()
/kernel/linux/linux-5.10/drivers/clk/nxp/
Dclk-lpc18xx-ccu.c115 static struct clk *lpc18xx_ccu_branch_clk_get(struct of_phandle_args *clkspec, in lpc18xx_ccu_branch_clk_get() argument
119 unsigned int offset = clkspec->args[0]; in lpc18xx_ccu_branch_clk_get()

123