Searched refs:clk_data (Results 26 - 50 of 184) sorted by relevance

12345678

/linux-master/drivers/clk/sunxi/
H A Dclk-mod0.c292 struct clk_onecell_data *clk_data; local
303 clk_data = kmalloc(sizeof(*clk_data), GFP_KERNEL);
304 if (!clk_data)
307 clk_data->clks = kcalloc(3, sizeof(*clk_data->clks), GFP_KERNEL);
308 if (!clk_data->clks)
311 clk_data->clk_num = 3;
312 clk_data->clks[0] = sunxi_factors_register(node, data, lock, reg);
313 if (!clk_data
[all...]
H A Dclk-a10-pll2.c43 struct clk_onecell_data *clk_data; local
53 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL);
54 if (!clk_data)
161 clk_data->clks = clks;
162 clk_data->clk_num = SUN4I_PLL2_OUTPUTS;
163 of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
176 kfree(clk_data);
H A Dclk-sun9i-mmc.c30 struct clk_onecell_data clk_data; member in struct:sun9i_mmc_clk_data
98 struct clk_onecell_data *clk_data; local
117 clk_data = &data->clk_data;
118 clk_data->clk_num = count;
119 clk_data->clks = devm_kcalloc(&pdev->dev, count, sizeof(struct clk *),
121 if (!clk_data->clks)
147 clk_data->clks[i] = clk_register_gate(&pdev->dev, clk_name,
153 if (IS_ERR(clk_data->clks[i])) {
154 ret = PTR_ERR(clk_data
[all...]
/linux-master/drivers/clk/nxp/
H A Dclk-lpc18xx-ccu.c115 struct lpc18xx_branch_clk_data *clk_data = data; local
123 for (j = 0; j < clk_data->num; j++) {
124 if (!strcmp(clk_branches[i].base_name, clk_data->name[j]))
267 struct lpc18xx_branch_clk_data *clk_data; local
277 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL);
278 if (!clk_data) {
283 clk_data->num = of_property_count_strings(np, "clock-names");
284 clk_data->name = kcalloc(clk_data
[all...]
/linux-master/drivers/clk/mediatek/
H A Dclk-cpumux.c108 struct clk_hw_onecell_data *clk_data)
123 if (!IS_ERR_OR_NULL(clk_data->hws[mux->id])) {
136 clk_data->hws[mux->id] = hw;
145 if (IS_ERR_OR_NULL(clk_data->hws[mux->id]))
148 mtk_clk_unregister_cpumux(clk_data->hws[mux->id]);
149 clk_data->hws[mux->id] = ERR_PTR(-ENOENT);
157 struct clk_hw_onecell_data *clk_data)
164 if (IS_ERR_OR_NULL(clk_data->hws[mux->id]))
167 mtk_clk_unregister_cpumux(clk_data->hws[mux->id]);
168 clk_data
106 mtk_clk_register_cpumuxes(struct device *dev, struct device_node *node, const struct mtk_composite *clks, int num, struct clk_hw_onecell_data *clk_data) argument
156 mtk_clk_unregister_cpumuxes(const struct mtk_composite *clks, int num, struct clk_hw_onecell_data *clk_data) argument
[all...]
H A Dclk-mt8135-apmixedsys.c52 struct clk_hw_onecell_data *clk_data; local
56 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
57 if (!clk_data)
60 ret = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data);
64 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
71 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data);
73 mtk_free_clk_data(clk_data);
81 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); local
84 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data);
85 mtk_free_clk_data(clk_data);
[all...]
H A Dclk-mt8195-apmixedsys.c173 struct clk_hw_onecell_data *clk_data; local
178 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
179 if (!clk_data)
185 pllfhs, ARRAY_SIZE(pllfhs), clk_data);
190 ARRAY_SIZE(apmixed_clks), clk_data);
194 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
198 platform_set_drvdata(pdev, clk_data);
203 mtk_clk_unregister_gates(apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data);
206 ARRAY_SIZE(pllfhs), clk_data);
208 mtk_free_clk_data(clk_data);
215 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); local
[all...]
H A Dclk-mt8173-apmixedsys.c144 struct clk_hw_onecell_data *clk_data; local
153 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
154 if (IS_ERR_OR_NULL(clk_data)) {
161 pllfhs, ARRAY_SIZE(pllfhs), clk_data);
171 clk_data->hws[CLK_APMIXED_REF2USB_TX] = hw;
176 clk_data->hws[CLK_APMIXED_HDMI_REF] = hw;
178 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
185 mtk_clk_unregister_ref2usb_tx(clk_data->hws[CLK_APMIXED_REF2USB_TX]);
188 ARRAY_SIZE(pllfhs), clk_data);
190 mtk_free_clk_data(clk_data);
199 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); local
[all...]
H A Dclk-mt8516-apmixedsys.c77 struct clk_hw_onecell_data *clk_data; local
86 clk_data = mtk_devm_alloc_clk_data(dev, CLK_APMIXED_NR_CLK);
87 if (!clk_data)
90 ret = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data);
94 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
101 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data);
H A Dclk-mt7986-apmixed.c69 struct clk_hw_onecell_data *clk_data; local
73 clk_data = mtk_alloc_clk_data(ARRAY_SIZE(plls));
74 if (!clk_data)
77 mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data);
79 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
88 mtk_free_clk_data(clk_data);
H A Dclk-mt7981-apmixed.c71 struct clk_hw_onecell_data *clk_data; local
75 clk_data = mtk_alloc_clk_data(ARRAY_SIZE(plls));
76 if (!clk_data)
79 mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data);
81 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
90 mtk_free_clk_data(clk_data);
H A Dclk-mt8192-apmixedsys.c154 struct clk_hw_onecell_data *clk_data; local
159 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
160 if (!clk_data)
166 pllfhs, ARRAY_SIZE(pllfhs), clk_data);
171 ARRAY_SIZE(apmixed_clks), clk_data);
175 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
182 mtk_clk_unregister_gates(apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data);
185 ARRAY_SIZE(pllfhs), clk_data);
187 mtk_free_clk_data(clk_data);
194 struct clk_hw_onecell_data *clk_data local
[all...]
H A Dclk-mt6795-apmixedsys.c138 struct clk_hw_onecell_data *clk_data; local
150 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
151 if (!clk_data)
156 pllfhs, ARRAY_SIZE(pllfhs), clk_data);
166 clk_data->hws[CLK_APMIXED_REF2USB_TX] = hw;
168 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
181 mtk_clk_unregister_ref2usb_tx(clk_data->hws[CLK_APMIXED_REF2USB_TX]);
184 ARRAY_SIZE(pllfhs), clk_data);
186 mtk_free_clk_data(clk_data);
193 struct clk_hw_onecell_data *clk_data local
[all...]
H A Dclk-mt8167-apmixedsys.c95 struct clk_hw_onecell_data *clk_data; local
104 clk_data = mtk_devm_alloc_clk_data(dev, MT8167_CLK_APMIXED_NR_CLK);
105 if (!clk_data)
108 ret = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data);
113 &mt8167_apmixed_clk_lock, clk_data);
117 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
124 mtk_clk_unregister_dividers(adj_divs, ARRAY_SIZE(adj_divs), clk_data);
126 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data);
H A Dclk-gate.c207 struct clk_hw_onecell_data *clk_data)
213 if (!clk_data)
225 if (!IS_ERR_OR_NULL(clk_data->hws[gate->id])) {
245 clk_data->hws[gate->id] = hw;
254 if (IS_ERR_OR_NULL(clk_data->hws[gate->id]))
257 mtk_clk_unregister_gate(clk_data->hws[gate->id]);
258 clk_data->hws[gate->id] = ERR_PTR(-ENOENT);
266 struct clk_hw_onecell_data *clk_data)
270 if (!clk_data)
276 if (IS_ERR_OR_NULL(clk_data
205 mtk_clk_register_gates(struct device *dev, struct device_node *node, const struct mtk_gate *clks, int num, struct clk_hw_onecell_data *clk_data) argument
265 mtk_clk_unregister_gates(const struct mtk_gate *clks, int num, struct clk_hw_onecell_data *clk_data) argument
[all...]
/linux-master/drivers/mmc/host/
H A Dsdhci-of-arasan.c175 * @clk_data: Struct for the Arasan Controller Clock Data.
189 struct sdhci_arasan_clk_data clk_data; member in struct:sdhci_arasan_data
351 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; local
409 if (clk_data->set_clk_delays && clock > PHY_CLK_TOO_SLOW_HZ)
410 clk_data->set_clk_delays(host);
679 struct sdhci_arasan_clk_data *clk_data = local
682 container_of(clk_data, struct sdhci_arasan_data, clk_data);
706 struct sdhci_arasan_clk_data *clk_data local
731 struct sdhci_arasan_clk_data *clk_data = local
797 struct sdhci_arasan_clk_data *clk_data = local
863 struct sdhci_arasan_clk_data *clk_data = local
930 struct sdhci_arasan_clk_data *clk_data = local
991 struct sdhci_arasan_clk_data *clk_data = local
1036 struct sdhci_arasan_clk_data *clk_data = local
1209 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; local
1217 arasan_dt_read_clk_phase(struct device *dev, struct sdhci_arasan_clk_data *clk_data, unsigned int timing, const char *prop) argument
1252 arasan_dt_parse_clk_phases(struct device *dev, struct sdhci_arasan_clk_data *clk_data) argument
1545 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; local
1597 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; local
[all...]
/linux-master/drivers/clk/samsung/
H A Dclk-exynos-audss.c22 static struct clk_hw_onecell_data *clk_data; variable in typeref:struct:clk_hw_onecell_data
107 if (!IS_ERR(clk_data->hws[i]))
108 clk_hw_unregister_mux(clk_data->hws[i]);
112 if (!IS_ERR(clk_data->hws[i]))
113 clk_hw_unregister_divider(clk_data->hws[i]);
116 for (; i < clk_data->num; i++) {
117 if (!IS_ERR(clk_data->hws[i]))
118 clk_hw_unregister_gate(clk_data->hws[i]);
144 clk_data = devm_kzalloc(dev,
145 struct_size(clk_data, hw
[all...]
/linux-master/drivers/clk/socfpga/
H A Dclk-agilex.c351 data->clk_data.hws[clks[i].id] = hw_clk;
370 data->clk_data.hws[clks[i].id] = hw_clk;
389 data->clk_data.hws[clks[i].id] = hw_clk;
409 data->clk_data.hws[clks[i].id] = hw_clk;
429 data->clk_data.hws[clks[i].id] = hw_clk;
449 data->clk_data.hws[clks[i].id] = hw_clk;
459 struct stratix10_clock_data *clk_data; local
469 clk_data = devm_kzalloc(dev, struct_size(clk_data, clk_data
499 struct stratix10_clock_data *clk_data; local
[all...]
H A Dclk-s10.c320 data->clk_data.hws[clks[i].id] = hw_clk;
339 data->clk_data.hws[clks[i].id] = hw_clk;
359 data->clk_data.hws[clks[i].id] = hw_clk;
379 data->clk_data.hws[clks[i].id] = hw_clk;
389 struct stratix10_clock_data *clk_data; local
400 clk_data = devm_kzalloc(dev, struct_size(clk_data, clk_data.hws,
402 if (!clk_data)
405 clk_data
[all...]
/linux-master/drivers/clk/hisilicon/
H A Dclk-hi3559a.c498 data->clk_data.clks[clks[i].id] = clk;
506 struct hisi_clock_data *clk_data; local
509 clk_data = hisi_clk_alloc(pdev, HI3559AV100_CRG_NR_CLKS);
510 if (!clk_data)
514 ARRAY_SIZE(hi3559av100_fixed_rate_clks_crg), clk_data);
519 ARRAY_SIZE(hi3559av100_pll_clks), clk_data, &pdev->dev);
522 ARRAY_SIZE(hi3559av100_mux_clks_crg), clk_data);
527 ARRAY_SIZE(hi3559av100_gate_clks), clk_data);
532 of_clk_src_onecell_get, &clk_data->clk_data);
700 struct hisi_clock_data *clk_data = NULL; local
[all...]
H A Dclk-hi6220.c179 struct hisi_clock_data *clk_data; local
181 clk_data = hisi_clk_init(np, HI6220_SYS_NR_CLKS);
182 if (!clk_data)
186 ARRAY_SIZE(hi6220_separated_gate_clks_sys), clk_data);
189 ARRAY_SIZE(hi6220_mux_clks_sys), clk_data);
192 ARRAY_SIZE(hi6220_div_clks_sys), clk_data);
236 struct hisi_clock_data *clk_data; local
238 clk_data = hisi_clk_init(np, HI6220_MEDIA_NR_CLKS);
239 if (!clk_data)
243 ARRAY_SIZE(hi6220_separated_gate_clks_media), clk_data);
270 struct hisi_clock_data *clk_data; local
292 struct hisi_clock_data *clk_data; local
[all...]
/linux-master/drivers/clk/
H A Dclk-scpi.c178 struct scpi_clk_data *clk_data = data; local
181 for (count = 0; count < clk_data->clk_num; count++) {
182 sclk = clk_data->clk[count];
194 struct scpi_clk_data *clk_data; local
202 clk_data = devm_kmalloc(dev, sizeof(*clk_data), GFP_KERNEL);
203 if (!clk_data)
206 clk_data->clk_num = count;
207 clk_data->clk = devm_kcalloc(dev, count, sizeof(*clk_data
[all...]
/linux-master/drivers/clk/mstar/
H A Dclk-msc313-mpll.c39 struct clk_hw_onecell_data *clk_data; member in struct:msc313_mpll
107 mpll->clk_data = devm_kzalloc(dev, struct_size(mpll->clk_data, hws,
109 if (!mpll->clk_data)
122 mpll->clk_data->num = NUMOUTPUTS;
123 mpll->clk_data->hws[0] = &mpll->clk_hw;
134 mpll->clk_data->hws[i + 1] = divhw;
140 mpll->clk_data);
/linux-master/drivers/acpi/
H A Dacpi_apd.c69 struct fch_clk_data *clk_data; local
74 clk_data = devm_kzalloc(&adev->dev, sizeof(*clk_data), GFP_KERNEL);
75 if (!clk_data)
84 clk_data->name = devm_kzalloc(&adev->dev, obj->string.length,
86 if (!clk_data->name)
89 strcpy(clk_data->name, obj->string.pointer);
92 clk_data->name = "mclk";
96 clk_data->base = devm_ioremap(&adev->dev, rentry->res->start,
100 if (!clk_data
[all...]
/linux-master/drivers/clk/imx/
H A Dclk-imx8qxp-lpcg.c182 struct clk_hw_onecell_data *clk_data; local
211 clk_data = devm_kzalloc(&pdev->dev, struct_size(clk_data, hws,
213 if (!clk_data)
216 clk_data->num = IMX_LPCG_MAX_CLKS;
217 clk_hws = clk_data->hws;
266 clk_data);
291 struct clk_hw_onecell_data *clk_data; local
327 clk_data = devm_kzalloc(&pdev->dev, struct_size(clk_data, hw
[all...]

Completed in 223 milliseconds

12345678