Lines Matching refs:current_freq
1189 uint32_t feedback_div, current_freq = 0, error, vco_diff; in radeon_compute_pll_legacy() local
1221 current_freq = radeon_div(tmp, ref_div * post_div); in radeon_compute_pll_legacy()
1224 if (freq < current_freq) in radeon_compute_pll_legacy()
1227 error = freq - current_freq; in radeon_compute_pll_legacy()
1229 error = abs(current_freq - freq); in radeon_compute_pll_legacy()
1240 best_freq = current_freq; in radeon_compute_pll_legacy()
1243 } else if (current_freq == freq) { in radeon_compute_pll_legacy()
1249 best_freq = current_freq; in radeon_compute_pll_legacy()
1262 best_freq = current_freq; in radeon_compute_pll_legacy()
1267 if (current_freq < freq) in radeon_compute_pll_legacy()
1272 if (current_freq < freq) in radeon_compute_pll_legacy()