Lines Matching refs:postdiv
65 u32 pcw, int postdiv) in __mtk_pll_recalc_rate() argument
88 return ((unsigned long)vco + postdiv - 1) / postdiv; in __mtk_pll_recalc_rate()
118 int postdiv) in mtk_pll_set_rate_regs() argument
128 val |= (ffs(postdiv) - 1) << pll->data->pd_shift; in mtk_pll_set_rate_regs()
161 static void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values() argument
181 *postdiv = 1 << val; in mtk_pll_calc_values()
184 *postdiv = 1 << val; in mtk_pll_calc_values()
185 if ((u64)freq * *postdiv >= fmin) in mtk_pll_calc_values()
203 u32 postdiv; in mtk_pll_set_rate() local
205 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate); in mtk_pll_set_rate()
206 mtk_pll_set_rate_regs(pll, pcw, postdiv); in mtk_pll_set_rate()
215 u32 postdiv; in mtk_pll_recalc_rate() local
218 postdiv = (readl(pll->pd_addr) >> pll->data->pd_shift) & POSTDIV_MASK; in mtk_pll_recalc_rate()
219 postdiv = 1 << postdiv; in mtk_pll_recalc_rate()
224 return __mtk_pll_recalc_rate(pll, parent_rate, pcw, postdiv); in mtk_pll_recalc_rate()
232 int postdiv; in mtk_pll_round_rate() local
234 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, *prate); in mtk_pll_round_rate()
236 return __mtk_pll_recalc_rate(pll, *prate, pcw, postdiv); in mtk_pll_round_rate()