Home | History | Annotate | Download | only in dev

Lines Matching defs:charging

59 	volatile int charging;
320 DPRINTF(("zapm: charging\n"));
571 /* Restart charging this many times before accepting BATT_FULL. */
577 /* Check battery voltage and "kick charging" every minute. */
661 * battery is fully charged. Restart charging to clear this signal.
667 if (sc->charging && sc->battery_full_cnt < MIN_BATT_FULL) {
795 * in softc, and/or control battery charging.
803 int charging;
815 charging = 0;
819 charging = sc->battery_state & APM_BATT_FLAG_CHARGING;
823 /* Start or stop charging as necessary. */
826 if (charging) {
829 charging = 0;
833 charging = APM_BATT_FLAG_CHARGING;
836 DPRINTF(("zapm_poll: start charging volt %d\n", volt));
839 if (charging) {
840 charging = 0;
843 DPRINTF(("zapm_poll: stop charging\n"));
849 * Restart charging once in a while. Discharge a few milliseconds
859 if (charging) {
869 if (charging)
884 || (charging != (sc->battery_state & APM_BATT_FLAG_CHARGING))) {
889 : (charging ? CONFIG_HOOK_AC_ON_CHARGE