Lines Matching refs:cur_val
1190 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1245 cur_val = abs((wm8993->sysclk_rate / in wm8993_hw_params()
1247 if (cur_val < best_val) { in wm8993_hw_params()
1249 best_val = cur_val; in wm8993_hw_params()
1262 cur_val = abs(wm8993->fs - sample_rates[i].rate); in wm8993_hw_params()
1263 if (cur_val < best_val) { in wm8993_hw_params()
1265 best_val = cur_val; in wm8993_hw_params()
1277 cur_val = ((wm8993->sysclk_rate * 10) / bclk_divs[i].div) in wm8993_hw_params()
1279 if (cur_val < 0) /* Table is sorted */ in wm8993_hw_params()
1281 if (cur_val < best_val) { in wm8993_hw_params()
1283 best_val = cur_val; in wm8993_hw_params()
1309 cur_val = abs(wm8993->pdata.retune_configs[i].rate in wm8993_hw_params()
1311 if (cur_val < best_val) { in wm8993_hw_params()
1312 best_val = cur_val; in wm8993_hw_params()