Lines Matching refs:hw_tbg_data
84 struct clk_hw_onecell_data *hw_tbg_data;
91 hw_tbg_data = devm_kzalloc(&pdev->dev,
92 struct_size(hw_tbg_data, hws, NUM_TBG),
94 if (!hw_tbg_data)
96 hw_tbg_data->num = NUM_TBG;
97 platform_set_drvdata(pdev, hw_tbg_data);
118 hw_tbg_data->hws[i] = clk_hw_register_fixed_factor(NULL, name,
120 if (IS_ERR(hw_tbg_data->hws[i]))
124 return of_clk_add_hw_provider(np, of_clk_hw_onecell_get, hw_tbg_data);
130 struct clk_hw_onecell_data *hw_tbg_data = platform_get_drvdata(pdev);
133 for (i = 0; i < hw_tbg_data->num; i++)
134 clk_hw_unregister_fixed_factor(hw_tbg_data->hws[i]);