Lines Matching full:sclk

134 				struct mt7621_gate *sclk)  in mt7621_gate_ops_init()  argument
139 .parent_names = &sclk->parent_name, in mt7621_gate_ops_init()
141 .name = sclk->name, in mt7621_gate_ops_init()
144 sclk->hw.init = &init; in mt7621_gate_ops_init()
145 return devm_clk_hw_register(dev, &sclk->hw); in mt7621_gate_ops_init()
153 struct mt7621_gate *sclk; in mt7621_register_gates() local
157 sclk = &mt7621_gates[i]; in mt7621_register_gates()
158 sclk->priv = priv; in mt7621_register_gates()
159 ret = mt7621_gate_ops_init(dev, sclk); in mt7621_register_gates()
161 dev_err(dev, "Couldn't register clock %s\n", sclk->name); in mt7621_register_gates()
165 hws[sclk->idx] = &sclk->hw; in mt7621_register_gates()
172 sclk = &mt7621_gates[i]; in mt7621_register_gates()
173 clk_hw_unregister(&sclk->hw); in mt7621_register_gates()
198 struct mt7621_fixed_clk *sclk; in mt7621_register_fixed_clocks() local
202 sclk = &mt7621_fixed_clks[i]; in mt7621_register_fixed_clocks()
203 sclk->hw = clk_hw_register_fixed_rate(dev, sclk->name, in mt7621_register_fixed_clocks()
204 sclk->parent_name, 0, in mt7621_register_fixed_clocks()
205 sclk->rate); in mt7621_register_fixed_clocks()
206 if (IS_ERR(sclk->hw)) { in mt7621_register_fixed_clocks()
207 dev_err(dev, "Couldn't register clock %s\n", sclk->name); in mt7621_register_fixed_clocks()
208 ret = PTR_ERR(sclk->hw); in mt7621_register_fixed_clocks()
212 hws[sclk->idx] = sclk->hw; in mt7621_register_fixed_clocks()
219 sclk = &mt7621_fixed_clks[i]; in mt7621_register_fixed_clocks()
220 clk_hw_unregister_fixed_rate(sclk->hw); in mt7621_register_fixed_clocks()
316 struct mt7621_clk *sclk; in mt7621_register_early_clocks() local
320 sclk = &mt7621_clks_base[i]; in mt7621_register_early_clocks()
321 sclk->priv = priv; in mt7621_register_early_clocks()
322 ret = of_clk_hw_register(np, &sclk->hw); in mt7621_register_early_clocks()
328 hws[i] = &sclk->hw; in mt7621_register_early_clocks()
329 mt7621_clk_early[i] = &sclk->hw; in mt7621_register_early_clocks()
339 sclk = &mt7621_clks_base[i]; in mt7621_register_early_clocks()
340 clk_hw_unregister(&sclk->hw); in mt7621_register_early_clocks()
391 struct mt7621_clk *sclk = &mt7621_clks_base[i]; in mt7621_clk_init() local
393 clk_hw_unregister(&sclk->hw); in mt7621_clk_init()
546 struct mt7621_gate *sclk = &mt7621_gates[i]; in mt7621_clk_probe() local
548 clk_hw_unregister(&sclk->hw); in mt7621_clk_probe()
553 struct mt7621_fixed_clk *sclk = &mt7621_fixed_clks[i]; in mt7621_clk_probe() local
555 clk_hw_unregister_fixed_rate(sclk->hw); in mt7621_clk_probe()