Home
last modified time | relevance | path

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

123456789

/linux-6.1.9/drivers/clk/mediatek/
Dclk-mtk.c21 static void mtk_init_clk_data(struct clk_hw_onecell_data *clk_data, in mtk_init_clk_data() argument
26 clk_data->num = clk_num; in mtk_init_clk_data()
29 clk_data->hws[i] = ERR_PTR(-ENOENT); in mtk_init_clk_data()
35 struct clk_hw_onecell_data *clk_data; in mtk_devm_alloc_clk_data() local
37 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, clk_num), in mtk_devm_alloc_clk_data()
39 if (!clk_data) in mtk_devm_alloc_clk_data()
42 mtk_init_clk_data(clk_data, clk_num); in mtk_devm_alloc_clk_data()
44 return clk_data; in mtk_devm_alloc_clk_data()
50 struct clk_hw_onecell_data *clk_data; in mtk_alloc_clk_data() local
52 clk_data = kzalloc(struct_size(clk_data, hws, clk_num), GFP_KERNEL); in mtk_alloc_clk_data()
[all …]
Dclk-mt8186-mcu.c53 struct clk_hw_onecell_data *clk_data; in clk_mt8186_mcu_probe() local
58 clk_data = mtk_alloc_clk_data(CLK_MCU_NR_CLK); in clk_mt8186_mcu_probe()
59 if (!clk_data) in clk_mt8186_mcu_probe()
69 NULL, clk_data); in clk_mt8186_mcu_probe()
73 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8186_mcu_probe()
77 platform_set_drvdata(pdev, clk_data); in clk_mt8186_mcu_probe()
82 mtk_clk_unregister_composites(mcu_muxes, ARRAY_SIZE(mcu_muxes), clk_data); in clk_mt8186_mcu_probe()
84 mtk_free_clk_data(clk_data); in clk_mt8186_mcu_probe()
90 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt8186_mcu_remove() local
94 mtk_clk_unregister_composites(mcu_muxes, ARRAY_SIZE(mcu_muxes), clk_data); in clk_mt8186_mcu_remove()
[all …]
Dclk-mt8195-apmixedsys.c115 struct clk_hw_onecell_data *clk_data; in clk_mt8195_apmixed_probe() local
119 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); in clk_mt8195_apmixed_probe()
120 if (!clk_data) in clk_mt8195_apmixed_probe()
123 r = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); in clk_mt8195_apmixed_probe()
127 r = mtk_clk_register_gates(node, apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data); in clk_mt8195_apmixed_probe()
131 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8195_apmixed_probe()
135 platform_set_drvdata(pdev, clk_data); in clk_mt8195_apmixed_probe()
140 mtk_clk_unregister_gates(apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data); in clk_mt8195_apmixed_probe()
142 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data); in clk_mt8195_apmixed_probe()
144 mtk_free_clk_data(clk_data); in clk_mt8195_apmixed_probe()
[all …]
Dclk-mt6795-infracfg.c87 struct clk_hw_onecell_data *clk_data; in clk_mt6795_infracfg_probe() local
96 clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); in clk_mt6795_infracfg_probe()
97 if (!clk_data) in clk_mt6795_infracfg_probe()
104 ret = mtk_clk_register_gates(node, infra_gates, ARRAY_SIZE(infra_gates), clk_data); in clk_mt6795_infracfg_probe()
108 ret = mtk_clk_register_cpumuxes(node, cpu_muxes, ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt6795_infracfg_probe()
112 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt6795_infracfg_probe()
119 mtk_clk_unregister_cpumuxes(cpu_muxes, ARRAY_SIZE(cpu_muxes), clk_data); in clk_mt6795_infracfg_probe()
121 mtk_clk_unregister_gates(infra_gates, ARRAY_SIZE(infra_gates), clk_data); in clk_mt6795_infracfg_probe()
123 mtk_free_clk_data(clk_data); in clk_mt6795_infracfg_probe()
130 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-mt8186-topckgen.c694 struct clk_hw_onecell_data *clk_data; in clk_mt8186_topck_probe() local
699 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt8186_topck_probe()
700 if (!clk_data) in clk_mt8186_topck_probe()
710 clk_data); in clk_mt8186_topck_probe()
714 r = mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), clk_data); in clk_mt8186_topck_probe()
719 &mt8186_clk_lock, clk_data); in clk_mt8186_topck_probe()
724 &mt8186_clk_lock, clk_data); in clk_mt8186_topck_probe()
729 &mt8186_clk_lock, clk_data); in clk_mt8186_topck_probe()
733 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8186_topck_probe()
737 platform_set_drvdata(pdev, clk_data); in clk_mt8186_topck_probe()
[all …]
Dclk-mt8365.c857 struct clk_hw_onecell_data *clk_data; in clk_mt8365_apmixed_probe() local
867 clk_data = mtk_devm_alloc_clk_data(dev, CLK_APMIXED_NR_CLK); in clk_mt8365_apmixed_probe()
868 if (!clk_data) in clk_mt8365_apmixed_probe()
875 clk_data->hws[CLK_APMIXED_UNIV_EN] = hw; in clk_mt8365_apmixed_probe()
881 clk_data->hws[CLK_APMIXED_USB20_EN] = hw; in clk_mt8365_apmixed_probe()
883 ret = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); in clk_mt8365_apmixed_probe()
887 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8365_apmixed_probe()
894 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data); in clk_mt8365_apmixed_probe()
901 struct clk_hw_onecell_data *clk_data, in clk_mt8365_register_mtk_simple_gates() argument
917 clk_data->hws[gate->id] = hw; in clk_mt8365_register_mtk_simple_gates()
[all …]
Dclk-mt7986-eth.c82 struct clk_hw_onecell_data *clk_data; in mtk_sgmiisys_0_init() local
85 clk_data = mtk_alloc_clk_data(ARRAY_SIZE(sgmii0_clks)); in mtk_sgmiisys_0_init()
88 clk_data); in mtk_sgmiisys_0_init()
90 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in mtk_sgmiisys_0_init()
100 struct clk_hw_onecell_data *clk_data; in mtk_sgmiisys_1_init() local
103 clk_data = mtk_alloc_clk_data(ARRAY_SIZE(sgmii1_clks)); in mtk_sgmiisys_1_init()
106 clk_data); in mtk_sgmiisys_1_init()
108 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in mtk_sgmiisys_1_init()
119 struct clk_hw_onecell_data *clk_data; in mtk_ethsys_init() local
122 clk_data = mtk_alloc_clk_data(ARRAY_SIZE(eth_clks)); in mtk_ethsys_init()
[all …]
Dclk-mt7629.c575 struct clk_hw_onecell_data *clk_data; in mtk_topckgen_init() local
583 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in mtk_topckgen_init()
586 clk_data); in mtk_topckgen_init()
589 clk_data); in mtk_topckgen_init()
592 base, &mt7629_clk_lock, clk_data); in mtk_topckgen_init()
594 clk_prepare_enable(clk_data->hws[CLK_TOP_AXI_SEL]->clk); in mtk_topckgen_init()
595 clk_prepare_enable(clk_data->hws[CLK_TOP_MEM_SEL]->clk); in mtk_topckgen_init()
596 clk_prepare_enable(clk_data->hws[CLK_TOP_DDRPHYCFG_SEL]->clk); in mtk_topckgen_init()
598 return of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in mtk_topckgen_init()
604 struct clk_hw_onecell_data *clk_data; in mtk_infrasys_init() local
[all …]
Dclk-mt6795-apmixedsys.c85 struct clk_hw_onecell_data *clk_data; in clk_mt6795_apmixed_probe() local
96 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); in clk_mt6795_apmixed_probe()
97 if (!clk_data) in clk_mt6795_apmixed_probe()
100 ret = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); in clk_mt6795_apmixed_probe()
110 clk_data->hws[CLK_APMIXED_REF2USB_TX] = hw; in clk_mt6795_apmixed_probe()
112 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt6795_apmixed_probe()
125 mtk_clk_unregister_ref2usb_tx(clk_data->hws[CLK_APMIXED_REF2USB_TX]); in clk_mt6795_apmixed_probe()
127 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data); in clk_mt6795_apmixed_probe()
129 mtk_free_clk_data(clk_data); in clk_mt6795_apmixed_probe()
136 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt6795_apmixed_remove() local
[all …]
Dclk-mt6795-pericfg.c95 struct clk_hw_onecell_data *clk_data; in clk_mt6795_pericfg_probe() local
104 clk_data = mtk_alloc_clk_data(CLK_PERI_NR_CLK); in clk_mt6795_pericfg_probe()
105 if (!clk_data) in clk_mt6795_pericfg_probe()
112 ret = mtk_clk_register_gates(node, peri_gates, ARRAY_SIZE(peri_gates), clk_data); in clk_mt6795_pericfg_probe()
117 &mt6795_peri_clk_lock, clk_data); in clk_mt6795_pericfg_probe()
121 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt6795_pericfg_probe()
128 mtk_clk_unregister_composites(peri_clks, ARRAY_SIZE(peri_clks), clk_data); in clk_mt6795_pericfg_probe()
130 mtk_clk_unregister_gates(peri_gates, ARRAY_SIZE(peri_gates), clk_data); in clk_mt6795_pericfg_probe()
132 mtk_free_clk_data(clk_data); in clk_mt6795_pericfg_probe()
139 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt6795_pericfg_remove() local
[all …]
Dclk-mt8186-apmixedsys.c86 struct clk_hw_onecell_data *clk_data; in clk_mt8186_apmixed_probe() local
90 clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); in clk_mt8186_apmixed_probe()
91 if (!clk_data) in clk_mt8186_apmixed_probe()
94 r = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); in clk_mt8186_apmixed_probe()
98 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8186_apmixed_probe()
102 platform_set_drvdata(pdev, clk_data); in clk_mt8186_apmixed_probe()
107 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data); in clk_mt8186_apmixed_probe()
109 mtk_free_clk_data(clk_data); in clk_mt8186_apmixed_probe()
116 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt8186_apmixed_remove() local
119 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data); in clk_mt8186_apmixed_remove()
[all …]
Dclk-mt8186-mm.c65 struct clk_hw_onecell_data *clk_data; in clk_mt8186_mm_probe() local
68 clk_data = mtk_alloc_clk_data(CLK_MM_NR_CLK); in clk_mt8186_mm_probe()
69 if (!clk_data) in clk_mt8186_mm_probe()
72 r = mtk_clk_register_gates(node, mm_clks, ARRAY_SIZE(mm_clks), clk_data); in clk_mt8186_mm_probe()
76 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8186_mm_probe()
80 platform_set_drvdata(pdev, clk_data); in clk_mt8186_mm_probe()
85 mtk_clk_unregister_gates(mm_clks, ARRAY_SIZE(mm_clks), clk_data); in clk_mt8186_mm_probe()
87 mtk_free_clk_data(clk_data); in clk_mt8186_mm_probe()
95 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt8186_mm_remove() local
98 mtk_clk_unregister_gates(mm_clks, ARRAY_SIZE(mm_clks), clk_data); in clk_mt8186_mm_remove()
[all …]
Dclk-mt7622.c633 struct clk_hw_onecell_data *clk_data; in mtk_topckgen_init() local
641 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in mtk_topckgen_init()
644 clk_data); in mtk_topckgen_init()
647 clk_data); in mtk_topckgen_init()
650 base, &mt7622_clk_lock, clk_data); in mtk_topckgen_init()
653 base, &mt7622_clk_lock, clk_data); in mtk_topckgen_init()
656 clk_data); in mtk_topckgen_init()
658 clk_prepare_enable(clk_data->hws[CLK_TOP_AXI_SEL]->clk); in mtk_topckgen_init()
659 clk_prepare_enable(clk_data->hws[CLK_TOP_MEM_SEL]->clk); in mtk_topckgen_init()
660 clk_prepare_enable(clk_data->hws[CLK_TOP_DDRPHYCFG_SEL]->clk); in mtk_topckgen_init()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/clk/socfpga/
Dclk-agilex.c352 data->clk_data.hws[clks[i].id] = hw_clk; in n5x_clk_register_c_perip()
371 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_c_perip()
390 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_cnt_perip()
410 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_gate()
430 data->clk_data.hws[clks[i].id] = hw_clk; in agilex_clk_register_pll()
450 data->clk_data.hws[clks[i].id] = hw_clk; in n5x_clk_register_pll()
460 struct stratix10_clock_data *clk_data; in agilex_clkmgr_init() local
472 clk_data = devm_kzalloc(dev, struct_size(clk_data, clk_data.hws, in agilex_clkmgr_init()
474 if (!clk_data) in agilex_clkmgr_init()
478 clk_data->clk_data.hws[i] = ERR_PTR(-ENOENT); in agilex_clkmgr_init()
[all …]
/linux-6.1.9/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.1.9/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.1.9/drivers/mmc/host/
Dsdhci-of-arasan.c151 struct sdhci_arasan_clk_data clk_data; member
265 struct sdhci_arasan_clk_data *clk_data = &sdhci_arasan->clk_data; in sdhci_arasan_set_clock() local
323 if (clk_data->set_clk_delays) in sdhci_arasan_set_clock()
324 clk_data->set_clk_delays(host); in sdhci_arasan_set_clock()
589 struct sdhci_arasan_clk_data *clk_data = in sdhci_arasan_sdcardclk_recalc_rate() local
592 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_arasan_sdcardclk_recalc_rate()
616 struct sdhci_arasan_clk_data *clk_data = in sdhci_arasan_sampleclk_recalc_rate() local
619 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_arasan_sampleclk_recalc_rate()
641 struct sdhci_arasan_clk_data *clk_data = in sdhci_zynqmp_sdcardclk_set_phase() local
644 container_of(clk_data, struct sdhci_arasan_data, clk_data); in sdhci_zynqmp_sdcardclk_set_phase()
[all …]
/linux-6.1.9/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 tcon_top->clk_data = clk_data; in sun8i_tcon_top_bind()
193 clk_data->hws[CLK_TCON_TOP_TV0] = in sun8i_tcon_top_bind()
199 clk_data->hws[CLK_TCON_TOP_TV1] = in sun8i_tcon_top_bind()
205 clk_data->hws[CLK_TCON_TOP_DSI] = in sun8i_tcon_top_bind()
211 if (IS_ERR(clk_data->hws[i])) { in sun8i_tcon_top_bind()
212 ret = PTR_ERR(clk_data->hws[i]); in sun8i_tcon_top_bind()
216 clk_data->num = CLK_NUM; in sun8i_tcon_top_bind()
[all …]

123456789