Home
last modified time | relevance | path

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

12

/linux-4.19.296/drivers/clk/
Dclk-conf.c19 struct of_phandle_args clkspec; in __set_clk_parents() local
31 "#clock-cells", index, &clkspec); in __set_clk_parents()
39 if (clkspec.np == node && !clk_supplier) { in __set_clk_parents()
40 of_node_put(clkspec.np); in __set_clk_parents()
43 pclk = of_clk_get_from_provider(&clkspec); in __set_clk_parents()
44 of_node_put(clkspec.np); in __set_clk_parents()
53 "#clock-cells", index, &clkspec); in __set_clk_parents()
56 if (clkspec.np == node && !clk_supplier) { in __set_clk_parents()
57 of_node_put(clkspec.np); in __set_clk_parents()
61 clk = of_clk_get_from_provider(&clkspec); in __set_clk_parents()
[all …]
Dclk.c3745 struct clk *(*get)(struct of_phandle_args *clkspec, void *data);
3746 struct clk_hw *(*get_hw)(struct of_phandle_args *clkspec, void *data);
3756 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, in of_clk_src_simple_get() argument
3763 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_simple_get() argument
3769 struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data) in of_clk_src_onecell_get() argument
3772 unsigned int idx = clkspec->args[0]; in of_clk_src_onecell_get()
3784 of_clk_hw_onecell_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_onecell_get() argument
3787 unsigned int idx = clkspec->args[0]; in of_clk_hw_onecell_get()
3805 struct clk *(*clk_src_get)(struct of_phandle_args *clkspec, in of_clk_add_provider() argument
3840 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in of_clk_add_hw_provider() argument
[all …]
Dclkdev.c34 struct of_phandle_args clkspec; in __of_clk_get() local
39 &clkspec); in __of_clk_get()
43 clk = __of_clk_get_from_provider(&clkspec, dev_id, con_id); in __of_clk_get()
44 of_node_put(clkspec.np); in __of_clk_get()
Dclk-rk808.c86 of_clk_rk808_get(struct of_phandle_args *clkspec, void *data) in of_clk_rk808_get() argument
89 unsigned int idx = clkspec->args[0]; in of_clk_rk808_get()
Dclk.h15 struct clk *__of_clk_get_from_provider(struct of_phandle_args *clkspec,
Dclk-max77686.c163 of_clk_max77686_get(struct of_phandle_args *clkspec, void *data) in of_clk_max77686_get() argument
166 unsigned int idx = clkspec->args[0]; in of_clk_max77686_get()
/linux-4.19.296/drivers/clk/renesas/
Drenesas-cpg-mssr.c220 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
[all …]
Dclk-mstp.c274 struct of_phandle_args clkspec; in cpg_mstp_attach_dev() local
280 &clkspec)) { in cpg_mstp_attach_dev()
281 if (of_device_is_compatible(clkspec.np, in cpg_mstp_attach_dev()
286 if (!strcmp(clkspec.np->name, "zb_clk")) in cpg_mstp_attach_dev()
289 of_node_put(clkspec.np); in cpg_mstp_attach_dev()
296 clk = of_clk_get_from_provider(&clkspec); in cpg_mstp_attach_dev()
297 of_node_put(clkspec.np); in cpg_mstp_attach_dev()
/linux-4.19.296/drivers/clk/ti/
Dclk.c134 struct of_phandle_args clkspec; in ti_dt_clocks_register() local
173 clkspec.np = node; in ti_dt_clocks_register()
174 clkspec.args_count = num_args; in ti_dt_clocks_register()
176 ret = kstrtoint(tags[i], i ? 10 : 16, clkspec.args + i); in ti_dt_clocks_register()
184 clk = of_clk_get_from_provider(&clkspec); in ti_dt_clocks_register()
403 struct of_phandle_args clkspec; in ti_clk_add_aliases() local
405 clkspec.np = np; in ti_clk_add_aliases()
406 clk = of_clk_get_from_provider(&clkspec); in ti_clk_add_aliases()
Dclkctrl.c228 static struct clk_hw *_ti_omap4_clkctrl_xlate(struct of_phandle_args *clkspec, in _ti_omap4_clkctrl_xlate() argument
235 if (clkspec->args_count != 2) in _ti_omap4_clkctrl_xlate()
239 clkspec->args[0], clkspec->args[1]); in _ti_omap4_clkctrl_xlate()
242 if (entry->reg_offset == clkspec->args[0] && in _ti_omap4_clkctrl_xlate()
243 entry->bit_offset == clkspec->args[1]) { in _ti_omap4_clkctrl_xlate()
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()
Dclk-dra7-atl.c245 struct of_phandle_args clkspec; in of_dra7_atl_clk_probe() local
250 NULL, i, &clkspec); in of_dra7_atl_clk_probe()
259 clk = of_clk_get_from_provider(&clkspec); in of_dra7_atl_clk_probe()
/linux-4.19.296/drivers/clk/versatile/
Dclk-sp810.c76 static struct clk *clk_sp810_timerclken_of_get(struct of_phandle_args *clkspec, in clk_sp810_timerclken_of_get() argument
81 if (WARN_ON(clkspec->args_count != 1 || in clk_sp810_timerclken_of_get()
82 clkspec->args[0] >= ARRAY_SIZE(sp810->timerclken))) in clk_sp810_timerclken_of_get()
85 return sp810->timerclken[clkspec->args[0]].clk; in clk_sp810_timerclken_of_get()
/linux-4.19.296/include/linux/
Dclk-provider.h908 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
912 struct clk_hw *(*get)(struct of_phandle_args *clkspec,
917 struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec,
919 struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec,
921 struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data);
922 struct clk_hw *of_clk_hw_onecell_get(struct of_phandle_args *clkspec,
939 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in of_clk_add_hw_provider() argument
946 struct clk_hw *(*get)(struct of_phandle_args *clkspec, in devm_of_clk_add_hw_provider() argument
955 struct of_phandle_args *clkspec, void *data) in of_clk_src_simple_get() argument
960 of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) in of_clk_hw_simple_get() argument
[all …]
Dclk.h780 struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
791 static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec) in of_clk_get_from_provider() argument
/linux-4.19.296/drivers/clk/mvebu/
Dkirkwood.c261 struct of_phandle_args *clkspec, void *data) in clk_muxing_get_src() argument
266 if (clkspec->args_count < 1) in clk_muxing_get_src()
272 if (clkspec->args[0] == mux->shift) in clk_muxing_get_src()
Dcommon.c204 struct of_phandle_args *clkspec, void *data) in clk_gating_get_src() argument
208 if (clkspec->args_count < 1) in clk_gating_get_src()
214 if (clkspec->args[0] == gate->bit_idx) in clk_gating_get_src()
Dcp110-system-controller.c197 static struct clk_hw *cp110_of_clk_get(struct of_phandle_args *clkspec, in cp110_of_clk_get() argument
201 unsigned int type = clkspec->args[0]; in cp110_of_clk_get()
202 unsigned int idx = clkspec->args[1]; in cp110_of_clk_get()
/linux-4.19.296/drivers/clk/qcom/
Dclk-spmi-pmic-div.c192 spmi_pmic_div_clk_hw_get(struct of_phandle_args *clkspec, void *data) in spmi_pmic_div_clk_hw_get() argument
195 int idx = clkspec->args[0] - 1; /* Start at 1 instead of 0 */ in spmi_pmic_div_clk_hw_get()
199 __func__, clkspec->args[0], cc->nclks); in spmi_pmic_div_clk_hw_get()
Dcommon.c209 static struct clk_hw *qcom_cc_clk_hw_get(struct of_phandle_args *clkspec, in qcom_cc_clk_hw_get() argument
213 unsigned int idx = clkspec->args[0]; in qcom_cc_clk_hw_get()
/linux-4.19.296/drivers/clk/hisilicon/
Dclk-hi3660-stub.c120 static struct clk_hw *hi3660_stub_clk_hw_get(struct of_phandle_args *clkspec, in hi3660_stub_clk_hw_get() argument
123 unsigned int idx = clkspec->args[0]; in hi3660_stub_clk_hw_get()
/linux-4.19.296/drivers/clk/keystone/
Dsci-clk.c366 static struct clk_hw *sci_clk_get(struct of_phandle_args *clkspec, void *data) in sci_clk_get() argument
372 if (clkspec->args_count != 2) in sci_clk_get()
375 key.dev_id = clkspec->args[0]; in sci_clk_get()
376 key.clk_id = clkspec->args[1]; in sci_clk_get()
/linux-4.19.296/drivers/clk/imx/
Dclk-imx6q.c178 struct of_phandle_args clkspec; in of_assigned_ldb_sels() local
186 "#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 parent = clkspec.args[0]; in of_assigned_ldb_sels()
201 "#clock-cells", index, &clkspec); in of_assigned_ldb_sels()
204 if (clkspec.np != node || clkspec.args[0] >= IMX6QDL_CLK_END) { in of_assigned_ldb_sels()
208 child = clkspec.args[0]; in of_assigned_ldb_sels()
/linux-4.19.296/drivers/clk/nxp/
Dclk-lpc18xx-ccu.c114 static struct clk *lpc18xx_ccu_branch_clk_get(struct of_phandle_args *clkspec, in lpc18xx_ccu_branch_clk_get() argument
118 unsigned int offset = clkspec->args[0]; in lpc18xx_ccu_branch_clk_get()
/linux-4.19.296/drivers/clk/ux500/
Du8500_of_clk.c30 static struct clk *ux500_twocell_get(struct of_phandle_args *clkspec, in ux500_twocell_get() argument
36 if (clkspec->args_count != 2) in ux500_twocell_get()
39 base = clkspec->args[0]; in ux500_twocell_get()
40 bit = clkspec->args[1]; in ux500_twocell_get()

12