Lines Matching refs:top_clk_data

1240 	struct clk_hw_onecell_data *top_clk_data;  in clk_mt8195_topck_probe()  local
1246 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt8195_topck_probe()
1247 if (!top_clk_data) in clk_mt8195_topck_probe()
1257 top_clk_data); in clk_mt8195_topck_probe()
1261 r = mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8195_topck_probe()
1266 &mt8195_clk_lock, top_clk_data); in clk_mt8195_topck_probe()
1277 top_clk_data->hws[CLK_TOP_MFG_CK_FAST_REF] = hw; in clk_mt8195_topck_probe()
1280 top_clk_data->hws[CLK_TOP_MFG_CK_FAST_REF]->clk); in clk_mt8195_topck_probe()
1285 &mt8195_clk_lock, top_clk_data); in clk_mt8195_topck_probe()
1289 r = mtk_clk_register_gates(node, top_clks, ARRAY_SIZE(top_clks), top_clk_data); in clk_mt8195_topck_probe()
1293 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, top_clk_data); in clk_mt8195_topck_probe()
1297 platform_set_drvdata(pdev, top_clk_data); in clk_mt8195_topck_probe()
1302 mtk_clk_unregister_gates(top_clks, ARRAY_SIZE(top_clks), top_clk_data); in clk_mt8195_topck_probe()
1304 mtk_clk_unregister_composites(top_adj_divs, ARRAY_SIZE(top_adj_divs), top_clk_data); in clk_mt8195_topck_probe()
1306 mtk_clk_unregister_muxes(top_mtk_muxes, ARRAY_SIZE(top_mtk_muxes), top_clk_data); in clk_mt8195_topck_probe()
1308 mtk_clk_unregister_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8195_topck_probe()
1310 mtk_clk_unregister_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks), top_clk_data); in clk_mt8195_topck_probe()
1312 mtk_free_clk_data(top_clk_data); in clk_mt8195_topck_probe()
1318 struct clk_hw_onecell_data *top_clk_data = platform_get_drvdata(pdev); in clk_mt8195_topck_remove() local
1322 mtk_clk_unregister_gates(top_clks, ARRAY_SIZE(top_clks), top_clk_data); in clk_mt8195_topck_remove()
1323 mtk_clk_unregister_composites(top_adj_divs, ARRAY_SIZE(top_adj_divs), top_clk_data); in clk_mt8195_topck_remove()
1324 mtk_clk_unregister_muxes(top_mtk_muxes, ARRAY_SIZE(top_mtk_muxes), top_clk_data); in clk_mt8195_topck_remove()
1325 mtk_clk_unregister_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8195_topck_remove()
1326 mtk_clk_unregister_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks), top_clk_data); in clk_mt8195_topck_remove()
1327 mtk_free_clk_data(top_clk_data); in clk_mt8195_topck_remove()