Lines Matching refs:top_clk_data

1254 	struct clk_hw_onecell_data *top_clk_data;  in clk_mt8188_topck_probe()  local
1260 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt8188_topck_probe()
1261 if (!top_clk_data) in clk_mt8188_topck_probe()
1271 top_clk_data); in clk_mt8188_topck_probe()
1275 r = mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8188_topck_probe()
1281 &mt8188_clk_lock, top_clk_data); in clk_mt8188_topck_probe()
1292 top_clk_data->hws[CLK_TOP_MFG_CK_FAST_REF] = hw; in clk_mt8188_topck_probe()
1295 top_clk_data->hws[CLK_TOP_MFG_CK_FAST_REF]->clk); in clk_mt8188_topck_probe()
1301 &mt8188_clk_lock, top_clk_data); in clk_mt8188_topck_probe()
1306 ARRAY_SIZE(top_clks), top_clk_data); in clk_mt8188_topck_probe()
1310 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, top_clk_data); in clk_mt8188_topck_probe()
1314 platform_set_drvdata(pdev, top_clk_data); in clk_mt8188_topck_probe()
1319 mtk_clk_unregister_gates(top_clks, ARRAY_SIZE(top_clks), top_clk_data); in clk_mt8188_topck_probe()
1321 mtk_clk_unregister_composites(top_adj_divs, ARRAY_SIZE(top_adj_divs), top_clk_data); in clk_mt8188_topck_probe()
1323 mtk_clk_unregister_muxes(top_mtk_muxes, ARRAY_SIZE(top_mtk_muxes), top_clk_data); in clk_mt8188_topck_probe()
1325 mtk_clk_unregister_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8188_topck_probe()
1327 mtk_clk_unregister_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks), top_clk_data); in clk_mt8188_topck_probe()
1329 mtk_free_clk_data(top_clk_data); in clk_mt8188_topck_probe()
1335 struct clk_hw_onecell_data *top_clk_data = platform_get_drvdata(pdev); in clk_mt8188_topck_remove() local
1339 mtk_clk_unregister_gates(top_clks, ARRAY_SIZE(top_clks), top_clk_data); in clk_mt8188_topck_remove()
1340 mtk_clk_unregister_composites(top_adj_divs, ARRAY_SIZE(top_adj_divs), top_clk_data); in clk_mt8188_topck_remove()
1341 mtk_clk_unregister_muxes(top_mtk_muxes, ARRAY_SIZE(top_mtk_muxes), top_clk_data); in clk_mt8188_topck_remove()
1342 mtk_clk_unregister_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8188_topck_remove()
1343 mtk_clk_unregister_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks), top_clk_data); in clk_mt8188_topck_remove()
1344 mtk_free_clk_data(top_clk_data); in clk_mt8188_topck_remove()