Lines Matching full:sclk

231 	struct mtmips_clk *sclk;  in mtmips_register_pherip_clocks()  local
239 sclk = &priv->data->clk_periph[i]; in mtmips_register_pherip_clocks()
240 ret = of_clk_hw_register(np, &sclk->hw); in mtmips_register_pherip_clocks()
246 hws[idx] = &sclk->hw; in mtmips_register_pherip_clocks()
253 sclk = &priv->data->clk_periph[i]; in mtmips_register_pherip_clocks()
254 clk_hw_unregister(&sclk->hw); in mtmips_register_pherip_clocks()
283 struct mtmips_clk_fixed *sclk; in mtmips_register_fixed_clocks() local
290 sclk = &priv->data->clk_fixed[i]; in mtmips_register_fixed_clocks()
291 sclk->hw = clk_hw_register_fixed_rate(NULL, sclk->name, in mtmips_register_fixed_clocks()
292 sclk->parent, 0, in mtmips_register_fixed_clocks()
293 sclk->rate); in mtmips_register_fixed_clocks()
294 if (IS_ERR(sclk->hw)) { in mtmips_register_fixed_clocks()
295 ret = PTR_ERR(sclk->hw); in mtmips_register_fixed_clocks()
300 hws[idx] = sclk->hw; in mtmips_register_fixed_clocks()
307 sclk = &priv->data->clk_fixed[i]; in mtmips_register_fixed_clocks()
308 clk_hw_unregister_fixed_rate(sclk->hw); in mtmips_register_fixed_clocks()
334 struct mtmips_clk_factor *sclk; in mtmips_register_factor_clocks() local
341 sclk = &priv->data->clk_factor[i]; in mtmips_register_factor_clocks()
342 sclk->hw = clk_hw_register_fixed_factor(NULL, sclk->name, in mtmips_register_factor_clocks()
343 sclk->parent, sclk->flags, in mtmips_register_factor_clocks()
344 sclk->mult, sclk->div); in mtmips_register_factor_clocks()
345 if (IS_ERR(sclk->hw)) { in mtmips_register_factor_clocks()
346 ret = PTR_ERR(sclk->hw); in mtmips_register_factor_clocks()
351 hws[idx] = sclk->hw; in mtmips_register_factor_clocks()
358 sclk = &priv->data->clk_factor[i]; in mtmips_register_factor_clocks()
359 clk_hw_unregister_fixed_factor(sclk->hw); in mtmips_register_factor_clocks()
721 struct mtmips_clk *sclk; in mtmips_register_clocks() local
725 sclk = &priv->data->clk_base[i]; in mtmips_register_clocks()
726 sclk->priv = priv; in mtmips_register_clocks()
727 ret = of_clk_hw_register(np, &sclk->hw); in mtmips_register_clocks()
733 hws[i] = &sclk->hw; in mtmips_register_clocks()
740 sclk = &priv->data->clk_base[i]; in mtmips_register_clocks()
741 clk_hw_unregister(&sclk->hw); in mtmips_register_clocks()
954 struct mtmips_clk *sclk = &priv->data->clk_periph[i]; in mtmips_clk_init() local
956 clk_hw_unregister(&sclk->hw); in mtmips_clk_init()
961 struct mtmips_clk_factor *sclk = &priv->data->clk_factor[i]; in mtmips_clk_init() local
963 clk_hw_unregister_fixed_factor(sclk->hw); in mtmips_clk_init()
968 struct mtmips_clk_fixed *sclk = &priv->data->clk_fixed[i]; in mtmips_clk_init() local
970 clk_hw_unregister_fixed_rate(sclk->hw); in mtmips_clk_init()
975 struct mtmips_clk *sclk = &priv->data->clk_base[i]; in mtmips_clk_init() local
977 clk_hw_unregister(&sclk->hw); in mtmips_clk_init()