Searched refs:sharpsl_pm (Results 1 – 4 of 4) sorted by relevance
66 struct sharpsl_pm_status sharpsl_pm; variable181 int i = sharpsl_pm.machinfo->bat_levels - 1; in get_percentage()182 …int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_sta… in get_percentage()185 if (sharpsl_pm.charge_mode == CHRG_ON) in get_percentage()186 …thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_aci… in get_percentage()188 …thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noa… in get_percentage()200 if (sharpsl_pm.charge_mode == CHRG_ON) { in get_apm_status()201 high_thresh = sharpsl_pm.machinfo->status_high_acin; in get_apm_status()202 low_thresh = sharpsl_pm.machinfo->status_low_acin; in get_apm_status()204 high_thresh = sharpsl_pm.machinfo->status_high_noac; in get_apm_status()[all …]
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()[all …]
32 obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o sharpsl_pm.o spitz_pm.o
90 extern struct sharpsl_pm_status sharpsl_pm;