Lines Matching refs:hw_data
189 struct clk_hw_onecell_data *hw_data, in lan966x_gate_clk_register() argument
197 hw_data->hws[i] = in lan966x_gate_clk_register()
203 if (IS_ERR(hw_data->hws[i])) in lan966x_gate_clk_register()
204 return dev_err_probe(dev, PTR_ERR(hw_data->hws[i]), in lan966x_gate_clk_register()
214 struct clk_hw_onecell_data *hw_data; in lan966x_clk_probe() local
220 hw_data = devm_kzalloc(dev, struct_size(hw_data, hws, N_CLOCKS), in lan966x_clk_probe()
222 if (!hw_data) in lan966x_clk_probe()
231 hw_data->num = GCK_GATE_UHPHS; in lan966x_clk_probe()
235 hw_data->hws[i] = lan966x_gck_clk_register(dev, i); in lan966x_clk_probe()
236 if (IS_ERR(hw_data->hws[i])) { in lan966x_clk_probe()
239 return PTR_ERR(hw_data->hws[i]); in lan966x_clk_probe()
249 hw_data->num = N_CLOCKS; in lan966x_clk_probe()
251 ret = lan966x_gate_clk_register(dev, hw_data, gate_base); in lan966x_clk_probe()
256 return devm_of_clk_add_hw_provider(dev, of_clk_hw_onecell_get, hw_data); in lan966x_clk_probe()