Lines Matching refs:postdiv
41 u32 pcw, int postdiv)
64 return ((unsigned long)vco + postdiv - 1) / postdiv;
94 int postdiv)
101 /* set postdiv */
104 val |= (ffs(postdiv) - 1) << pll->data->pd_shift;
106 /* postdiv and pcw need to set at the same time if on same register */
132 * @postdiv: The post divider (output)
137 void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv,
157 *postdiv = 1 << val;
160 *postdiv = 1 << val;
161 if ((u64)freq * *postdiv >= fmin)
166 /* _pcw = freq * postdiv / fin * 2^pcwfbits */
179 u32 postdiv;
181 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate);
182 mtk_pll_set_rate_regs(pll, pcw, postdiv);
190 u32 postdiv;
193 postdiv = (readl(pll->pd_addr) >> pll->data->pd_shift) & POSTDIV_MASK;
194 postdiv = 1 << postdiv;
199 return __mtk_pll_recalc_rate(pll, parent_rate, pcw, postdiv);
207 int postdiv;
209 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, *prate);
211 return __mtk_pll_recalc_rate(pll, *prate, pcw, postdiv);