| /linux-4.4.14/drivers/regulator/ |
| D | gpio-regulator.c | 68 int ptr, target = 0, state, best_val = INT_MAX; in gpio_regulator_set_voltage() local 71 if (data->states[ptr].value < best_val && in gpio_regulator_set_voltage() 75 best_val = data->states[ptr].value; in gpio_regulator_set_voltage() 80 if (best_val == INT_MAX) in gpio_regulator_set_voltage() 107 int ptr, target = 0, state, best_val = 0; in gpio_regulator_set_current_limit() local 110 if (data->states[ptr].value > best_val && in gpio_regulator_set_current_limit() 114 best_val = data->states[ptr].value; in gpio_regulator_set_current_limit() 117 if (best_val == 0) in gpio_regulator_set_current_limit()
|
| D | helpers.c | 175 int best_val = INT_MAX; in regulator_map_voltage_iterate() local 187 if (ret < best_val && ret >= min_uV && ret <= max_uV) { in regulator_map_voltage_iterate() 188 best_val = ret; in regulator_map_voltage_iterate() 193 if (best_val != INT_MAX) in regulator_map_voltage_iterate()
|
| D | core.c | 2735 int best_val = 0; in _regulator_do_set_voltage() local 2762 best_val = rdev->desc->ops->list_voltage(rdev, in _regulator_do_set_voltage() 2765 best_val = _regulator_get_voltage(rdev); in _regulator_do_set_voltage() 2771 best_val = rdev->desc->ops->list_voltage(rdev, ret); in _regulator_do_set_voltage() 2772 if (min_uV <= best_val && max_uV >= best_val) { in _regulator_do_set_voltage() 2778 rdev, best_val, selector); in _regulator_do_set_voltage() 2808 if (ret == 0 && best_val >= 0) { in _regulator_do_set_voltage() 2809 unsigned long data = best_val; in _regulator_do_set_voltage() 2815 trace_regulator_set_voltage_complete(rdev_get_name(rdev), best_val); in _regulator_do_set_voltage()
|
| /linux-4.4.14/sound/soc/codecs/ |
| D | wm9081.c | 1000 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local 1058 best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio) in wm9081_hw_params() 1063 if (cur_val < best_val) { in wm9081_hw_params() 1065 best_val = cur_val; in wm9081_hw_params() 1075 best_val = abs(wm9081->fs - sample_rates[0].rate); in wm9081_hw_params() 1079 if (cur_val < best_val) { in wm9081_hw_params() 1081 best_val = cur_val; in wm9081_hw_params() 1091 best_val = INT_MAX; in wm9081_hw_params() 1097 if (cur_val < best_val) { in wm9081_hw_params() 1099 best_val = cur_val; in wm9081_hw_params() [all …]
|
| D | wm8993.c | 1191 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local 1243 best_val = abs((wm8993->sysclk_rate / clk_sys_rates[0].ratio) in wm8993_hw_params() 1248 if (cur_val < best_val) { in wm8993_hw_params() 1250 best_val = cur_val; in wm8993_hw_params() 1260 best_val = abs(wm8993->fs - sample_rates[0].rate); in wm8993_hw_params() 1264 if (cur_val < best_val) { in wm8993_hw_params() 1266 best_val = cur_val; in wm8993_hw_params() 1276 best_val = INT_MAX; in wm8993_hw_params() 1282 if (cur_val < best_val) { in wm8993_hw_params() 1284 best_val = cur_val; in wm8993_hw_params() [all …]
|
| D | wm8904.c | 426 int best, best_val, save, i, cfg; in wm8904_set_retune_mobile() local 435 best_val = INT_MAX; in wm8904_set_retune_mobile() 440 - wm8904->fs) < best_val) { in wm8904_set_retune_mobile() 442 best_val = abs(pdata->retune_mobile_cfgs[i].rate in wm8904_set_retune_mobile() 1283 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local 1327 best_val = abs((wm8904->sysclk_rate / clk_sys_rates[0].ratio) in wm8904_hw_params() 1332 if (cur_val < best_val) { in wm8904_hw_params() 1334 best_val = cur_val; in wm8904_hw_params() 1344 best_val = abs(wm8904->fs - sample_rates[0].rate); in wm8904_hw_params() 1348 if (cur_val < best_val) { in wm8904_hw_params() [all …]
|
| D | max98088.c | 1401 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local 1414 best_val = INT_MAX; in max98088_setup_eq1() 1417 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98088_setup_eq1() 1419 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98088_setup_eq1() 1448 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local 1461 best_val = INT_MAX; in max98088_setup_eq2() 1464 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98088_setup_eq2() 1466 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98088_setup_eq2()
|
| D | wm8903.c | 1444 int best_val; in wm8903_hw_params() local 1463 best_val = abs(sample_rates[dsp_config].rate - fs); in wm8903_hw_params() 1466 if (cur_val <= best_val) { in wm8903_hw_params() 1468 best_val = cur_val; in wm8903_hw_params() 1506 best_val = abs((wm8903->sysclk / in wm8903_hw_params() 1514 if (cur_val <= best_val) { in wm8903_hw_params() 1516 best_val = cur_val; in wm8903_hw_params() 1546 best_val = ((clk_sys * 10) / bclk_divs[0].ratio) - bclk; in wm8903_hw_params() 1553 best_val = cur_val; in wm8903_hw_params()
|
| D | max98095.c | 1504 int fs, best, best_val, i; in max98095_put_eq_enum() local 1522 best_val = INT_MAX; in max98095_put_eq_enum() 1525 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98095_put_eq_enum() 1527 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98095_put_eq_enum() 1658 int fs, best, best_val, i; in max98095_put_bq_enum() local 1676 best_val = INT_MAX; in max98095_put_bq_enum() 1679 abs(pdata->bq_cfg[i].rate - fs) < best_val) { in max98095_put_bq_enum() 1681 best_val = abs(pdata->bq_cfg[i].rate - fs); in max98095_put_bq_enum()
|
| D | wm8995.c | 1558 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local 1632 best_val = abs((fs_ratios[1] * params_rate(params)) in wm8995_hw_params() 1637 if (cur_val >= best_val) in wm8995_hw_params() 1640 best_val = cur_val; in wm8995_hw_params()
|
| D | wm8994.c | 400 int iface, best, best_val, save, i, cfg; in wm8994_set_retune_mobile() local 421 best_val = INT_MAX; in wm8994_set_retune_mobile() 426 - wm8994->dac_rates[iface]) < best_val) { in wm8994_set_retune_mobile() 428 best_val = abs(pdata->retune_mobile_cfgs[i].rate in wm8994_set_retune_mobile() 2786 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local 2881 best_val = abs((fs_ratios[0] * params_rate(params)) in wm8994_hw_params() 2886 if (cur_val >= best_val) in wm8994_hw_params() 2889 best_val = cur_val; in wm8994_hw_params()
|
| D | wm8996.c | 341 int base, best, best_val, save, i, cfg, iface; in wm8996_set_retune_mobile() local 371 best_val = INT_MAX; in wm8996_set_retune_mobile() 376 - wm8996->rx_rate[iface]) < best_val) { in wm8996_set_retune_mobile() 378 best_val = abs(pdata->retune_mobile_cfgs[i].rate in wm8996_set_retune_mobile()
|
| /linux-4.4.14/sound/soc/atmel/ |
| D | atmel-classd.c | 381 int i, best, best_val, cur_val, ret; in atmel_classd_codec_dai_hw_params() local 387 best_val = abs(fs - sample_rates[0].rate); in atmel_classd_codec_dai_hw_params() 391 if (cur_val < best_val) { in atmel_classd_codec_dai_hw_params() 393 best_val = cur_val; in atmel_classd_codec_dai_hw_params()
|
| /linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
| D | bnx2x_main.c | 13612 int best_val, int best_period) in bnx2x_send_update_drift_ramrod() argument 13630 set_timesync_params->drift_adjust_value = best_val; in bnx2x_send_update_drift_ramrod() 13642 int best_dif = BNX2X_MAX_PHC_DRIFT, best_period = 0, best_val = 0; in bnx2x_ptp_adjfreq() local 13658 best_val = 1; in bnx2x_ptp_adjfreq() 13661 best_val = 31; in bnx2x_ptp_adjfreq() 13685 best_val = val; in bnx2x_ptp_adjfreq() 13691 rc = bnx2x_send_update_drift_ramrod(bp, drift_dir, best_val, in bnx2x_ptp_adjfreq() 13698 DP(BNX2X_MSG_PTP, "Configured val = %d, period = %d\n", best_val, in bnx2x_ptp_adjfreq()
|