Searched refs:sharpsl_pm (Results 1 – 4 of 4) sorted by relevance
29 #include "sharpsl_pm.h"66 struct sharpsl_pm_status sharpsl_pm; variable 181 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_status() : 0; 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_acin; in get_percentage() 188 thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm in get_percentage() [all...]
25 #include "sharpsl_pm.h"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 in spitz_should_wakeup() [all...]
32 obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o sharpsl_pm.o spitz_pm.o
90 extern struct sharpsl_pm_status sharpsl_pm;