Lines Matching full:sclk
134 struct mt7621_gate *sclk) in mt7621_gate_ops_init() argument
145 .parent_names = &sclk->parent_name, in mt7621_gate_ops_init()
147 .name = sclk->name, in mt7621_gate_ops_init()
150 sclk->hw.init = &init; in mt7621_gate_ops_init()
151 return devm_clk_hw_register(dev, &sclk->hw); in mt7621_gate_ops_init()
159 struct mt7621_gate *sclk; in mt7621_register_gates() local
163 sclk = &mt7621_gates[i]; in mt7621_register_gates()
164 sclk->priv = priv; in mt7621_register_gates()
165 ret = mt7621_gate_ops_init(dev, sclk); in mt7621_register_gates()
167 dev_err(dev, "Couldn't register clock %s\n", sclk->name); in mt7621_register_gates()
171 hws[sclk->idx] = &sclk->hw; in mt7621_register_gates()
178 sclk = &mt7621_gates[i]; in mt7621_register_gates()
179 clk_hw_unregister(&sclk->hw); in mt7621_register_gates()
204 struct mt7621_fixed_clk *sclk; in mt7621_register_fixed_clocks() local
208 sclk = &mt7621_fixed_clks[i]; in mt7621_register_fixed_clocks()
209 sclk->hw = clk_hw_register_fixed_rate(dev, sclk->name, in mt7621_register_fixed_clocks()
210 sclk->parent_name, 0, in mt7621_register_fixed_clocks()
211 sclk->rate); in mt7621_register_fixed_clocks()
212 if (IS_ERR(sclk->hw)) { in mt7621_register_fixed_clocks()
213 dev_err(dev, "Couldn't register clock %s\n", sclk->name); in mt7621_register_fixed_clocks()
214 ret = PTR_ERR(sclk->hw); in mt7621_register_fixed_clocks()
218 hws[sclk->idx] = sclk->hw; in mt7621_register_fixed_clocks()
225 sclk = &mt7621_fixed_clks[i]; in mt7621_register_fixed_clocks()
226 clk_hw_unregister_fixed_rate(sclk->hw); in mt7621_register_fixed_clocks()
322 struct mt7621_clk *sclk; in mt7621_register_early_clocks() local
326 sclk = &mt7621_clks_base[i]; in mt7621_register_early_clocks()
327 sclk->priv = priv; in mt7621_register_early_clocks()
328 ret = of_clk_hw_register(np, &sclk->hw); in mt7621_register_early_clocks()
334 hws[i] = &sclk->hw; in mt7621_register_early_clocks()
335 mt7621_clk_early[i] = &sclk->hw; in mt7621_register_early_clocks()
345 sclk = &mt7621_clks_base[i]; in mt7621_register_early_clocks()
346 clk_hw_unregister(&sclk->hw); in mt7621_register_early_clocks()
397 struct mt7621_clk *sclk = &mt7621_clks_base[i]; in mt7621_clk_init() local
399 clk_hw_unregister(&sclk->hw); in mt7621_clk_init()
551 struct mt7621_gate *sclk = &mt7621_gates[i]; in mt7621_clk_probe() local
553 clk_hw_unregister(&sclk->hw); in mt7621_clk_probe()
558 struct mt7621_fixed_clk *sclk = &mt7621_fixed_clks[i]; in mt7621_clk_probe() local
560 clk_hw_unregister_fixed_rate(sclk->hw); in mt7621_clk_probe()