Lines Matching refs:clkp
227 struct clk *clkp; in propagate_rate() local
229 list_for_each_entry(clkp, &tclk->children, sibling) { in propagate_rate()
230 if (clkp->ops && clkp->ops->recalc) in propagate_rate()
231 clkp->rate = clkp->ops->recalc(clkp); in propagate_rate()
233 propagate_rate(clkp); in propagate_rate()
318 struct clk *clkp; in recalculate_root_clocks() local
320 list_for_each_entry(clkp, &root_clks, sibling) { in recalculate_root_clocks()
321 if (clkp->ops && clkp->ops->recalc) in recalculate_root_clocks()
322 clkp->rate = clkp->ops->recalc(clkp); in recalculate_root_clocks()
323 propagate_rate(clkp); in recalculate_root_clocks()
345 struct clk *clkp; in clk_establish_mapping() local
359 clkp = lookup_root_clock(clk); in clk_establish_mapping()
360 mapping = clkp->mapping; in clk_establish_mapping()
463 struct clk *clkp; in clk_enable_init_clocks() local
465 list_for_each_entry(clkp, &clock_list, node) in clk_enable_init_clocks()
466 if (clkp->flags & CLK_ENABLE_ON_INIT) in clk_enable_init_clocks()
467 clk_enable(clkp); in clk_enable_init_clocks()
573 struct clk *clkp; in clks_core_resume() local
575 list_for_each_entry(clkp, &clock_list, node) { in clks_core_resume()
576 if (likely(clkp->usecount && clkp->ops)) { in clks_core_resume()
577 unsigned long rate = clkp->rate; in clks_core_resume()
579 if (likely(clkp->ops->set_parent)) in clks_core_resume()
580 clkp->ops->set_parent(clkp, in clks_core_resume()
581 clkp->parent); in clks_core_resume()
582 if (likely(clkp->ops->set_rate)) in clks_core_resume()
583 clkp->ops->set_rate(clkp, rate); in clks_core_resume()
584 else if (likely(clkp->ops->recalc)) in clks_core_resume()
585 clkp->rate = clkp->ops->recalc(clkp); in clks_core_resume()