Searched refs:frac_max (Results 1 – 2 of 2) sorted by relevance
104 unsigned int frac_max = (1 << pll->frac.width); in __pll_params_with_frac() local112 val = DIV_ROUND_CLOSEST_ULL(val * frac_max, parent_rate); in __pll_params_with_frac()114 val = div_u64(val * frac_max, parent_rate); in __pll_params_with_frac()116 val -= m * frac_max; in __pll_params_with_frac()118 return min((unsigned int)val, (frac_max - 1)); in __pll_params_with_frac()
641 unsigned int frac_max = HDMI_FRAC_MAX_GXL; in meson_hdmi_pll_get_frac() local647 frac_max = HDMI_FRAC_MAX_GXBB; in meson_hdmi_pll_get_frac()652 frac_max = HDMI_FRAC_MAX_G12A; in meson_hdmi_pll_get_frac()659 frac = div_u64((u64)pll_freq * (u64)frac_max, parent_freq); in meson_hdmi_pll_get_frac()660 frac_m = m * frac_max; in meson_hdmi_pll_get_frac()662 return frac_max; in meson_hdmi_pll_get_frac()665 return min((u16)frac, (u16)(frac_max - 1)); in meson_hdmi_pll_get_frac()
Completed in 6 milliseconds