Lines Matching refs:battstat
229 …sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_O… in sharpsl_battery_thread()
252 if ((sharpsl_pm.battstat.ac_status == APM_AC_ONLINE) in sharpsl_battery_thread()
254 || percent <= sharpsl_pm.battstat.mainbat_percent) { in sharpsl_battery_thread()
255 sharpsl_pm.battstat.mainbat_voltage = voltage; in sharpsl_battery_thread()
256 sharpsl_pm.battstat.mainbat_status = apm_status; in sharpsl_battery_thread()
257 sharpsl_pm.battstat.mainbat_percent = percent; in sharpsl_battery_thread()
261 sharpsl_pm.battstat.mainbat_status, sharpsl_pm.battstat.mainbat_percent, jiffies); in sharpsl_battery_thread()
264 if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) in sharpsl_battery_thread()
265 && (sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_CRITICAL) in sharpsl_battery_thread()
436 if (sharpsl_pm.battstat.mainbat_status != APM_BATTERY_STATUS_HIGH) { in sharpsl_average_value()
789 return sprintf(buf, "%d\n", sharpsl_pm.battstat.mainbat_percent); in battery_percentage_show()
794 return sprintf(buf, "%d\n", sharpsl_pm.battstat.mainbat_voltage); in battery_voltage_show()
804 info->ac_line_status = sharpsl_pm.battstat.ac_status; in sharpsl_apm_get_power_status()
809 info->battery_status = sharpsl_pm.battstat.mainbat_status; in sharpsl_apm_get_power_status()
812 info->battery_life = sharpsl_pm.battstat.mainbat_percent; in sharpsl_apm_get_power_status()