Searched refs:ac_state (Results 1 - 24 of 24) sorted by relevance

/openbsd-current/usr.sbin/apmd/
H A Dapm-proto.h73 extern const char *ac_state(int state);
H A Dapmsubr.c58 ac_state(int state) function
H A Dapmd.c145 bstate.ac_state = 255;
157 if (bstate.ac_state == APM_AC_ON)
163 bstate.ac_state != last.ac_state ||
174 ac_state(bstate.ac_state),
184 ac_state(bstate.ac_state),
/openbsd-current/sys/arch/macppc/include/
H A Dapmvar.h96 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/sparc64/include/
H A Dapmvar.h96 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/loongson/include/
H A Dapmvar.h96 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/arm/include/
H A Dapmvar.h96 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/powerpc64/include/
H A Dapmvar.h96 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/arm64/include/
H A Dapmvar.h96 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/riscv64/include/
H A Dapmvar.h96 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/loongson/dev/
H A Dstsec.c317 stsec_apmdata.ac_state = ISSET(status, STS_AC_AVAILABLE) ? APM_AC_ON :
335 if (old.ac_state != stsec_apmdata.ac_state)
337 stsec_apmdata.ac_state ? "restored" : "lost");
H A Dkb3310.c400 ykbec_apmdata.ac_state = ISSET(power_flag, POWER_FLAG_ADAPTER_IN) ?
433 if (old.ac_state != ykbec_apmdata.ac_state)
435 ykbec_apmdata.ac_state ? "restored" : "lost");
H A Dapm.c336 info->ac_state = APM_AC_UNKNOWN;
/openbsd-current/sys/dev/i2c/
H A Dpijuice.c355 info->ac_state = APM_AC_UNKNOWN;
396 info->ac_state = APM_AC_OFF;
400 info->ac_state = APM_AC_BACKUP;
403 info->ac_state = APM_AC_ON;
/openbsd-current/usr.sbin/apm/
H A Dapm.c274 reply.batterystate.ac_state = APM_AC_UNKNOWN;
336 reply.batterystate.ac_state);
407 ac_state(reply.batterystate.ac_state));
/openbsd-current/sys/arch/macppc/dev/
H A Dapm.c257 power->ac_state = ((batt.flags & PMU_PWR_AC_PRESENT) ?
271 } else if ((power->ac_state == APM_AC_ON) &&
/openbsd-current/sys/dev/fdt/
H A Dcwfg.c118 .ac_state = APM_AC_UNKNOWN,
328 cwfg_power.ac_state = APM_AC_UNKNOWN;
H A Dqcpas.c1165 info->ac_state = APM_AC_UNKNOWN;
1263 info->ac_state = APM_AC_ON;
1266 info->ac_state = APM_AC_OFF;
/openbsd-current/sys/arch/amd64/include/
H A Dapmvar.h270 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/i386/include/
H A Dapmvar.h269 u_char ac_state; member in struct:apm_power_info
/openbsd-current/sys/arch/arm64/dev/
H A Dapm.c328 info->ac_state = APM_AC_UNKNOWN;
H A Daplsmc.c652 info->ac_state = APM_AC_UNKNOWN;
664 info->ac_state = ksensor->value ?
/openbsd-current/sys/arch/i386/i386/
H A Dapm.c1056 powerp->ac_state = AC_STATE(&regs);
/openbsd-current/sys/dev/acpi/
H A Dacpi.c3322 pi->ac_state = APM_AC_UNKNOWN;
3326 pi->ac_state = APM_AC_ON;
3328 if (pi->ac_state == APM_AC_UNKNOWN)
3329 pi->ac_state = APM_AC_OFF;

Completed in 371 milliseconds