Searched refs:voltage_sel (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/regulator/
H A Dqcom_spmi-regulator.c542 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
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dm88ds3103.c1038 bool voltage_sel, voltage_dis; m88ds3103_set_voltage() local
1049 voltage_sel = true; m88ds3103_set_voltage()
1053 voltage_sel = false; m88ds3103_set_voltage()
1057 voltage_sel = false; m88ds3103_set_voltage()
1067 voltage_sel ^= dev->cfg->lnb_hv_pol; m88ds3103_set_voltage()
1070 utmp = voltage_dis << 1 | voltage_sel << 0; m88ds3103_set_voltage()
/linux-4.4.14/include/linux/mfd/
H A Dpalmas.h192 /* voltage_sel is the bitfield loaded onto the SMPSX_VOLTAGE

Completed in 228 milliseconds