• Home
  • Raw
  • Download

Lines Matching full:opmode

63 	unsigned int opmode[MAX77802_REG_MAX];  member
101 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_suspend_disable()
103 max77802->opmode[id] = val; in max77802_set_suspend_disable()
133 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_mode()
136 max77802->opmode[id] = val; in max77802_set_mode()
146 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_get_mode()
148 return max77802_map_mode(max77802->opmode[id]); in max77802_get_mode()
152 * max77802_set_suspend_mode - set regulator opmode when the system is suspended
175 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_suspend_mode()
182 if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) { in max77802_set_suspend_mode()
191 * If the regulator opmode is normal then enable in max77802_set_suspend_mode()
195 if (max77802->opmode[id] == MAX77802_OPMODE_NORMAL) in max77802_set_suspend_mode()
203 * normal is not a valid opmode in suspend. If the in max77802_set_suspend_mode()
206 if (max77802->opmode[id] == MAX77802_OPMODE_LP) in max77802_set_suspend_mode()
226 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_enable()
228 if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) in max77802_enable()
229 max77802->opmode[id] = MAX77802_OPMODE_NORMAL; in max77802_enable()
233 max77802->opmode[id] << shift); in max77802_enable()
574 if (id < ARRAY_SIZE(max77802->opmode)) { in max77802_pmic_probe()
576 max77802->opmode[id] = MAX77802_OPMODE_NORMAL; in max77802_pmic_probe()
578 max77802->opmode[id] = val; in max77802_pmic_probe()