Lines Matching refs:max_uV
27 static int mmc_ocrbitnum_to_vdd(int vdd_bit, int *min_uV, int *max_uV) in mmc_ocrbitnum_to_vdd() argument
43 *max_uV = 1950 * 1000; in mmc_ocrbitnum_to_vdd()
46 *max_uV = *min_uV + 100 * 1000; in mmc_ocrbitnum_to_vdd()
111 int min_uV, max_uV; in mmc_regulator_set_ocr() local
117 mmc_ocrbitnum_to_vdd(vdd_bit, &min_uV, &max_uV); in mmc_regulator_set_ocr()
119 result = regulator_set_voltage(supply, min_uV, max_uV); in mmc_regulator_set_ocr()
140 int max_uV) in mmc_regulator_set_voltage_if_supported() argument
148 if (!regulator_is_supported_voltage(regulator, min_uV, max_uV)) in mmc_regulator_set_voltage_if_supported()
160 max_uV); in mmc_regulator_set_voltage_if_supported()
185 int ret, volt, min_uV, max_uV; in mmc_regulator_set_vqmmc() local
199 ret = mmc_ocrbitnum_to_vdd(mmc->ios.vdd, &volt, &max_uV); in mmc_regulator_set_vqmmc()
204 __func__, volt, max_uV); in mmc_regulator_set_vqmmc()
207 max_uV = min(max_uV + 200000, 3600000); in mmc_regulator_set_vqmmc()
217 min_uV, volt, max_uV); in mmc_regulator_set_vqmmc()