Home
last modified time | relevance | path

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

/drivers/regulator/
Dgpio-regulator.c68 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()
Dhelpers.c175 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()
Dcore.c2476 int best_val = 0; in _regulator_do_set_voltage() local
2503 best_val = rdev->desc->ops->list_voltage(rdev, in _regulator_do_set_voltage()
2506 best_val = _regulator_get_voltage(rdev); in _regulator_do_set_voltage()
2528 best_val = rdev->desc->ops->list_voltage(rdev, ret); in _regulator_do_set_voltage()
2529 if (min_uV <= best_val && max_uV >= best_val) { in _regulator_do_set_voltage()
2535 rdev, best_val, selector); in _regulator_do_set_voltage()
2565 if (ret == 0 && best_val >= 0) { in _regulator_do_set_voltage()
2566 unsigned long data = best_val; in _regulator_do_set_voltage()
2572 trace_regulator_set_voltage_complete(rdev_get_name(rdev), best_val); in _regulator_do_set_voltage()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c13168 int best_val, int best_period) in bnx2x_send_update_drift_ramrod() argument
13186 set_timesync_params->drift_adjust_value = best_val; in bnx2x_send_update_drift_ramrod()
13198 int best_dif = BNX2X_MAX_PHC_DRIFT, best_period = 0, best_val = 0; in bnx2x_ptp_adjfreq() local
13214 best_val = 1; in bnx2x_ptp_adjfreq()
13217 best_val = 31; in bnx2x_ptp_adjfreq()
13241 best_val = val; in bnx2x_ptp_adjfreq()
13247 rc = bnx2x_send_update_drift_ramrod(bp, drift_dir, best_val, in bnx2x_ptp_adjfreq()
13254 DP(BNX2X_MSG_PTP, "Configrued val = %d, period = %d\n", best_val, in bnx2x_ptp_adjfreq()