Lines Matching refs:clk_data
96 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
145 mtk_clk_unregister_composites(peri_clks, ARRAY_SIZE(peri_clks), clk_data); in clk_mt6795_pericfg_remove()
146 mtk_clk_unregister_gates(peri_gates, ARRAY_SIZE(peri_gates), clk_data); in clk_mt6795_pericfg_remove()
147 mtk_free_clk_data(clk_data); in clk_mt6795_pericfg_remove()