Home
last modified time | relevance | path

Searched refs:step_uV (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/regulator/
Dda9052-regulator.c62 int step_uV; member
160 volt_uV = ((DA9052_BUCK_PERI_REG_MAP_UPTO_3uV * info->step_uV) in da9052_list_voltage()
165 volt_uV = (selector * info->step_uV) + info->min_uV; in da9052_list_voltage()
195 sel = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV); in da9052_map_voltage()
253 ret = DIV_ROUND_UP(abs(new_sel - old_sel) * info->step_uV, in da9052_regulator_set_voltage_time_sel()
304 .step_uV = (step) * 1000,\
326 .step_uV = (step) * 1000,\
Dqcom_spmi-regulator.c391 int step_uV; member
475 .step_uV = _step_uV, \
703 voltage_sel = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); in spmi_regulator_select_voltage()
704 uV = voltage_sel * range->step_uV + range->min_uV; in spmi_regulator_select_voltage()
717 selector += (uV - range->set_point_min_uV) / range->step_uV; in spmi_regulator_select_voltage()
739 offset /= range->step_uV; in spmi_sw_selector_to_hw()
768 offset /= range->step_uV; in spmi_hw_selector_to_sw()
773 max_hw_sel /= range->step_uV; in spmi_hw_selector_to_sw()
826 uV = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); in spmi_regulator_select_voltage_same_range()
827 uV = uV * range->step_uV + range->min_uV; in spmi_regulator_select_voltage_same_range()
[all …]
/Linux-v6.6/drivers/pmdomain/qcom/
Dcpr.c463 int last_uV, new_uV, step_uV, ret; in cpr_scale() local
470 step_uV = regulator_get_linear_step(drv->vdd_apc); in cpr_scale()
471 if (!step_uV) in cpr_scale()
513 new_uV = last_uV + error_steps * step_uV; in cpr_scale()
550 new_uV = last_uV - error_steps * step_uV; in cpr_scale()