/linux-4.1.27/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 | 2551 int best_val = 0; in _regulator_do_set_voltage() local 2578 best_val = rdev->desc->ops->list_voltage(rdev, in _regulator_do_set_voltage() 2581 best_val = _regulator_get_voltage(rdev); in _regulator_do_set_voltage() 2603 best_val = rdev->desc->ops->list_voltage(rdev, ret); in _regulator_do_set_voltage() 2604 if (min_uV <= best_val && max_uV >= best_val) { in _regulator_do_set_voltage() 2610 rdev, best_val, selector); in _regulator_do_set_voltage() 2640 if (ret == 0 && best_val >= 0) { in _regulator_do_set_voltage() 2641 unsigned long data = best_val; in _regulator_do_set_voltage() 2647 trace_regulator_set_voltage_complete(rdev_get_name(rdev), best_val); in _regulator_do_set_voltage()
|
/linux-4.1.27/sound/soc/codecs/ |
D | wm9081.c | 1003 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local 1061 best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio) in wm9081_hw_params() 1066 if (cur_val < best_val) { in wm9081_hw_params() 1068 best_val = cur_val; in wm9081_hw_params() 1078 best_val = abs(wm9081->fs - sample_rates[0].rate); in wm9081_hw_params() 1082 if (cur_val < best_val) { in wm9081_hw_params() 1084 best_val = cur_val; in wm9081_hw_params() 1094 best_val = INT_MAX; in wm9081_hw_params() 1100 if (cur_val < best_val) { in wm9081_hw_params() 1102 best_val = cur_val; in wm9081_hw_params() [all …]
|
D | wm8993.c | 1194 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local 1246 best_val = abs((wm8993->sysclk_rate / clk_sys_rates[0].ratio) 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 = abs(wm8993->fs - sample_rates[0].rate); in wm8993_hw_params() 1267 if (cur_val < best_val) { in wm8993_hw_params() 1269 best_val = cur_val; in wm8993_hw_params() 1279 best_val = INT_MAX; in wm8993_hw_params() 1285 if (cur_val < best_val) { in wm8993_hw_params() 1287 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 | 1660 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local 1673 best_val = INT_MAX; in max98088_setup_eq1() 1676 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98088_setup_eq1() 1678 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98088_setup_eq1() 1707 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local 1720 best_val = INT_MAX; in max98088_setup_eq2() 1723 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98088_setup_eq2() 1725 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98088_setup_eq2()
|
D | wm8903.c | 1446 int best_val; in wm8903_hw_params() local 1465 best_val = abs(sample_rates[dsp_config].rate - fs); in wm8903_hw_params() 1468 if (cur_val <= best_val) { in wm8903_hw_params() 1470 best_val = cur_val; in wm8903_hw_params() 1508 best_val = abs((wm8903->sysclk / in wm8903_hw_params() 1516 if (cur_val <= best_val) { in wm8903_hw_params() 1518 best_val = cur_val; in wm8903_hw_params() 1548 best_val = ((clk_sys * 10) / bclk_divs[0].ratio) - bclk; in wm8903_hw_params() 1555 best_val = cur_val; in wm8903_hw_params()
|
D | max98095.c | 1769 int fs, best, best_val, i; in max98095_put_eq_enum() local 1787 best_val = INT_MAX; in max98095_put_eq_enum() 1790 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98095_put_eq_enum() 1792 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98095_put_eq_enum() 1923 int fs, best, best_val, i; in max98095_put_bq_enum() local 1941 best_val = INT_MAX; in max98095_put_bq_enum() 1944 abs(pdata->bq_cfg[i].rate - fs) < best_val) { in max98095_put_bq_enum() 1946 best_val = abs(pdata->bq_cfg[i].rate - fs); in max98095_put_bq_enum()
|
D | wm8995.c | 1557 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local 1631 best_val = abs((fs_ratios[1] * params_rate(params)) in wm8995_hw_params() 1636 if (cur_val >= best_val) in wm8995_hw_params() 1639 best_val = cur_val; in wm8995_hw_params()
|
D | wm8994.c | 399 int iface, best, best_val, save, i, cfg; in wm8994_set_retune_mobile() local 420 best_val = INT_MAX; in wm8994_set_retune_mobile() 425 - wm8994->dac_rates[iface]) < best_val) { in wm8994_set_retune_mobile() 427 best_val = abs(pdata->retune_mobile_cfgs[i].rate in wm8994_set_retune_mobile() 2785 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local 2880 best_val = abs((fs_ratios[0] * params_rate(params)) in wm8994_hw_params() 2885 if (cur_val >= best_val) in wm8994_hw_params() 2888 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.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13193 int best_val, int best_period) in bnx2x_send_update_drift_ramrod() argument 13211 set_timesync_params->drift_adjust_value = best_val; in bnx2x_send_update_drift_ramrod() 13223 int best_dif = BNX2X_MAX_PHC_DRIFT, best_period = 0, best_val = 0; in bnx2x_ptp_adjfreq() local 13239 best_val = 1; in bnx2x_ptp_adjfreq() 13242 best_val = 31; in bnx2x_ptp_adjfreq() 13266 best_val = val; in bnx2x_ptp_adjfreq() 13272 rc = bnx2x_send_update_drift_ramrod(bp, drift_dir, best_val, in bnx2x_ptp_adjfreq() 13279 DP(BNX2X_MSG_PTP, "Configured val = %d, period = %d\n", best_val, in bnx2x_ptp_adjfreq()
|