H A D | qcom_spmi-regulator.c | 542 int min_uV, int max_uV, u8 *range_sel, u8 *voltage_sel, spmi_regulator_select_voltage() 579 *voltage_sel = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); spmi_regulator_select_voltage() 580 uV = *voltage_sel * range->step_uV + range->min_uV; spmi_regulator_select_voltage() 617 int min_uV, int max_uV, u8 *range_sel, u8 *voltage_sel, spmi_regulator_select_voltage_same_range() 640 *voltage_sel = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); spmi_regulator_select_voltage_same_range() 641 uV = *voltage_sel * range->step_uV + range->min_uV; spmi_regulator_select_voltage_same_range() 671 range_sel, voltage_sel, selector); spmi_regulator_select_voltage_same_range() 680 u8 range_sel, voltage_sel; spmi_regulator_common_set_voltage() local 687 &range_sel, &voltage_sel, selector); spmi_regulator_common_set_voltage() 692 buf[1] = voltage_sel; spmi_regulator_common_set_voltage() 716 u8 voltage_sel; spmi_regulator_common_get_voltage() local 718 spmi_vreg_read(vreg, SPMI_COMMON_REG_VOLTAGE_SET, &voltage_sel, 1); spmi_regulator_common_get_voltage() 724 return range->step_uV * voltage_sel + range->min_uV; spmi_regulator_common_get_voltage() 752 u8 voltage_sel; spmi_regulator_single_range_get_voltage() local 754 spmi_vreg_read(vreg, SPMI_COMMON_REG_VOLTAGE_SET, &voltage_sel, 1); spmi_regulator_single_range_get_voltage() 756 return range->step_uV * voltage_sel + range->min_uV; spmi_regulator_single_range_get_voltage() 764 u8 range_sel, voltage_sel; spmi_regulator_ult_lo_smps_set_voltage() local 771 &range_sel, &voltage_sel, selector); spmi_regulator_ult_lo_smps_set_voltage() 777 * In case of range 0: voltage_sel is a 7 bit value, can be written spmi_regulator_ult_lo_smps_set_voltage() 779 * In case of range 1: voltage_sel is a 5 bit value, bits[7-5] set to spmi_regulator_ult_lo_smps_set_voltage() 783 voltage_sel |= ULT_SMPS_RANGE_SPLIT; spmi_regulator_ult_lo_smps_set_voltage() 786 voltage_sel, 0xff); spmi_regulator_ult_lo_smps_set_voltage() 793 u8 voltage_sel; spmi_regulator_ult_lo_smps_get_voltage() local 795 spmi_vreg_read(vreg, SPMI_COMMON_REG_VOLTAGE_SET, &voltage_sel, 1); spmi_regulator_ult_lo_smps_get_voltage() 802 voltage_sel &= ~ULT_SMPS_RANGE_SPLIT; spmi_regulator_ult_lo_smps_get_voltage() 804 return range->step_uV * voltage_sel + range->min_uV; spmi_regulator_ult_lo_smps_get_voltage() 541 spmi_regulator_select_voltage(struct spmi_regulator *vreg, int min_uV, int max_uV, u8 *range_sel, u8 *voltage_sel, unsigned *selector) spmi_regulator_select_voltage() argument 616 spmi_regulator_select_voltage_same_range(struct spmi_regulator *vreg, int min_uV, int max_uV, u8 *range_sel, u8 *voltage_sel, unsigned *selector) spmi_regulator_select_voltage_same_range() argument
|