Searched refs:best_val (Results 1 – 8 of 8) sorted by relevance
/linux-2.6.39/sound/soc/codecs/ |
D | wm9081.c | 953 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local 1011 best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio) in wm9081_hw_params() 1016 if (cur_val < best_val) { in wm9081_hw_params() 1018 best_val = cur_val; in wm9081_hw_params() 1028 best_val = abs(wm9081->fs - sample_rates[0].rate); in wm9081_hw_params() 1032 if (cur_val < best_val) { in wm9081_hw_params() 1034 best_val = cur_val; in wm9081_hw_params() 1044 best_val = INT_MAX; in wm9081_hw_params() 1050 if (cur_val < best_val) { in wm9081_hw_params() 1052 best_val = cur_val; in wm9081_hw_params() [all …]
|
D | wm8993.c | 1178 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local 1230 best_val = abs((wm8993->sysclk_rate / clk_sys_rates[0].ratio) in wm8993_hw_params() 1235 if (cur_val < best_val) { in wm8993_hw_params() 1237 best_val = cur_val; in wm8993_hw_params() 1247 best_val = abs(wm8993->fs - sample_rates[0].rate); in wm8993_hw_params() 1251 if (cur_val < best_val) { in wm8993_hw_params() 1253 best_val = cur_val; in wm8993_hw_params() 1263 best_val = INT_MAX; in wm8993_hw_params() 1269 if (cur_val < best_val) { in wm8993_hw_params() 1271 best_val = cur_val; in wm8993_hw_params() [all …]
|
D | wm8904.c | 716 int best, best_val, save, i, cfg; in wm8904_set_retune_mobile() local 725 best_val = INT_MAX; in wm8904_set_retune_mobile() 730 - wm8904->fs) < best_val) { in wm8904_set_retune_mobile() 732 best_val = abs(pdata->retune_mobile_cfgs[i].rate in wm8904_set_retune_mobile() 1544 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local 1588 best_val = abs((wm8904->sysclk_rate / clk_sys_rates[0].ratio) in wm8904_hw_params() 1593 if (cur_val < best_val) { in wm8904_hw_params() 1595 best_val = cur_val; in wm8904_hw_params() 1605 best_val = abs(wm8904->fs - sample_rates[0].rate); in wm8904_hw_params() 1609 if (cur_val < best_val) { in wm8904_hw_params() [all …]
|
D | max98088.c | 1704 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local 1717 best_val = INT_MAX; in max98088_setup_eq1() 1720 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98088_setup_eq1() 1722 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98088_setup_eq1() 1751 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local 1764 best_val = INT_MAX; in max98088_setup_eq2() 1767 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98088_setup_eq2() 1769 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98088_setup_eq2()
|
D | wm8903.c | 1454 int best_val; in wm8903_hw_params() local 1473 best_val = abs(sample_rates[dsp_config].rate - fs); in wm8903_hw_params() 1476 if (cur_val <= best_val) { in wm8903_hw_params() 1478 best_val = cur_val; in wm8903_hw_params() 1516 best_val = abs((wm8903->sysclk / in wm8903_hw_params() 1524 if (cur_val <= best_val) { in wm8903_hw_params() 1526 best_val = cur_val; in wm8903_hw_params() 1556 best_val = ((clk_sys * 10) / bclk_divs[0].ratio) - bclk; in wm8903_hw_params() 1563 best_val = cur_val; in wm8903_hw_params()
|
D | wm8995.c | 1116 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local 1190 best_val = abs((fs_ratios[1] * params_rate(params)) in wm8995_hw_params() 1195 if (cur_val >= best_val) in wm8995_hw_params() 1198 best_val = cur_val; in wm8995_hw_params()
|
D | wm8994.c | 441 int iface, best, best_val, save, i, cfg; in wm8994_set_retune_mobile() local 462 best_val = INT_MAX; in wm8994_set_retune_mobile() 467 - wm8994->dac_rates[iface]) < best_val) { in wm8994_set_retune_mobile() 469 best_val = abs(pdata->retune_mobile_cfgs[i].rate in wm8994_set_retune_mobile() 2340 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local 2425 best_val = abs((fs_ratios[0] * params_rate(params)) in wm8994_hw_params() 2430 if (cur_val >= best_val) in wm8994_hw_params() 2433 best_val = cur_val; in wm8994_hw_params()
|
/linux-2.6.39/drivers/regulator/ |
D | core.c | 1647 int best_val = INT_MAX; in _regulator_do_set_voltage() local 1660 if (ret < best_val && ret >= min_uV && ret <= max_uV) { in _regulator_do_set_voltage() 1661 best_val = ret; in _regulator_do_set_voltage() 1682 if (best_val != INT_MAX) { in _regulator_do_set_voltage() 1684 selector = best_val; in _regulator_do_set_voltage()
|