Lines Matching refs:mode
414 unsigned int adr, mode; in max77686_ldo_mode() local
445 mode = MAX77686_LDO_MODE_OFF; in max77686_ldo_mode()
461 mode = MAX77686_LDO_MODE_LPM; in max77686_ldo_mode()
476 mode = MAX77686_LDO_MODE_STANDBY; in max77686_ldo_mode()
483 mode = MAX77686_LDO_MODE_STANDBY_LPM; in max77686_ldo_mode()
486 mode = MAX77686_LDO_MODE_ON; in max77686_ldo_mode()
489 mode = 0xff; in max77686_ldo_mode()
492 if (mode == 0xff) { in max77686_ldo_mode()
498 val |= mode; in max77686_ldo_mode()
539 unsigned int mask, adr, mode, mode_shift; in max77686_buck_mode() local
581 mode = MAX77686_BUCK_MODE_OFF; in max77686_buck_mode()
589 mode = MAX77686_BUCK_MODE_STANDBY << mode_shift; in max77686_buck_mode()
592 mode = 0xff; in max77686_buck_mode()
600 mode = MAX77686_BUCK_MODE_LPM << mode_shift; in max77686_buck_mode()
603 mode = 0xff; in max77686_buck_mode()
607 mode = MAX77686_BUCK_MODE_ON << mode_shift; in max77686_buck_mode()
610 mode = 0xff; in max77686_buck_mode()
613 if (mode == 0xff) { in max77686_buck_mode()
619 val |= mode; in max77686_buck_mode()
666 &uc_pdata->mode, dev); in max77686_ldo_probe()
707 int mode; in ldo_get_mode() local
710 ret = max77686_ldo_mode(dev, PMIC_OP_GET, &mode); in ldo_get_mode()
714 return mode; in ldo_get_mode()
717 static int ldo_set_mode(struct udevice *dev, int mode) in ldo_set_mode() argument
719 return max77686_ldo_mode(dev, PMIC_OP_SET, &mode); in ldo_set_mode()
730 &uc_pdata->mode); in max77686_buck_probe()
771 int mode; in buck_get_mode() local
774 ret = max77686_buck_mode(dev, PMIC_OP_GET, &mode); in buck_get_mode()
778 return mode; in buck_get_mode()
781 static int buck_set_mode(struct udevice *dev, int mode) in buck_set_mode() argument
783 return max77686_buck_mode(dev, PMIC_OP_SET, &mode); in buck_set_mode()