Lines Matching refs:clk_data
694 struct clk_hw_onecell_data *clk_data; in clk_mt8186_topck_probe() local
699 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt8186_topck_probe()
700 if (!clk_data) in clk_mt8186_topck_probe()
710 clk_data); in clk_mt8186_topck_probe()
714 r = mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), clk_data); in clk_mt8186_topck_probe()
719 &mt8186_clk_lock, clk_data); in clk_mt8186_topck_probe()
724 &mt8186_clk_lock, clk_data); in clk_mt8186_topck_probe()
729 &mt8186_clk_lock, clk_data); in clk_mt8186_topck_probe()
733 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8186_topck_probe()
737 platform_set_drvdata(pdev, clk_data); in clk_mt8186_topck_probe()
742 mtk_clk_unregister_composites(top_adj_divs, ARRAY_SIZE(top_adj_divs), clk_data); in clk_mt8186_topck_probe()
744 mtk_clk_unregister_composites(top_muxes, ARRAY_SIZE(top_muxes), clk_data); in clk_mt8186_topck_probe()
746 mtk_clk_unregister_muxes(top_mtk_muxes, ARRAY_SIZE(top_mtk_muxes), clk_data); in clk_mt8186_topck_probe()
748 mtk_clk_unregister_factors(top_divs, ARRAY_SIZE(top_divs), clk_data); in clk_mt8186_topck_probe()
750 mtk_clk_unregister_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks), clk_data); in clk_mt8186_topck_probe()
752 mtk_free_clk_data(clk_data); in clk_mt8186_topck_probe()
758 struct clk_hw_onecell_data *clk_data = platform_get_drvdata(pdev); in clk_mt8186_topck_remove() local
762 mtk_clk_unregister_composites(top_adj_divs, ARRAY_SIZE(top_adj_divs), clk_data); in clk_mt8186_topck_remove()
763 mtk_clk_unregister_composites(top_muxes, ARRAY_SIZE(top_muxes), clk_data); in clk_mt8186_topck_remove()
764 mtk_clk_unregister_muxes(top_mtk_muxes, ARRAY_SIZE(top_mtk_muxes), clk_data); in clk_mt8186_topck_remove()
765 mtk_clk_unregister_factors(top_divs, ARRAY_SIZE(top_divs), clk_data); in clk_mt8186_topck_remove()
766 mtk_clk_unregister_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks), clk_data); in clk_mt8186_topck_remove()
767 mtk_free_clk_data(clk_data); in clk_mt8186_topck_remove()