Lines Matching full:sclk
233 struct mtmips_clk *sclk; in mtmips_register_pherip_clocks() local
241 sclk = &priv->data->clk_periph[i]; in mtmips_register_pherip_clocks()
242 ret = of_clk_hw_register(np, &sclk->hw); in mtmips_register_pherip_clocks()
248 hws[idx] = &sclk->hw; in mtmips_register_pherip_clocks()
255 sclk = &priv->data->clk_periph[i]; in mtmips_register_pherip_clocks()
256 clk_hw_unregister(&sclk->hw); in mtmips_register_pherip_clocks()
290 struct mtmips_clk_fixed *sclk; in mtmips_register_fixed_clocks() local
297 sclk = &priv->data->clk_fixed[i]; in mtmips_register_fixed_clocks()
298 sclk->hw = clk_hw_register_fixed_rate(NULL, sclk->name, in mtmips_register_fixed_clocks()
299 sclk->parent, 0, in mtmips_register_fixed_clocks()
300 sclk->rate); in mtmips_register_fixed_clocks()
301 if (IS_ERR(sclk->hw)) { in mtmips_register_fixed_clocks()
302 ret = PTR_ERR(sclk->hw); in mtmips_register_fixed_clocks()
307 hws[idx] = sclk->hw; in mtmips_register_fixed_clocks()
314 sclk = &priv->data->clk_fixed[i]; in mtmips_register_fixed_clocks()
315 clk_hw_unregister_fixed_rate(sclk->hw); in mtmips_register_fixed_clocks()
350 struct mtmips_clk_factor *sclk; in mtmips_register_factor_clocks() local
357 sclk = &priv->data->clk_factor[i]; in mtmips_register_factor_clocks()
358 sclk->hw = clk_hw_register_fixed_factor(NULL, sclk->name, in mtmips_register_factor_clocks()
359 sclk->parent, sclk->flags, in mtmips_register_factor_clocks()
360 sclk->mult, sclk->div); in mtmips_register_factor_clocks()
361 if (IS_ERR(sclk->hw)) { in mtmips_register_factor_clocks()
362 ret = PTR_ERR(sclk->hw); in mtmips_register_factor_clocks()
367 hws[idx] = sclk->hw; in mtmips_register_factor_clocks()
374 sclk = &priv->data->clk_factor[i]; in mtmips_register_factor_clocks()
375 clk_hw_unregister_fixed_factor(sclk->hw); in mtmips_register_factor_clocks()
746 struct mtmips_clk *sclk; in mtmips_register_clocks() local
750 sclk = &priv->data->clk_base[i]; in mtmips_register_clocks()
751 sclk->priv = priv; in mtmips_register_clocks()
752 ret = of_clk_hw_register(np, &sclk->hw); in mtmips_register_clocks()
758 hws[i] = &sclk->hw; in mtmips_register_clocks()
765 sclk = &priv->data->clk_base[i]; in mtmips_register_clocks()
766 clk_hw_unregister(&sclk->hw); in mtmips_register_clocks()
979 struct mtmips_clk *sclk = &priv->data->clk_periph[i]; in mtmips_clk_init() local
981 clk_hw_unregister(&sclk->hw); in mtmips_clk_init()
986 struct mtmips_clk_factor *sclk = &priv->data->clk_factor[i]; in mtmips_clk_init() local
988 clk_hw_unregister_fixed_factor(sclk->hw); in mtmips_clk_init()
993 struct mtmips_clk_fixed *sclk = &priv->data->clk_fixed[i]; in mtmips_clk_init() local
995 clk_hw_unregister_fixed_rate(sclk->hw); in mtmips_clk_init()
1000 struct mtmips_clk *sclk = &priv->data->clk_base[i]; in mtmips_clk_init() local
1002 clk_hw_unregister(&sclk->hw); in mtmips_clk_init()