Home
last modified time | relevance | path

Searched refs:clk_data (Results 1 – 25 of 181) sorted by relevance

12345678

/linux-6.6.21/drivers/clk/mediatek/
Dclk-mtk.c38 static void mtk_init_clk_data(struct clk_hw_onecell_data *clk_data, in mtk_init_clk_data() argument
43 clk_data->num = clk_num; in mtk_init_clk_data()
46 clk_data->hws[i] = ERR_PTR(-ENOENT); in mtk_init_clk_data()
52 struct clk_hw_onecell_data *clk_data; in mtk_devm_alloc_clk_data() local
54 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, clk_num), in mtk_devm_alloc_clk_data()
56 if (!clk_data) in mtk_devm_alloc_clk_data()
59 mtk_init_clk_data(clk_data, clk_num); in mtk_devm_alloc_clk_data()
61 return clk_data; in mtk_devm_alloc_clk_data()
67 struct clk_hw_onecell_data *clk_data; in mtk_alloc_clk_data() local
69 clk_data = kzalloc(struct_size(clk_data, hws, clk_num), GFP_KERNEL); in mtk_alloc_clk_data()
[all …]
Dclk-mt7622-infracfg.c62 struct clk_hw_onecell_data *clk_data; in clk_mt7622_infracfg_probe() local
71 clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); in clk_mt7622_infracfg_probe()
72 if (!clk_data) in clk_mt7622_infracfg_probe()
80 ARRAY_SIZE(infra_clks), clk_data); in clk_mt7622_infracfg_probe()
85 ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt7622_infracfg_probe()
89 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt7622_infracfg_probe()
96 mtk_clk_unregister_cpumuxes(cpu_muxes, ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt7622_infracfg_probe()
98 mtk_clk_unregister_gates(infra_clks, ARRAY_SIZE(infra_clks), clk_data); in clk_mt7622_infracfg_probe()
100 mtk_free_clk_data(clk_data); in clk_mt7622_infracfg_probe()
107 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt7622_infracfg_remove() local
[all …]
Dclk-mt7629.c549 struct clk_hw_onecell_data *clk_data; in mtk_topckgen_init() local
557 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in mtk_topckgen_init()
558 if (!clk_data) in mtk_topckgen_init()
562 clk_data); in mtk_topckgen_init()
565 clk_data); in mtk_topckgen_init()
569 &mt7629_clk_lock, clk_data); in mtk_topckgen_init()
571 clk_prepare_enable(clk_data->hws[CLK_TOP_AXI_SEL]->clk); in mtk_topckgen_init()
572 clk_prepare_enable(clk_data->hws[CLK_TOP_MEM_SEL]->clk); in mtk_topckgen_init()
573 clk_prepare_enable(clk_data->hws[CLK_TOP_DDRPHYCFG_SEL]->clk); in mtk_topckgen_init()
575 return of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in mtk_topckgen_init()
[all …]
Dclk-mt8188-apmixedsys.c101 struct clk_hw_onecell_data *clk_data; in clk_mt8188_apmixed_probe() local
105 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); in clk_mt8188_apmixed_probe()
106 if (!clk_data) in clk_mt8188_apmixed_probe()
109 r = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); in clk_mt8188_apmixed_probe()
114 ARRAY_SIZE(apmixed_clks), clk_data); in clk_mt8188_apmixed_probe()
118 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8188_apmixed_probe()
122 platform_set_drvdata(pdev, clk_data); in clk_mt8188_apmixed_probe()
127 mtk_clk_unregister_gates(apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data); in clk_mt8188_apmixed_probe()
129 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data); in clk_mt8188_apmixed_probe()
131 mtk_free_clk_data(clk_data); in clk_mt8188_apmixed_probe()
[all …]
Dclk-mt6795-infracfg.c88 struct clk_hw_onecell_data *clk_data; in clk_mt6795_infracfg_probe() local
97 clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); in clk_mt6795_infracfg_probe()
98 if (!clk_data) in clk_mt6795_infracfg_probe()
106 ARRAY_SIZE(infra_gates), clk_data); in clk_mt6795_infracfg_probe()
111 ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt6795_infracfg_probe()
115 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt6795_infracfg_probe()
122 mtk_clk_unregister_cpumuxes(cpu_muxes, ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt6795_infracfg_probe()
124 mtk_clk_unregister_gates(infra_gates, ARRAY_SIZE(infra_gates), clk_data); in clk_mt6795_infracfg_probe()
126 mtk_free_clk_data(clk_data); in clk_mt6795_infracfg_probe()
133 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt6795_infracfg_remove() local
[all …]
Dclk-mt8195-apusys_pll.c61 struct clk_hw_onecell_data *clk_data; in clk_mt8195_apusys_pll_probe() local
65 clk_data = mtk_alloc_clk_data(CLK_APUSYS_PLL_NR_CLK); in clk_mt8195_apusys_pll_probe()
66 if (!clk_data) in clk_mt8195_apusys_pll_probe()
69 r = mtk_clk_register_plls(node, apusys_plls, ARRAY_SIZE(apusys_plls), clk_data); in clk_mt8195_apusys_pll_probe()
73 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8195_apusys_pll_probe()
77 platform_set_drvdata(pdev, clk_data); in clk_mt8195_apusys_pll_probe()
82 mtk_clk_unregister_plls(apusys_plls, ARRAY_SIZE(apusys_plls), clk_data); in clk_mt8195_apusys_pll_probe()
84 mtk_free_clk_data(clk_data); in clk_mt8195_apusys_pll_probe()
90 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt8195_apusys_pll_remove() local
94 mtk_clk_unregister_plls(apusys_plls, ARRAY_SIZE(apusys_plls), clk_data); in clk_mt8195_apusys_pll_remove()
[all …]
Dclk-mt6795-pericfg.c96 struct clk_hw_onecell_data *clk_data; in clk_mt6795_pericfg_probe() local
105 clk_data = mtk_alloc_clk_data(CLK_PERI_NR_CLK); in clk_mt6795_pericfg_probe()
106 if (!clk_data) in clk_mt6795_pericfg_probe()
114 ARRAY_SIZE(peri_gates), clk_data); in clk_mt6795_pericfg_probe()
120 &mt6795_peri_clk_lock, clk_data); in clk_mt6795_pericfg_probe()
124 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt6795_pericfg_probe()
131 mtk_clk_unregister_composites(peri_clks, ARRAY_SIZE(peri_clks), clk_data); in clk_mt6795_pericfg_probe()
133 mtk_clk_unregister_gates(peri_gates, ARRAY_SIZE(peri_gates), clk_data); in clk_mt6795_pericfg_probe()
135 mtk_free_clk_data(clk_data); in clk_mt6795_pericfg_probe()
142 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt6795_pericfg_remove() local
[all …]
Dclk-mt7622-apmixedsys.c86 struct clk_hw_onecell_data *clk_data; in clk_mt7622_apmixed_probe() local
95 clk_data = mtk_devm_alloc_clk_data(dev, CLK_APMIXED_NR_CLK); in clk_mt7622_apmixed_probe()
96 if (!clk_data) in clk_mt7622_apmixed_probe()
99 ret = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); in clk_mt7622_apmixed_probe()
104 ARRAY_SIZE(apmixed_clks), clk_data); in clk_mt7622_apmixed_probe()
108 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt7622_apmixed_probe()
115 mtk_clk_unregister_gates(apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data); in clk_mt7622_apmixed_probe()
117 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data); in clk_mt7622_apmixed_probe()
125 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt7622_apmixed_remove() local
128 mtk_clk_unregister_gates(apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data); in clk_mt7622_apmixed_remove()
[all …]
/linux-6.6.21/drivers/clk/hisilicon/
Dclk.c29 struct hisi_clock_data *clk_data; in hisi_clk_alloc() local
33 clk_data = devm_kmalloc(&pdev->dev, sizeof(*clk_data), GFP_KERNEL); in hisi_clk_alloc()
34 if (!clk_data) in hisi_clk_alloc()
40 clk_data->base = devm_ioremap(&pdev->dev, in hisi_clk_alloc()
42 if (!clk_data->base) in hisi_clk_alloc()
51 clk_data->clk_data.clks = clk_table; in hisi_clk_alloc()
52 clk_data->clk_data.clk_num = nr_clks; in hisi_clk_alloc()
54 return clk_data; in hisi_clk_alloc()
61 struct hisi_clock_data *clk_data; in hisi_clk_init() local
71 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in hisi_clk_init()
[all …]
Dcrg-hi3516cv300.c132 struct hisi_clock_data *clk_data; in hi3516cv300_clk_register() local
135 clk_data = hisi_clk_alloc(pdev, HI3516CV300_CRG_NR_CLKS); in hi3516cv300_clk_register()
136 if (!clk_data) in hi3516cv300_clk_register()
140 ARRAY_SIZE(hi3516cv300_fixed_rate_clks), clk_data); in hi3516cv300_clk_register()
145 ARRAY_SIZE(hi3516cv300_mux_clks), clk_data); in hi3516cv300_clk_register()
150 ARRAY_SIZE(hi3516cv300_gate_clks), clk_data); in hi3516cv300_clk_register()
155 of_clk_src_onecell_get, &clk_data->clk_data); in hi3516cv300_clk_register()
159 return clk_data; in hi3516cv300_clk_register()
163 ARRAY_SIZE(hi3516cv300_gate_clks), clk_data); in hi3516cv300_clk_register()
166 ARRAY_SIZE(hi3516cv300_mux_clks), clk_data); in hi3516cv300_clk_register()
[all …]
Dclk-hi3519.c30 struct hisi_clock_data *clk_data; member
78 struct hisi_clock_data *clk_data; in hi3519_clk_register() local
81 clk_data = hisi_clk_alloc(pdev, HI3519_NR_CLKS); in hi3519_clk_register()
82 if (!clk_data) in hi3519_clk_register()
87 clk_data); in hi3519_clk_register()
93 clk_data); in hi3519_clk_register()
99 clk_data); in hi3519_clk_register()
104 of_clk_src_onecell_get, &clk_data->clk_data); in hi3519_clk_register()
108 return clk_data; in hi3519_clk_register()
113 clk_data); in hi3519_clk_register()
[all …]
Dcrg-hi3798cv200.c199 struct hisi_clock_data *clk_data; in hi3798cv200_clk_register() local
202 clk_data = hisi_clk_alloc(pdev, HI3798CV200_CRG_NR_CLKS); in hi3798cv200_clk_register()
203 if (!clk_data) in hi3798cv200_clk_register()
210 clk_data); in hi3798cv200_clk_register()
216 clk_data); in hi3798cv200_clk_register()
222 clk_data); in hi3798cv200_clk_register()
228 clk_data); in hi3798cv200_clk_register()
233 of_clk_src_onecell_get, &clk_data->clk_data); in hi3798cv200_clk_register()
237 return clk_data; in hi3798cv200_clk_register()
242 clk_data); in hi3798cv200_clk_register()
[all …]
Dclk-hi3670.c827 struct hisi_clock_data *clk_data; in hi3670_clk_crgctrl_init() local
836 clk_data = hisi_clk_init(np, nr); in hi3670_clk_crgctrl_init()
837 if (!clk_data) in hi3670_clk_crgctrl_init()
842 clk_data); in hi3670_clk_crgctrl_init()
845 clk_data); in hi3670_clk_crgctrl_init()
848 clk_data); in hi3670_clk_crgctrl_init()
851 clk_data); in hi3670_clk_crgctrl_init()
854 clk_data); in hi3670_clk_crgctrl_init()
857 clk_data); in hi3670_clk_crgctrl_init()
862 struct hisi_clock_data *clk_data; in hi3670_clk_pctrl_init() local
[all …]
Dclk-hi3559a.c500 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_pll()
508 struct hisi_clock_data *clk_data; in hi3559av100_clk_register() local
511 clk_data = hisi_clk_alloc(pdev, HI3559AV100_CRG_NR_CLKS); in hi3559av100_clk_register()
512 if (!clk_data) in hi3559av100_clk_register()
516 ARRAY_SIZE(hi3559av100_fixed_rate_clks_crg), clk_data); in hi3559av100_clk_register()
521 ARRAY_SIZE(hi3559av100_pll_clks), clk_data, &pdev->dev); in hi3559av100_clk_register()
524 ARRAY_SIZE(hi3559av100_mux_clks_crg), clk_data); in hi3559av100_clk_register()
529 ARRAY_SIZE(hi3559av100_gate_clks), clk_data); in hi3559av100_clk_register()
534 of_clk_src_onecell_get, &clk_data->clk_data); in hi3559av100_clk_register()
538 return clk_data; in hi3559av100_clk_register()
[all …]
Dclk-hi6220.c179 struct hisi_clock_data *clk_data; in hi6220_clk_sys_init() local
181 clk_data = hisi_clk_init(np, HI6220_SYS_NR_CLKS); in hi6220_clk_sys_init()
182 if (!clk_data) in hi6220_clk_sys_init()
186 ARRAY_SIZE(hi6220_separated_gate_clks_sys), clk_data); in hi6220_clk_sys_init()
189 ARRAY_SIZE(hi6220_mux_clks_sys), clk_data); in hi6220_clk_sys_init()
192 ARRAY_SIZE(hi6220_div_clks_sys), clk_data); in hi6220_clk_sys_init()
236 struct hisi_clock_data *clk_data; in hi6220_clk_media_init() local
238 clk_data = hisi_clk_init(np, HI6220_MEDIA_NR_CLKS); in hi6220_clk_media_init()
239 if (!clk_data) in hi6220_clk_media_init()
243 ARRAY_SIZE(hi6220_separated_gate_clks_media), clk_data); in hi6220_clk_media_init()
[all …]
/linux-6.6.21/drivers/clk/socfpga/
Dclk-agilex.c351 data->clk_data.hws[clks[i].id] = hw_clk; in n5x_clk_register_c_perip()
370 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_c_perip()
389 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_cnt_perip()
409 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_gate()
429 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_pll()
449 data->clk_data.hws[clks[i].id] = hw_clk; in n5x_clk_register_pll()
459 struct stratix10_clock_data *clk_data; in agilex_clkmgr_init() local
469 clk_data = devm_kzalloc(dev, struct_size(clk_data, clk_data.hws, in agilex_clkmgr_init()
471 if (!clk_data) in agilex_clkmgr_init()
475 clk_data->clk_data.hws[i] = ERR_PTR(-ENOENT); in agilex_clkmgr_init()
[all …]
/linux-6.6.21/drivers/clk/
Dclk-clps711x.c42 struct clk_hw_onecell_data clk_data; member
56 clps711x_clk = kzalloc(struct_size(clps711x_clk, clk_data.hws, in clps711x_clk_init_dt()
108 clps711x_clk->clk_data.hws[CLPS711X_CLK_DUMMY] = in clps711x_clk_init_dt()
110 clps711x_clk->clk_data.hws[CLPS711X_CLK_CPU] = in clps711x_clk_init_dt()
112 clps711x_clk->clk_data.hws[CLPS711X_CLK_BUS] = in clps711x_clk_init_dt()
114 clps711x_clk->clk_data.hws[CLPS711X_CLK_PLL] = in clps711x_clk_init_dt()
116 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMERREF] = in clps711x_clk_init_dt()
118 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMER1] = in clps711x_clk_init_dt()
122 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMER2] = in clps711x_clk_init_dt()
126 clps711x_clk->clk_data.hws[CLPS711X_CLK_PWM] = in clps711x_clk_init_dt()
[all …]
/linux-6.6.21/drivers/clk/imx/
Dclk-imx7ulp.c48 struct clk_hw_onecell_data *clk_data; in imx7ulp_clk_scg1_init() local
52 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SCG1_END), in imx7ulp_clk_scg1_init()
54 if (!clk_data) in imx7ulp_clk_scg1_init()
57 clk_data->num = IMX7ULP_CLK_SCG1_END; in imx7ulp_clk_scg1_init()
58 hws = clk_data->hws; in imx7ulp_clk_scg1_init()
129 imx_check_clk_hws(hws, clk_data->num); in imx7ulp_clk_scg1_init()
131 of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); in imx7ulp_clk_scg1_init()
137 struct clk_hw_onecell_data *clk_data; in imx7ulp_clk_pcc2_init() local
141 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC2_END), in imx7ulp_clk_pcc2_init()
143 if (!clk_data) in imx7ulp_clk_pcc2_init()
[all …]
/linux-6.6.21/drivers/mmc/host/
Dsdhci-of-arasan.c189 struct sdhci_arasan_clk_data clk_data; member
351 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; in sdhci_arasan_set_clock() local
409 if (clk_data->set_clk_delays && clock > PHY_CLK_TOO_SLOW_HZ) in sdhci_arasan_set_clock()
410 clk_data->set_clk_delays(host); in sdhci_arasan_set_clock()
679 struct sdhci_arasan_clk_data *clk_data = in sdhci_arasan_sdcardclk_recalc_rate() local
682 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_arasan_sdcardclk_recalc_rate()
706 struct sdhci_arasan_clk_data *clk_data = in sdhci_arasan_sampleclk_recalc_rate() local
709 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_arasan_sampleclk_recalc_rate()
731 struct sdhci_arasan_clk_data *clk_data = in sdhci_zynqmp_sdcardclk_set_phase() local
734 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_zynqmp_sdcardclk_set_phase()
[all …]
/linux-6.6.21/drivers/gpu/drm/sun4i/
Dsun8i_tcon_top.c128 struct clk_hw_onecell_data *clk_data; in sun8i_tcon_top_bind() local
140 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, CLK_NUM), in sun8i_tcon_top_bind()
142 if (!clk_data) in sun8i_tcon_top_bind()
144 clk_data->num = CLK_NUM; in sun8i_tcon_top_bind()
145 tcon_top->clk_data = clk_data; in sun8i_tcon_top_bind()
194 clk_data->hws[CLK_TCON_TOP_TV0] = in sun8i_tcon_top_bind()
200 clk_data->hws[CLK_TCON_TOP_TV1] = in sun8i_tcon_top_bind()
206 clk_data->hws[CLK_TCON_TOP_DSI] = in sun8i_tcon_top_bind()
212 if (IS_ERR(clk_data->hws[i])) { in sun8i_tcon_top_bind()
213 ret = PTR_ERR(clk_data->hws[i]); in sun8i_tcon_top_bind()
[all …]
/linux-6.6.21/drivers/clk/pistachio/
Dclk.c24 p->clk_data.clks = kcalloc(num_clks, sizeof(struct clk *), GFP_KERNEL); in pistachio_clk_alloc_provider()
25 if (!p->clk_data.clks) in pistachio_clk_alloc_provider()
27 p->clk_data.clk_num = num_clks; in pistachio_clk_alloc_provider()
38 kfree(p->clk_data.clks); in pistachio_clk_alloc_provider()
48 for (i = 0; i < p->clk_data.clk_num; i++) { in pistachio_clk_register_provider()
49 if (IS_ERR(p->clk_data.clks[i])) in pistachio_clk_register_provider()
51 PTR_ERR(p->clk_data.clks[i])); in pistachio_clk_register_provider()
54 of_clk_add_provider(p->node, of_clk_src_onecell_get, &p->clk_data); in pistachio_clk_register_provider()
69 p->clk_data.clks[gate[i].id] = clk; in pistachio_clk_register_gate()
87 p->clk_data.clks[mux[i].id] = clk; in pistachio_clk_register_mux()
[all …]
/linux-6.6.21/drivers/clk/nxp/
Dclk-lpc18xx-ccu.c115 struct lpc18xx_branch_clk_data *clk_data = data; in lpc18xx_ccu_branch_clk_get() local
123 for (j = 0; j < clk_data->num; j++) { in lpc18xx_ccu_branch_clk_get()
124 if (!strcmp(clk_branches[i].base_name, clk_data->name[j])) in lpc18xx_ccu_branch_clk_get()
267 struct lpc18xx_branch_clk_data *clk_data; in lpc18xx_ccu_init() local
277 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in lpc18xx_ccu_init()
278 if (!clk_data) { in lpc18xx_ccu_init()
283 clk_data->num = of_property_count_strings(np, "clock-names"); in lpc18xx_ccu_init()
284 clk_data->name = kcalloc(clk_data->num, sizeof(char *), GFP_KERNEL); in lpc18xx_ccu_init()
285 if (!clk_data->name) { in lpc18xx_ccu_init()
287 kfree(clk_data); in lpc18xx_ccu_init()
[all …]
/linux-6.6.21/drivers/clk/sunxi/
Dclk-sun8i-bus-gates.c25 struct clk_onecell_data *clk_data; in sun8i_h3_bus_gates_init() local
49 clk_data = kmalloc(sizeof(struct clk_onecell_data), GFP_KERNEL); in sun8i_h3_bus_gates_init()
50 if (!clk_data) in sun8i_h3_bus_gates_init()
56 clk_data->clks = kcalloc(number + 1, sizeof(struct clk *), GFP_KERNEL); in sun8i_h3_bus_gates_init()
57 if (!clk_data->clks) in sun8i_h3_bus_gates_init()
81 clk_data->clks[index] = clk_register_gate(NULL, clk_name, in sun8i_h3_bus_gates_init()
87 if (IS_ERR(clk_data->clks[index])) { in sun8i_h3_bus_gates_init()
93 clk_data->clk_num = number + 1; in sun8i_h3_bus_gates_init()
94 of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in sun8i_h3_bus_gates_init()
99 kfree(clk_data); in sun8i_h3_bus_gates_init()
Dclk-sun6i-apb0-gates.c38 struct clk_onecell_data *clk_data; in sun6i_a31_apb0_gates_clk_probe() local
62 clk_data = devm_kzalloc(&pdev->dev, sizeof(struct clk_onecell_data), in sun6i_a31_apb0_gates_clk_probe()
64 if (!clk_data) in sun6i_a31_apb0_gates_clk_probe()
69 clk_data->clks = devm_kcalloc(&pdev->dev, (ngates + 1), in sun6i_a31_apb0_gates_clk_probe()
71 if (!clk_data->clks) in sun6i_a31_apb0_gates_clk_probe()
78 clk_data->clks[i] = clk_register_gate(&pdev->dev, clk_name, in sun6i_a31_apb0_gates_clk_probe()
81 WARN_ON(IS_ERR(clk_data->clks[i])); in sun6i_a31_apb0_gates_clk_probe()
86 clk_data->clk_num = ngates + 1; in sun6i_a31_apb0_gates_clk_probe()
88 return of_clk_add_provider(np, of_clk_src_onecell_get, clk_data); in sun6i_a31_apb0_gates_clk_probe()
/linux-6.6.21/drivers/clk/mvebu/
Dcommon.c35 static struct clk_onecell_data clk_data; variable
121 clk_data.clk_num = 2 + desc->num_ratios; in mvebu_coreclk_setup()
125 clk_data.clk_num += 1; in mvebu_coreclk_setup()
127 clk_data.clks = kcalloc(clk_data.clk_num, sizeof(*clk_data.clks), in mvebu_coreclk_setup()
129 if (WARN_ON(!clk_data.clks)) { in mvebu_coreclk_setup()
138 clk_data.clks[0] = clk_register_fixed_rate(NULL, tclk_name, NULL, 0, in mvebu_coreclk_setup()
140 WARN_ON(IS_ERR(clk_data.clks[0])); in mvebu_coreclk_setup()
151 clk_data.clks[1] = clk_register_fixed_rate(NULL, cpuclk_name, NULL, 0, in mvebu_coreclk_setup()
153 WARN_ON(IS_ERR(clk_data.clks[1])); in mvebu_coreclk_setup()
163 clk_data.clks[2+n] = clk_register_fixed_factor(NULL, rclk_name, in mvebu_coreclk_setup()
[all …]

12345678