Lines Matching defs:millivolts

49  * the second is the voltage (in millivolts) to set for the given regulator.
285 * @millivolts: the millivolts to find the bit value for
299 struct twl_regulator_entry *regulator, int millivolts, uint8_t *vsel)
319 delta = millivolts - (int)regulator->supp_voltages[i];
541 * @millivolts: the voltage to set
555 struct twl_regulator_entry *regulator, int millivolts)
563 /* If millivolts is zero then we simply disable the output */
564 if (millivolts == 0)
571 if (millivolts != regulator->fixed_voltage)
578 err = twl_vreg_millivolt_to_vsel(sc, regulator, millivolts, &vsel);
600 regulator->name, millivolts, vsel);
609 * @millivolts: upon return will contain the voltage on the regulator
621 struct twl_regulator_entry *regulator, int *millivolts)
643 *millivolts = 0;
650 *millivolts = regulator->fixed_voltage;
665 *millivolts = regulator->supp_voltages[vsel];
673 regulator->name, *millivolts, vsel);
682 * @millivolts: pointer to an integer that upon return will contain the mV
684 * If the regulator is disabled the function will set the @millivolts to zero.
693 twl_vreg_get_voltage(device_t dev, const char *name, int *millivolts)
699 if (millivolts == NULL)
708 err = twl_vreg_read_regulator_voltage(sc, regulator, millivolts);
722 * @millivolts: the voltage to set in millivolts
725 * voltage reg then the @millivolts value should match the fixed voltage. If
736 twl_vreg_set_voltage(device_t dev, const char *name, int millivolts)
748 err = twl_vreg_write_regulator_voltage(sc, regulator, millivolts);
878 int millivolts;
918 millivolts = strtoul(voltage, NULL, 0);
922 twl_vreg_write_regulator_voltage(sc, entry, millivolts);
932 err = twl_vreg_read_regulator_voltage(sc, entry, &millivolts);
934 device_printf(sc->sc_dev, "%s : %d mV\n", entry->name, millivolts);