/linux-4.19.296/drivers/clk/ |
D | clk-conf.c | 19 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 …]
|
D | clk.c | 3745 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 …]
|
D | clkdev.c | 34 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()
|
D | clk-rk808.c | 86 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()
|
D | clk.h | 15 struct clk *__of_clk_get_from_provider(struct of_phandle_args *clkspec,
|
D | clk-max77686.c | 163 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/ |
D | renesas-cpg-mssr.c | 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 [all …]
|
D | clk-mstp.c | 274 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/ |
D | clk.c | 134 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()
|
D | clkctrl.c | 228 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()
|
D | composite.c | 79 struct of_phandle_args clkspec; in _get_component_node() local 82 &clkspec); in _get_component_node() 86 return clkspec.np; in _get_component_node()
|
D | clk-dra7-atl.c | 245 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/ |
D | clk-sp810.c | 76 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/ |
D | clk-provider.h | 908 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 …]
|
D | clk.h | 780 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/ |
D | kirkwood.c | 261 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()
|
D | common.c | 204 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()
|
D | cp110-system-controller.c | 197 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/ |
D | clk-spmi-pmic-div.c | 192 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()
|
D | common.c | 209 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/ |
D | clk-hi3660-stub.c | 120 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/ |
D | sci-clk.c | 366 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/ |
D | clk-imx6q.c | 178 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/ |
D | clk-lpc18xx-ccu.c | 114 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/ |
D | u8500_of_clk.c | 30 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()
|