Lines Matching refs:den
857 static void avivo_reduce_ratio(unsigned *nom, unsigned *den, in avivo_reduce_ratio() argument
863 tmp = gcd(*nom, *den); in avivo_reduce_ratio()
865 *den /= tmp; in avivo_reduce_ratio()
871 *den *= tmp; in avivo_reduce_ratio()
875 if (*den < den_min) { in avivo_reduce_ratio()
876 tmp = DIV_ROUND_UP(den_min, *den); in avivo_reduce_ratio()
878 *den *= tmp; in avivo_reduce_ratio()
896 static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in avivo_get_fb_ref_div() argument
904 *ref_div = min(max(DIV_ROUND_CLOSEST(den, post_div), 1u), ref_div_max); in avivo_get_fb_ref_div()
905 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in avivo_get_fb_ref_div()
942 unsigned nom, den; in radeon_compute_pll_avivo() local
1003 den = pll->reference_freq; in radeon_compute_pll_avivo()
1006 avivo_reduce_ratio(&nom, &den, fb_div_min, post_div_min); in radeon_compute_pll_avivo()
1017 avivo_get_fb_ref_div(nom, den, post_div, fb_div_max, in radeon_compute_pll_avivo()
1032 avivo_get_fb_ref_div(nom, den, post_div, fb_div_max, ref_div_max, in radeon_compute_pll_avivo()