Lines Matching full:tree

115 	const struct mtk_pll_data *pll = &priv->tree->plls[clk->id];  in mtk_pll_set_rate_regs()
152 const struct mtk_pll_data *pll = &priv->tree->plls[clk->id]; in mtk_pll_calc_values()
168 do_div(_pcw, priv->tree->xtal2_rate); in mtk_pll_calc_values()
187 const struct mtk_pll_data *pll = &priv->tree->plls[clk->id]; in mtk_apmixedsys_get_rate()
198 return __mtk_pll_recalc_rate(pll, priv->tree->xtal2_rate, in mtk_apmixedsys_get_rate()
205 const struct mtk_pll_data *pll = &priv->tree->plls[clk->id]; in mtk_apmixedsys_enable()
234 const struct mtk_pll_data *pll = &priv->tree->plls[clk->id]; in mtk_apmixedsys_disable()
271 const struct mtk_fixed_factor *fdiv = &priv->tree->fdivs[off]; in mtk_topckgen_get_factor_rate()
284 rate = priv->tree->xtal_rate; in mtk_topckgen_get_factor_rate()
293 const struct mtk_composite *mux = &priv->tree->muxes[off]; in mtk_topckgen_get_mux_rate()
304 return priv->tree->xtal_rate; in mtk_topckgen_get_mux_rate()
311 if (clk->id < priv->tree->fdivs_offs) in mtk_topckgen_get_rate()
312 return priv->tree->fclks[clk->id].rate; in mtk_topckgen_get_rate()
313 else if (clk->id < priv->tree->muxes_offs) in mtk_topckgen_get_rate()
315 priv->tree->fdivs_offs); in mtk_topckgen_get_rate()
318 priv->tree->muxes_offs); in mtk_topckgen_get_rate()
327 if (clk->id < priv->tree->muxes_offs) in mtk_topckgen_enable()
330 mux = &priv->tree->muxes[clk->id - priv->tree->muxes_offs]; in mtk_topckgen_enable()
355 if (clk->id < priv->tree->muxes_offs) in mtk_topckgen_disable()
358 mux = &priv->tree->muxes[clk->id - priv->tree->muxes_offs]; in mtk_topckgen_disable()
374 if (clk->id < priv->tree->muxes_offs) in mtk_topckgen_set_parent()
378 &priv->tree->muxes[clk->id - priv->tree->muxes_offs]); in mtk_topckgen_set_parent()
441 return priv->tree->xtal_rate; in mtk_clk_gate_get_rate()
466 const struct mtk_clk_tree *tree) in mtk_common_clk_init() argument
474 priv->tree = tree; in mtk_common_clk_init()
480 const struct mtk_clk_tree *tree, in mtk_common_clk_gate_init() argument
489 priv->tree = tree; in mtk_common_clk_gate_init()