Home | History | Annotate | Download | only in radeon

Lines Matching refs:den

875  * @den: denominator
883 static void avivo_reduce_ratio(unsigned *nom, unsigned *den,
889 tmp = gcd(*nom, *den);
891 *den /= tmp;
897 *den *= tmp;
901 if (*den < den_min) {
902 tmp = DIV_ROUND_UP(den_min, *den);
904 *den *= tmp;
912 * @den: denominator
922 static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div,
930 *ref_div = min(max(den/post_div, 1u), ref_div_max);
931 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den);
968 unsigned nom, den;
1029 den = pll->reference_freq;
1032 avivo_reduce_ratio(&nom, &den, fb_div_min, post_div_min);
1043 avivo_get_fb_ref_div(nom, den, post_div, fb_div_max,
1058 avivo_get_fb_ref_div(nom, den, post_div, fb_div_max, ref_div_max,