Lines Matching refs:sharpsl_pm
62 if (sharpsl_pm.flags & SHARPSL_SUSPENDED) { in spitz_charge()
91 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend()
134 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup()
139 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in spitz_should_wakeup()
140 dev_dbg(sharpsl_pm.dev, "AC Inserted\n"); in spitz_should_wakeup()
143 dev_dbg(sharpsl_pm.dev, "AC Removed\n"); in spitz_should_wakeup()
145 sharpsl_pm.machinfo->charge(0); in spitz_should_wakeup()
146 sharpsl_pm.charge_mode = CHRG_OFF; in spitz_should_wakeup()
162 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n", is_resume); in spitz_should_wakeup()
178 return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock); in spitzpm_read_devdata()
180 return gpio_get_value(sharpsl_pm.machinfo->gpio_batfull); in spitzpm_read_devdata()
182 return gpio_get_value(sharpsl_pm.machinfo->gpio_fatal); in spitzpm_read_devdata()