Lines Matching defs:regulator
9 #include <linux/regulator/consumer.h>
36 * bits this regulator doesn't quite support ... don't
54 * @supply: regulator to use
58 * regulator. This would normally be called before registering the
61 static int mmc_regulator_get_ocrmask(struct regulator *supply)
95 * mmc_regulator_set_ocr - set regulator to match host->ios voltage
97 * @supply: regulator to use
102 * MMC host drivers may use this to enable or disable a regulator using
107 struct regulator *supply,
133 "could not set regulator OCR (%d)\n", result);
138 static int mmc_regulator_set_voltage_if_supported(struct regulator *regulator,
148 if (!regulator_is_supported_voltage(regulator, min_uV, max_uV))
155 current_uV = regulator_get_voltage(regulator);
159 return regulator_set_voltage_triplet(regulator, min_uV, target_uV,
176 * separate regulator on the card that's trying to make 1.8V and it's best if
231 static inline int mmc_regulator_get_ocrmask(struct regulator *supply)
259 dev_dbg(dev, "No vmmc regulator found\n");
271 dev_dbg(dev, "No vqmmc regulator found\n");
279 * mmc_regulator_enable_vqmmc - enable VQMMC regulator for a host
282 * Returns 0 or errno. Enables the regulator for vqmmc.
293 dev_err(mmc_dev(mmc), "enabling vqmmc regulator failed\n");
303 * mmc_regulator_disable_vqmmc - disable VQMMC regulator for a host
306 * Returns 0 or errno. Disables the regulator for vqmmc.