Lines Matching refs:sharpsl_pm
60 if (sharpsl_pm.flags & SHARPSL_SUSPENDED) { in spitz_charge()
89 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend()
132 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup()
137 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in spitz_should_wakeup()
138 dev_dbg(sharpsl_pm.dev, "AC Inserted\n"); in spitz_should_wakeup()
141 dev_dbg(sharpsl_pm.dev, "AC Removed\n"); in spitz_should_wakeup()
143 sharpsl_pm.machinfo->charge(0); in spitz_should_wakeup()
144 sharpsl_pm.charge_mode = CHRG_OFF; in spitz_should_wakeup()
160 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n", is_resume); in spitz_should_wakeup()
176 return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock); in spitzpm_read_devdata()
178 return gpio_get_value(sharpsl_pm.machinfo->gpio_batfull); in spitzpm_read_devdata()
180 return gpio_get_value(sharpsl_pm.machinfo->gpio_fatal); in spitzpm_read_devdata()