Lines Matching refs:pcw
68 u32 pcw, int postdiv) in __mtk_pll_recalc_rate() argument
78 vco = (u64)fin * pcw; in __mtk_pll_recalc_rate()
117 static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw, in mtk_pll_set_rate_regs() argument
142 val |= pcw << pll->data->pcw_shift; in mtk_pll_set_rate_regs()
170 static void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values() argument
202 *pcw = (u32)_pcw; in mtk_pll_calc_values()
209 u32 pcw = 0; in mtk_pll_set_rate() local
212 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate); in mtk_pll_set_rate()
213 mtk_pll_set_rate_regs(pll, pcw, postdiv); in mtk_pll_set_rate()
223 u32 pcw; in mtk_pll_recalc_rate() local
228 pcw = readl(pll->pcw_addr) >> pll->data->pcw_shift; in mtk_pll_recalc_rate()
229 pcw &= GENMASK(pll->data->pcwbits - 1, 0); in mtk_pll_recalc_rate()
231 return __mtk_pll_recalc_rate(pll, parent_rate, pcw, postdiv); in mtk_pll_recalc_rate()
238 u32 pcw = 0; in mtk_pll_round_rate() local
241 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, *prate); in mtk_pll_round_rate()
243 return __mtk_pll_recalc_rate(pll, *prate, pcw, postdiv); in mtk_pll_round_rate()