Lines Matching refs:top_clk_data
1283 static struct clk_onecell_data *top_clk_data; variable
1289 if (!top_clk_data) { in clk_mt2712_top_init_early()
1290 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt2712_top_init_early()
1293 top_clk_data->clks[i] = ERR_PTR(-EPROBE_DEFER); in clk_mt2712_top_init_early()
1297 top_clk_data); in clk_mt2712_top_init_early()
1299 r = of_clk_add_provider(node, of_clk_src_onecell_get, top_clk_data); in clk_mt2712_top_init_early()
1321 if (!top_clk_data) { in clk_mt2712_top_probe()
1322 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt2712_top_probe()
1325 if (top_clk_data->clks[i] == ERR_PTR(-EPROBE_DEFER)) in clk_mt2712_top_probe()
1326 top_clk_data->clks[i] = ERR_PTR(-ENOENT); in clk_mt2712_top_probe()
1331 top_clk_data); in clk_mt2712_top_probe()
1333 top_clk_data); in clk_mt2712_top_probe()
1334 mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt2712_top_probe()
1336 &mt2712_clk_lock, top_clk_data); in clk_mt2712_top_probe()
1338 &mt2712_clk_lock, top_clk_data); in clk_mt2712_top_probe()
1340 top_clk_data); in clk_mt2712_top_probe()
1342 r = of_clk_add_provider(node, of_clk_src_onecell_get, top_clk_data); in clk_mt2712_top_probe()