Lines Matching refs:hw_tbg_data
84 struct clk_hw_onecell_data *hw_tbg_data;
92 hw_tbg_data = devm_kzalloc(&pdev->dev,
93 struct_size(hw_tbg_data, hws, NUM_TBG),
95 if (!hw_tbg_data)
97 hw_tbg_data->num = NUM_TBG;
98 platform_set_drvdata(pdev, hw_tbg_data);
120 hw_tbg_data->hws[i] = clk_hw_register_fixed_factor(NULL, name,
122 if (IS_ERR(hw_tbg_data->hws[i]))
126 ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, hw_tbg_data);
134 struct clk_hw_onecell_data *hw_tbg_data = platform_get_drvdata(pdev);
137 for (i = 0; i < hw_tbg_data->num; i++)
138 clk_hw_unregister_fixed_factor(hw_tbg_data->hws[i]);