Lines Matching refs:clkdco
187 bool dss_pll_hsdiv_calc_a(const struct dss_pll *pll, unsigned long clkdco, in dss_pll_hsdiv_calc_a() argument
198 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); in dss_pll_hsdiv_calc_a()
200 m_stop = min((unsigned)(clkdco / out_min), hw->mX_max); in dss_pll_hsdiv_calc_a()
203 out = clkdco / m; in dss_pll_hsdiv_calc_a()
223 unsigned long fint, clkdco; in dss_pll_calc_a() local
259 clkdco = 2 * m * fint; in dss_pll_calc_a()
261 if (func(n, m, fint, clkdco, data)) in dss_pll_calc_a()
280 unsigned long fint, clkdco, clkout; in dss_pll_calc_b() local
301 clkdco = fint * m; in dss_pll_calc_b()
304 if (WARN_ON(target_clkdco - clkdco > fint)) in dss_pll_calc_b()
307 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in dss_pll_calc_b()
310 clkdco += (u32)div_u64((u64)mf * fint, 262144); in dss_pll_calc_b()
312 clkout = clkdco / m2; in dss_pll_calc_b()
319 DSSDBG("Fint %lu, clkdco %lu, clkout %lu\n", fint, clkdco, clkout); in dss_pll_calc_b()
328 cinfo->clkdco = clkdco; in dss_pll_calc_b()
441 u32 f = cinfo->clkdco < hw->clkdco_low ? 0x2 : 0x4; in dss_pll_write_config_type_a()
549 if (cinfo->clkdco > hw->clkdco_low) in dss_pll_write_config_type_b()