Lines Matching refs:clk_data
857 struct clk_hw_onecell_data *clk_data; in clk_mt8365_apmixed_probe() local
867 clk_data = mtk_devm_alloc_clk_data(dev, CLK_APMIXED_NR_CLK); in clk_mt8365_apmixed_probe()
868 if (!clk_data) in clk_mt8365_apmixed_probe()
875 clk_data->hws[CLK_APMIXED_UNIV_EN] = hw; in clk_mt8365_apmixed_probe()
881 clk_data->hws[CLK_APMIXED_USB20_EN] = hw; in clk_mt8365_apmixed_probe()
883 ret = mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); in clk_mt8365_apmixed_probe()
887 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8365_apmixed_probe()
894 mtk_clk_unregister_plls(plls, ARRAY_SIZE(plls), clk_data); in clk_mt8365_apmixed_probe()
901 struct clk_hw_onecell_data *clk_data, in clk_mt8365_register_mtk_simple_gates() argument
917 clk_data->hws[gate->id] = hw; in clk_mt8365_register_mtk_simple_gates()
926 struct clk_hw_onecell_data *clk_data; in clk_mt8365_top_probe() local
936 clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt8365_top_probe()
937 if (!clk_data) in clk_mt8365_top_probe()
941 ARRAY_SIZE(top_fixed_clks), clk_data); in clk_mt8365_top_probe()
946 clk_data); in clk_mt8365_top_probe()
951 &mt8365_clk_lock, clk_data); in clk_mt8365_top_probe()
957 &mt8365_clk_lock, clk_data); in clk_mt8365_top_probe()
974 clk_data->hws[mux->id] = hw; in clk_mt8365_top_probe()
978 base, &mt8365_clk_lock, clk_data); in clk_mt8365_top_probe()
982 ret = clk_mt8365_register_mtk_simple_gates(dev, base, clk_data, in clk_mt8365_top_probe()
988 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8365_top_probe()
995 clk_data); in clk_mt8365_top_probe()
998 ARRAY_SIZE(top_misc_mux_gates), clk_data); in clk_mt8365_top_probe()
1000 mtk_clk_unregister_muxes(top_muxes, ARRAY_SIZE(top_muxes), clk_data); in clk_mt8365_top_probe()
1002 mtk_clk_unregister_factors(top_divs, ARRAY_SIZE(top_divs), clk_data); in clk_mt8365_top_probe()
1005 ARRAY_SIZE(top_fixed_clks), clk_data); in clk_mt8365_top_probe()
1007 mtk_free_clk_data(clk_data); in clk_mt8365_top_probe()
1014 struct clk_hw_onecell_data *clk_data; in clk_mt8365_infra_probe() local
1018 clk_data = mtk_alloc_clk_data(CLK_IFR_NR_CLK); in clk_mt8365_infra_probe()
1019 if (!clk_data) in clk_mt8365_infra_probe()
1023 clk_data); in clk_mt8365_infra_probe()
1027 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8365_infra_probe()
1034 mtk_clk_unregister_gates(ifr_clks, ARRAY_SIZE(ifr_clks), clk_data); in clk_mt8365_infra_probe()
1036 mtk_free_clk_data(clk_data); in clk_mt8365_infra_probe()
1044 struct clk_hw_onecell_data *clk_data; in clk_mt8365_peri_probe() local
1053 clk_data = mtk_devm_alloc_clk_data(dev, CLK_PERI_NR_CLK); in clk_mt8365_peri_probe()
1054 if (!clk_data) in clk_mt8365_peri_probe()
1057 ret = clk_mt8365_register_mtk_simple_gates(dev, base, clk_data, in clk_mt8365_peri_probe()
1063 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8365_peri_probe()
1070 struct clk_hw_onecell_data *clk_data; in clk_mt8365_mcu_probe() local
1079 clk_data = mtk_alloc_clk_data(CLK_MCU_NR_CLK); in clk_mt8365_mcu_probe()
1080 if (!clk_data) in clk_mt8365_mcu_probe()
1084 base, &mt8365_clk_lock, clk_data); in clk_mt8365_mcu_probe()
1088 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); in clk_mt8365_mcu_probe()
1096 clk_data); in clk_mt8365_mcu_probe()
1098 mtk_free_clk_data(clk_data); in clk_mt8365_mcu_probe()