Home
last modified time | relevance | path

Searched refs:best_val (Results 1 – 5 of 5) sorted by relevance

/drivers/regulator/
Dgpio-regulator.c62 int ptr, target = 0, state, best_val = INT_MAX; in gpio_regulator_set_voltage() local
65 if (data->states[ptr].value < best_val && in gpio_regulator_set_voltage()
69 best_val = data->states[ptr].value; in gpio_regulator_set_voltage()
74 if (best_val == INT_MAX) in gpio_regulator_set_voltage()
101 int ptr, target = 0, state, best_val = 0; in gpio_regulator_set_current_limit() local
104 if (data->states[ptr].value > best_val && in gpio_regulator_set_current_limit()
108 best_val = data->states[ptr].value; in gpio_regulator_set_current_limit()
111 if (best_val == 0) in gpio_regulator_set_current_limit()
Dhelpers.c295 int best_val = INT_MAX; in regulator_map_voltage_iterate() local
307 if (ret < best_val && ret >= min_uV && ret <= max_uV) { in regulator_map_voltage_iterate()
308 best_val = ret; in regulator_map_voltage_iterate()
313 if (best_val != INT_MAX) in regulator_map_voltage_iterate()
Dcore.c3577 int best_val = 0; in _regulator_do_set_voltage() local
3605 best_val = ops->list_voltage(rdev, in _regulator_do_set_voltage()
3608 best_val = regulator_get_voltage_rdev(rdev); in _regulator_do_set_voltage()
3614 best_val = ops->list_voltage(rdev, ret); in _regulator_do_set_voltage()
3615 if (min_uV <= best_val && max_uV >= best_val) { in _regulator_do_set_voltage()
3621 rdev, best_val, selector); in _regulator_do_set_voltage()
3624 rdev, best_val, selector); in _regulator_do_set_voltage()
3645 if (old_uV != best_val) { in _regulator_do_set_voltage()
3648 best_val); in _regulator_do_set_voltage()
3652 best_val); in _regulator_do_set_voltage()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_ptp.c256 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local
302 best_val = val; in qed_ptp_hw_adjfreq()
312 best_val = 4; in qed_ptp_hw_adjfreq()
315 best_val = 0; in qed_ptp_hw_adjfreq()
320 (((int)best_val) << QED_DRIFT_CNTR_ADJUSTMENT_SHIFT) | in qed_ptp_hw_adjfreq()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c13655 int best_val, int best_period) in bnx2x_send_update_drift_ramrod() argument
13673 set_timesync_params->drift_adjust_value = best_val; in bnx2x_send_update_drift_ramrod()
13685 int best_dif = BNX2X_MAX_PHC_DRIFT, best_period = 0, best_val = 0; in bnx2x_ptp_adjfreq() local
13701 best_val = 1; in bnx2x_ptp_adjfreq()
13704 best_val = 31; in bnx2x_ptp_adjfreq()
13728 best_val = val; in bnx2x_ptp_adjfreq()
13734 rc = bnx2x_send_update_drift_ramrod(bp, drift_dir, best_val, in bnx2x_ptp_adjfreq()
13741 DP(BNX2X_MSG_PTP, "Configured val = %d, period = %d\n", best_val, in bnx2x_ptp_adjfreq()