Lines Matching refs:fint
212 unsigned long fint, clkdco; in dss_pll_calc_a() local
236 fint = clkin / n; in dss_pll_calc_a()
238 m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2), in dss_pll_calc_a()
240 m_stop = min3((unsigned)(pll_max / fint / 2), in dss_pll_calc_a()
241 (unsigned)(pll_hw_max / fint / 2), in dss_pll_calc_a()
254 clkdco = 2 * m * fint; in dss_pll_calc_a()
256 if (func(n, m, fint, clkdco, data)) in dss_pll_calc_a()
275 unsigned long fint, clkdco, clkout; in dss_pll_calc_b() local
285 fint = clkin / n; in dss_pll_calc_b()
288 min_dco = roundup(hw->clkdco_min, fint); in dss_pll_calc_b()
294 m = target_clkdco / fint; in dss_pll_calc_b()
296 clkdco = fint * m; in dss_pll_calc_b()
299 if (WARN_ON(target_clkdco - clkdco > fint)) in dss_pll_calc_b()
302 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in dss_pll_calc_b()
305 clkdco += (u32)div_u64((u64)mf * fint, 262144); in dss_pll_calc_b()
310 sd = DIV_ROUND_UP(fint * m, 250000000); in dss_pll_calc_b()
314 DSSDBG("Fint %lu, clkdco %lu, clkout %lu\n", fint, clkdco, clkout); in dss_pll_calc_b()
322 cinfo->fint = fint; in dss_pll_calc_b()
428 u32 f = cinfo->fint < 1000000 ? 0x3 : in dss_pll_write_config_type_a()
429 cinfo->fint < 1250000 ? 0x4 : in dss_pll_write_config_type_a()
430 cinfo->fint < 1500000 ? 0x5 : in dss_pll_write_config_type_a()
431 cinfo->fint < 1750000 ? 0x6 : in dss_pll_write_config_type_a()
460 sleep_time = DIV_ROUND_UP(1000*1000*1000, cinfo->fint); in dss_pll_write_config_type_a()