Lines Matching refs:pcw
41 u32 pcw, int postdiv) in __mtk_pll_recalc_rate() argument
54 vco = (u64)fin * pcw; in __mtk_pll_recalc_rate()
93 static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw, in mtk_pll_set_rate_regs() argument
115 val |= pcw << pll->data->pcw_shift; in mtk_pll_set_rate_regs()
137 void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values() argument
171 *pcw = (u32)_pcw; in mtk_pll_calc_values()
178 u32 pcw = 0; in mtk_pll_set_rate() local
181 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate); in mtk_pll_set_rate()
182 mtk_pll_set_rate_regs(pll, pcw, postdiv); in mtk_pll_set_rate()
191 u32 pcw; in mtk_pll_recalc_rate() local
196 pcw = readl(pll->pcw_addr) >> pll->data->pcw_shift; in mtk_pll_recalc_rate()
197 pcw &= GENMASK(pll->data->pcwbits - 1, 0); in mtk_pll_recalc_rate()
199 return __mtk_pll_recalc_rate(pll, parent_rate, pcw, postdiv); in mtk_pll_recalc_rate()
206 u32 pcw = 0; in mtk_pll_round_rate() local
209 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, *prate); in mtk_pll_round_rate()
211 return __mtk_pll_recalc_rate(pll, *prate, pcw, postdiv); in mtk_pll_round_rate()