Lines Matching refs:set_points
377 struct spmi_voltage_set_points *set_points; member
397 struct spmi_voltage_set_points *set_points; member
418 .set_points = &_set_points_val##_set_points, \
619 lim_min_uV = vreg->set_points->range[0].set_point_min_uV; in spmi_regulator_select_voltage()
621 vreg->set_points->range[vreg->set_points->count - 1].set_point_max_uV; in spmi_regulator_select_voltage()
634 for (i = vreg->set_points->count - 1; i > 0; i--) { in spmi_regulator_select_voltage()
635 range_max_uV = vreg->set_points->range[i - 1].set_point_max_uV; in spmi_regulator_select_voltage()
641 range = &vreg->set_points->range[range_id]; in spmi_regulator_select_voltage()
660 selector += vreg->set_points->range[i].n_voltages; in spmi_regulator_select_voltage()
673 range = vreg->set_points->range; in spmi_sw_selector_to_hw()
674 end = range + vreg->set_points->count; in spmi_sw_selector_to_hw()
700 const struct spmi_voltage_range *r = vreg->set_points->range; in spmi_hw_selector_to_sw()
701 const struct spmi_voltage_range *end = r + vreg->set_points->count; in spmi_hw_selector_to_sw()
735 range = vreg->set_points->range; in spmi_regulator_find_range()
736 end = range + vreg->set_points->count; in spmi_regulator_find_range()
782 for (i = 0; i < vreg->set_points->count; i++) { in spmi_regulator_select_voltage_same_range()
783 if (uV >= vreg->set_points->range[i].set_point_min_uV in spmi_regulator_select_voltage_same_range()
784 && uV <= vreg->set_points->range[i].set_point_max_uV) { in spmi_regulator_select_voltage_same_range()
786 (uV - vreg->set_points->range[i].set_point_min_uV) in spmi_regulator_select_voltage_same_range()
787 / vreg->set_points->range[i].step_uV; in spmi_regulator_select_voltage_same_range()
791 selector += vreg->set_points->range[i].n_voltages; in spmi_regulator_select_voltage_same_range()
794 if (selector >= vreg->set_points->n_voltages) in spmi_regulator_select_voltage_same_range()
886 range = vreg->set_points->range; in spmi_regulator_ftsmps426_get_voltage()
975 if (selector >= vreg->set_points->n_voltages) in spmi_regulator_common_list_voltage()
978 for (i = 0; i < vreg->set_points->count; i++) { in spmi_regulator_common_list_voltage()
979 if (selector < vreg->set_points->range[i].n_voltages) { in spmi_regulator_common_list_voltage()
980 uV = selector * vreg->set_points->range[i].step_uV in spmi_regulator_common_list_voltage()
981 + vreg->set_points->range[i].set_point_min_uV; in spmi_regulator_common_list_voltage()
985 selector -= vreg->set_points->range[i].n_voltages; in spmi_regulator_common_list_voltage()
1599 vreg->set_points = mapping->set_points; in spmi_regulator_match()
1603 if (mapping->set_points) { in spmi_regulator_match()
1604 if (!mapping->set_points->n_voltages) in spmi_regulator_match()
1605 spmi_calculate_num_voltages(mapping->set_points); in spmi_regulator_match()
1606 vreg->desc.n_voltages = mapping->set_points->n_voltages; in spmi_regulator_match()
1662 const struct spmi_voltage_range *range = &vreg->set_points->range[0]; in spmi_regulator_init_slew_rate_ftsmps426()
2202 if (vreg->set_points && vreg->set_points->count == 1) { in qcom_spmi_regulator_probe()
2204 range = vreg->set_points->range; in qcom_spmi_regulator_probe()