Lines Matching refs:pclk

102 	list_add(&clk->sibling, &pclk_info->pclk->children);  in clk_reparent()
104 clk->pclk = pclk_info->pclk; in clk_reparent()
129 if (clk->pclk) in do_clk_disable()
130 do_clk_disable(clk->pclk); in do_clk_disable()
145 if (clk->pclk) { in do_clk_enable()
146 ret = do_clk_enable(clk->pclk); in do_clk_enable()
153 if (clk->pclk) in do_clk_enable()
154 do_clk_disable(clk->pclk); in do_clk_enable()
246 if (clk->pclk == parent) in clk_set_parent()
253 if (clk->pclk_sel->pclk_info[i].pclk == parent) { in clk_set_parent()
300 } else if (clk->pclk) { in clk_set_rate()
302 ret = clk_set_rate(clk->pclk, mult * rate); in clk_set_rate()
328 if (!clk->pclk && !clk->pclk_sel) { in clk_register()
330 } else if (clk->pclk && !clk->pclk_sel) { in clk_register()
332 list_add(&clk->sibling, &clk->pclk->children); in clk_register()
343 clk->pclk = pclk_info->pclk; in clk_register()
344 list_add(&clk->sibling, &pclk_info->pclk->children); in clk_register()
367 void propagate_rate(struct clk *pclk, int on_init) in propagate_rate() argument
372 list_for_each_entry_safe(clk, _temp, &pclk->children, sibling) { in propagate_rate()
462 if (!clk->pclk) in clk_round_rate()
466 return clk_round_rate(clk->pclk, mult * drate) / mult; in clk_round_rate()
490 unsigned long rate = clk->pclk->rate; in pll_calc_rate()
537 clk->rate = (((clk->pclk->rate/10000) * num) / den) * 10000; in pll_clk_recalc()
589 unsigned long rate = clk->pclk->rate; in bus_calc_rate()
607 clk->rate = (unsigned long)clk->pclk->rate / div; in bus_clk_recalc()
642 unsigned long rate = clk->pclk->rate; in aux_calc_rate()
683 clk->rate = (((clk->pclk->rate/10000) * num) / den) * 10000; in aux_clk_recalc()
725 unsigned long rate = clk->pclk->rate; in gpt_calc_rate()
751 clk->rate = (unsigned long)clk->pclk->rate / div; in gpt_clk_recalc()
796 unsigned long rate = clk->pclk->rate; in clcd_calc_rate()
833 prate = clk->pclk->rate / 1000; /* first level division, make it KHz */ in clcd_clk_recalc()
871 clk->rate = clk->pclk->rate/div_factor; in follow_parent()
883 struct clk *pclk; in recalc_root_clocks() local
888 list_for_each_entry(pclk, &root_clks, sibling) { in recalc_root_clocks()
889 if (pclk->recalc) { in recalc_root_clocks()
890 ret = pclk->recalc(pclk); in recalc_root_clocks()
895 if (ret && pclk->set_rate) in recalc_root_clocks()
896 pclk->set_rate(pclk, 0); in recalc_root_clocks()
898 propagate_rate(pclk, 1); in recalc_root_clocks()
900 if (pclk->flags & ENABLED_ON_INIT) in recalc_root_clocks()
901 do_clk_enable(pclk); in recalc_root_clocks()
920 struct clk *pa = c->pclk; in clk_debugfs_register_one()
961 struct clk *pa = c->pclk; in clk_debugfs_register()