Searched refs:best_val (Results 1 – 2 of 2) sorted by relevance
68 int ptr, target = 0, state, best_val = INT_MAX; in gpio_regulator_set_voltage() local71 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() local110 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()
2256 int best_val = INT_MAX; in regulator_map_voltage_iterate() local2268 if (ret < best_val && ret >= min_uV && ret <= max_uV) { in regulator_map_voltage_iterate()2269 best_val = ret; in regulator_map_voltage_iterate()2274 if (best_val != INT_MAX) in regulator_map_voltage_iterate()2363 int best_val = 0; in _regulator_do_set_voltage() local2390 best_val = rdev->desc->ops->list_voltage(rdev, in _regulator_do_set_voltage()2393 best_val = _regulator_get_voltage(rdev); in _regulator_do_set_voltage()2411 best_val = rdev->desc->ops->list_voltage(rdev, ret); in _regulator_do_set_voltage()2412 if (min_uV <= best_val && max_uV >= best_val) { in _regulator_do_set_voltage()2448 if (ret == 0 && best_val >= 0) { in _regulator_do_set_voltage()[all …]