Lines Matching refs:smpsw
1384 struct sysmon_pswitch *smpsw;
1396 smpsw = &sc->sc_smpsw_power;
1405 smpsw = &sc->sc_smpsw_sleep;
1413 smpsw->smpsw_type = type;
1414 smpsw->smpsw_name = device_xname(sc->sc_dev);
1416 if (sysmon_pswitch_register(smpsw) != 0) {
1424 acpi_fixed_button_handler, smpsw);
1427 sysmon_pswitch_unregister(smpsw);
1444 struct sysmon_pswitch *smpsw;
1450 smpsw = &sc->sc_smpsw_power;
1453 KASSERT(smpsw->smpsw_type != PSWITCH_TYPE_POWER);
1460 smpsw = &sc->sc_smpsw_sleep;
1463 KASSERT(smpsw->smpsw_type != PSWITCH_TYPE_SLEEP);
1477 sysmon_pswitch_unregister(smpsw);
1490 struct sysmon_pswitch *smpsw = context;
1492 (void)AcpiOsExecute(handler, acpi_fixed_button_pressed, smpsw);
1500 struct sysmon_pswitch *smpsw = context;
1503 (smpsw->smpsw_type != ACPI_EVENT_SLEEP_BUTTON) ?
1506 sysmon_pswitch_event(smpsw, PSWITCH_EVENT_PRESSED);