Lines Matching defs:smpsw
1381 struct sysmon_pswitch *smpsw;
1393 smpsw = &sc->sc_smpsw_power;
1402 smpsw = &sc->sc_smpsw_sleep;
1410 smpsw->smpsw_type = type;
1411 smpsw->smpsw_name = device_xname(sc->sc_dev);
1413 if (sysmon_pswitch_register(smpsw) != 0) {
1421 acpi_fixed_button_handler, smpsw);
1424 sysmon_pswitch_unregister(smpsw);
1441 struct sysmon_pswitch *smpsw;
1447 smpsw = &sc->sc_smpsw_power;
1450 KASSERT(smpsw->smpsw_type != PSWITCH_TYPE_POWER);
1457 smpsw = &sc->sc_smpsw_sleep;
1460 KASSERT(smpsw->smpsw_type != PSWITCH_TYPE_SLEEP);
1474 sysmon_pswitch_unregister(smpsw);
1487 struct sysmon_pswitch *smpsw = context;
1489 (void)AcpiOsExecute(handler, acpi_fixed_button_pressed, smpsw);
1497 struct sysmon_pswitch *smpsw = context;
1500 (smpsw->smpsw_type != ACPI_EVENT_SLEEP_BUTTON) ?
1503 sysmon_pswitch_event(smpsw, PSWITCH_EVENT_PRESSED);