Searched refs:step_uV (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/regulator/ |
D | da9052-regulator.c | 62 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,\
|
D | qcom_spmi-regulator.c | 391 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-6.12.1/drivers/pmdomain/qcom/ |
D | cpr.c | 464 int last_uV, new_uV, step_uV, ret; in cpr_scale() local 471 step_uV = regulator_get_linear_step(drv->vdd_apc); in cpr_scale() 472 if (!step_uV) in cpr_scale() 514 new_uV = last_uV + error_steps * step_uV; in cpr_scale() 551 new_uV = last_uV - error_steps * step_uV; in cpr_scale()
|