Lines Matching refs:sclk

131 				struct mt7621_gate *sclk)  in mt7621_gate_ops_init()  argument
136 .parent_names = &sclk->parent_name, in mt7621_gate_ops_init()
138 .name = sclk->name, in mt7621_gate_ops_init()
141 sclk->hw.init = &init; in mt7621_gate_ops_init()
142 return devm_clk_hw_register(dev, &sclk->hw); in mt7621_gate_ops_init()
150 struct mt7621_gate *sclk; in mt7621_register_gates() local
154 sclk = &mt7621_gates[i]; in mt7621_register_gates()
155 sclk->priv = priv; in mt7621_register_gates()
156 ret = mt7621_gate_ops_init(dev, sclk); in mt7621_register_gates()
158 dev_err(dev, "Couldn't register clock %s\n", sclk->name); in mt7621_register_gates()
162 hws[sclk->idx] = &sclk->hw; in mt7621_register_gates()
169 sclk = &mt7621_gates[i]; in mt7621_register_gates()
170 clk_hw_unregister(&sclk->hw); in mt7621_register_gates()
195 struct mt7621_fixed_clk *sclk; in mt7621_register_fixed_clocks() local
199 sclk = &mt7621_fixed_clks[i]; in mt7621_register_fixed_clocks()
200 sclk->hw = clk_hw_register_fixed_rate(dev, sclk->name, in mt7621_register_fixed_clocks()
201 sclk->parent_name, 0, in mt7621_register_fixed_clocks()
202 sclk->rate); in mt7621_register_fixed_clocks()
203 if (IS_ERR(sclk->hw)) { in mt7621_register_fixed_clocks()
204 dev_err(dev, "Couldn't register clock %s\n", sclk->name); in mt7621_register_fixed_clocks()
205 ret = PTR_ERR(sclk->hw); in mt7621_register_fixed_clocks()
209 hws[sclk->idx] = sclk->hw; in mt7621_register_fixed_clocks()
216 sclk = &mt7621_fixed_clks[i]; in mt7621_register_fixed_clocks()
217 clk_hw_unregister_fixed_rate(sclk->hw); in mt7621_register_fixed_clocks()
313 struct mt7621_clk *sclk; in mt7621_register_early_clocks() local
317 sclk = &mt7621_clks_base[i]; in mt7621_register_early_clocks()
318 sclk->priv = priv; in mt7621_register_early_clocks()
319 ret = of_clk_hw_register(np, &sclk->hw); in mt7621_register_early_clocks()
325 hws[i] = &sclk->hw; in mt7621_register_early_clocks()
326 mt7621_clk_early[i] = &sclk->hw; in mt7621_register_early_clocks()
336 sclk = &mt7621_clks_base[i]; in mt7621_register_early_clocks()
337 clk_hw_unregister(&sclk->hw); in mt7621_register_early_clocks()
388 struct mt7621_clk *sclk = &mt7621_clks_base[i]; in mt7621_clk_init() local
390 clk_hw_unregister(&sclk->hw); in mt7621_clk_init()
461 struct mt7621_gate *sclk = &mt7621_gates[i]; in mt7621_clk_probe() local
463 clk_hw_unregister(&sclk->hw); in mt7621_clk_probe()
468 struct mt7621_fixed_clk *sclk = &mt7621_fixed_clks[i]; in mt7621_clk_probe() local
470 clk_hw_unregister_fixed_rate(sclk->hw); in mt7621_clk_probe()