Lines Matching refs:slowck
277 struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw); in clk_sam9x5_slow_set_parent() local
278 void __iomem *sckcr = slowck->sckcr; in clk_sam9x5_slow_set_parent()
286 if ((!index && !(tmp & slowck->bits->cr_oscsel)) || in clk_sam9x5_slow_set_parent()
287 (index && (tmp & slowck->bits->cr_oscsel))) in clk_sam9x5_slow_set_parent()
291 tmp |= slowck->bits->cr_oscsel; in clk_sam9x5_slow_set_parent()
293 tmp &= ~slowck->bits->cr_oscsel; in clk_sam9x5_slow_set_parent()
307 struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw); in clk_sam9x5_slow_get_parent() local
309 return !!(readl(slowck->sckcr) & slowck->bits->cr_oscsel); in clk_sam9x5_slow_get_parent()
324 struct clk_sam9x5_slow *slowck; in at91_clk_register_sam9x5_slow() local
332 slowck = kzalloc(sizeof(*slowck), GFP_KERNEL); in at91_clk_register_sam9x5_slow()
333 if (!slowck) in at91_clk_register_sam9x5_slow()
342 slowck->hw.init = &init; in at91_clk_register_sam9x5_slow()
343 slowck->sckcr = sckcr; in at91_clk_register_sam9x5_slow()
344 slowck->bits = bits; in at91_clk_register_sam9x5_slow()
345 slowck->parent = !!(readl(sckcr) & slowck->bits->cr_oscsel); in at91_clk_register_sam9x5_slow()
347 hw = &slowck->hw; in at91_clk_register_sam9x5_slow()
348 ret = clk_hw_register(NULL, &slowck->hw); in at91_clk_register_sam9x5_slow()
350 kfree(slowck); in at91_clk_register_sam9x5_slow()
359 struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw); in at91_clk_unregister_sam9x5_slow() local
362 kfree(slowck); in at91_clk_unregister_sam9x5_slow()
373 struct clk_hw *slow_rc, *slow_osc, *slowck; in at91sam9x5_sckc_register() local
409 slowck = at91_clk_register_sam9x5_slow(regbase, "slowck", parent_names, in at91sam9x5_sckc_register()
411 if (IS_ERR(slowck)) in at91sam9x5_sckc_register()
417 slowck); in at91sam9x5_sckc_register()
419 ret = of_clk_add_hw_provider(np, of_clk_hw_simple_get, slowck); in at91sam9x5_sckc_register()
427 at91_clk_unregister_sam9x5_slow(slowck); in at91sam9x5_sckc_register()
573 struct clk_hw *slow_rc, *slowck; in of_sama5d4_sckc_setup() local
611 slowck = at91_clk_register_sam9x5_slow(regbase, "slowck", in of_sama5d4_sckc_setup()
614 if (IS_ERR(slowck)) in of_sama5d4_sckc_setup()
617 ret = of_clk_add_hw_provider(np, of_clk_hw_simple_get, slowck); in of_sama5d4_sckc_setup()
624 at91_clk_unregister_sam9x5_slow(slowck); in of_sama5d4_sckc_setup()