Lines Matching refs:nom
43 static void amdgpu_pll_reduce_ratio(unsigned *nom, unsigned *den, in amdgpu_pll_reduce_ratio() argument
49 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio()
50 *nom /= tmp; in amdgpu_pll_reduce_ratio()
54 if (*nom < nom_min) { in amdgpu_pll_reduce_ratio()
55 tmp = DIV_ROUND_UP(nom_min, *nom); in amdgpu_pll_reduce_ratio()
56 *nom *= tmp; in amdgpu_pll_reduce_ratio()
63 *nom *= tmp; in amdgpu_pll_reduce_ratio()
82 static void amdgpu_pll_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in amdgpu_pll_get_fb_ref_div() argument
91 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in amdgpu_pll_get_fb_ref_div()
128 unsigned nom, den; in amdgpu_pll_compute() local
185 nom = target_clock; in amdgpu_pll_compute()
189 amdgpu_pll_reduce_ratio(&nom, &den, fb_div_min, post_div_min); in amdgpu_pll_compute()
200 amdgpu_pll_get_fb_ref_div(nom, den, post_div, fb_div_max, in amdgpu_pll_compute()
215 amdgpu_pll_get_fb_ref_div(nom, den, post_div, fb_div_max, ref_div_max, in amdgpu_pll_compute()