Lines Matching refs:clkdco
176 bool dss_pll_hsdiv_calc_a(const struct dss_pll *pll, unsigned long clkdco, in dss_pll_hsdiv_calc_a() argument
187 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); in dss_pll_hsdiv_calc_a()
189 m_stop = min((unsigned)(clkdco / out_min), hw->mX_max); in dss_pll_hsdiv_calc_a()
192 out = clkdco / m; in dss_pll_hsdiv_calc_a()
212 unsigned long fint, clkdco; in dss_pll_calc_a() local
248 clkdco = 2 * m * fint; in dss_pll_calc_a()
250 if (func(n, m, fint, clkdco, data)) in dss_pll_calc_a()
269 unsigned long fint, clkdco, clkout; in dss_pll_calc_b() local
290 clkdco = fint * m; in dss_pll_calc_b()
293 if (WARN_ON(target_clkdco - clkdco > fint)) in dss_pll_calc_b()
296 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in dss_pll_calc_b()
299 clkdco += (u32)div_u64((u64)mf * fint, 262144); in dss_pll_calc_b()
301 clkout = clkdco / m2; in dss_pll_calc_b()
308 DSSDBG("Fint %lu, clkdco %lu, clkout %lu\n", fint, clkdco, clkout); in dss_pll_calc_b()
317 cinfo->clkdco = clkdco; in dss_pll_calc_b()
430 u32 f = cinfo->clkdco < hw->clkdco_low ? 0x2 : 0x4; in dss_pll_write_config_type_a()
538 if (cinfo->clkdco > hw->clkdco_low) in dss_pll_write_config_type_b()