Lines Matching refs:top_clk_data
1298 static struct clk_hw_onecell_data *top_clk_data; variable
1304 if (!top_clk_data) { in clk_mt2712_top_init_early()
1305 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt2712_top_init_early()
1308 top_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER); in clk_mt2712_top_init_early()
1312 top_clk_data); in clk_mt2712_top_init_early()
1314 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, top_clk_data); in clk_mt2712_top_init_early()
1335 if (!top_clk_data) { in clk_mt2712_top_probe()
1336 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt2712_top_probe()
1339 if (top_clk_data->hws[i] == ERR_PTR(-EPROBE_DEFER)) in clk_mt2712_top_probe()
1340 top_clk_data->hws[i] = ERR_PTR(-ENOENT); in clk_mt2712_top_probe()
1345 top_clk_data); in clk_mt2712_top_probe()
1347 top_clk_data); in clk_mt2712_top_probe()
1348 mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt2712_top_probe()
1350 &mt2712_clk_lock, top_clk_data); in clk_mt2712_top_probe()
1352 &mt2712_clk_lock, top_clk_data); in clk_mt2712_top_probe()
1354 top_clk_data); in clk_mt2712_top_probe()
1356 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, top_clk_data); in clk_mt2712_top_probe()