Lines Matching defs:mode
65 static inline unsigned int max77802_map_mode(unsigned int mode)
67 return mode == MAX77802_OPMODE_NORMAL ?
112 static int max77802_set_mode(struct regulator_dev *rdev, unsigned int mode)
119 switch (mode) {
127 dev_warn(&rdev->dev, "%s: regulator mode: 0x%x not supported\n",
128 rdev->desc->name, mode);
152 * @rdev: regulator to change mode
153 * @mode: operating mode to be set
155 * Will set the operating mode for the regulators during system suspend.
162 * If setting the regulator mode fails, the function only warns but does
164 * the operating mode for the remaining regulators.
167 unsigned int mode)
179 * then is invalid to try setting a suspend mode.
182 dev_warn(&rdev->dev, "%s: is disabled, mode: 0x%x not set\n",
183 rdev->desc->name, mode);
187 switch (mode) {
191 * ON in Low Power Mode by PWRREQ. If the mode is
201 * If the regulator operating mode is Low Power then
203 * mode is already normal then no action is required.
207 rdev->desc->name, mode);
210 dev_warn(&rdev->dev, "%s: regulator mode: 0x%x not supported\n",
211 rdev->desc->name, mode);
517 "cannot read current mode for %d\n", i);
525 * the hardware reports OFF as the regulator operating mode.
526 * Default to operating mode NORMAL in that case.