/src/sys/arch/arm/xscale/ |
becc_button.c | 64 struct sysmon_pswitch sc_smpsw; member in struct:beccbut_softc 73 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED); 110 sc->sc_smpsw.smpsw_name = device_xname(sc->sc_dev); 111 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_RESET; 113 if (sysmon_pswitch_register(&sc->sc_smpsw) != 0) {
|
/src/sys/dev/ic/ |
spicvar.h | 68 struct sysmon_pswitch sc_smpsw[SPIC_NPSWITCH]; member in struct:spic_softc
|
/src/sys/arch/landisk/dev/ |
pwrsw_obio.c | 52 struct sysmon_pswitch sc_smpsw; /* our sysmon glue */ member in struct:pwrsw_obio_softc 98 sc->sc_smpsw.smpsw_name = device_xname(self); 99 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_POWER; 108 if (sysmon_pswitch_register(&sc->sc_smpsw) != 0) { 148 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED);
|
btn_obio.c | 63 struct sysmon_pswitch sc_smpsw; /* reset */ member in struct:btn_obio_softc 135 sc->sc_smpsw.smpsw_name = device_xname(self); 136 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_RESET; 137 if (sysmon_pswitch_register(&sc->sc_smpsw) != 0) { 217 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED);
|
/src/sys/arch/evbarm/netwalker/ |
netwalker_lid.c | 56 struct sysmon_pswitch sc_smpsw; member in struct:netwalker_lid_softc 134 sc->sc_smpsw.smpsw_name = device_xname(self); 135 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_LID; 137 sysmon_pswitch_register(&sc->sc_smpsw); 180 sysmon_pswitch_event(&sc->sc_smpsw, event);
|
netwalker_pwr.c | 57 struct sysmon_pswitch sc_smpsw; member in struct:netwalker_pwr_softc 135 sc->sc_smpsw.smpsw_name = device_xname(self); 136 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_POWER; 138 sysmon_pswitch_register(&sc->sc_smpsw); 182 sysmon_pswitch_event(&sc->sc_smpsw, event);
|
/src/sys/dev/acpi/ |
acpi_lid.c | 60 struct sysmon_pswitch sc_smpsw; member in struct:acpilid_softc 107 sc->sc_smpsw.smpsw_name = device_xname(self); 108 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_LID; 111 (void)sysmon_pswitch_register(&sc->sc_smpsw); 122 sysmon_pswitch_unregister(&sc->sc_smpsw); 144 sysmon_pswitch_event(&sc->sc_smpsw, (sc->sc_status == 0) ?
|
acpi_acad.c | 62 struct sysmon_pswitch sc_smpsw; member in struct:acpiacad_softc 116 sc->sc_smpsw.smpsw_name = device_xname(self); 117 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_ACADAPTER; 119 (void)sysmon_pswitch_register(&sc->sc_smpsw); 140 sysmon_pswitch_unregister(&sc->sc_smpsw); 190 sysmon_pswitch_event(&sc->sc_smpsw, (status != 0) ?
|
acpi_button.c | 61 struct sysmon_pswitch sc_smpsw; member in struct:acpibut_softc 121 sc->sc_smpsw.smpsw_name = device_xname(self); 127 sc->sc_smpsw.smpsw_type = type->type; 142 (void)sysmon_pswitch_register(&sc->sc_smpsw); 158 sysmon_pswitch_unregister(&sc->sc_smpsw); 175 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED);
|
dalb_acpi.c | 58 struct sysmon_pswitch sc_smpsw; member in struct:acpi_dalb_softc 94 sc->sc_smpsw.smpsw_name = device_xname(sc->sc_dev); 95 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_HOTKEY; 96 if (sysmon_pswitch_register(&sc->sc_smpsw)) { 178 sysmon_pswitch_unregister(&sc->sc_smpsw); 222 "invoking %s (wakeup)\n", sc->sc_smpsw.smpsw_name)); 224 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED); 237 "invoking %s (runtime)\n", sc->sc_smpsw.smpsw_name)); 239 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED);
|
fujhk_acpi.c | 85 struct sysmon_pswitch sc_smpsw[FUJITSU_HK_PSW_COUNT]; member in struct:fujitsu_hk_softc 145 sc->sc_smpsw[i].smpsw_name = sc->sc_smpsw_name[i]; 146 sc->sc_smpsw[i].smpsw_type = PSWITCH_TYPE_HOTKEY; 147 (void)sysmon_pswitch_register(&sc->sc_smpsw[i]); 170 sysmon_pswitch_unregister(&sc->sc_smpsw[i]); 260 sysmon_pswitch_event(&sc->sc_smpsw[index],
|
hpqlb_acpi.c | 61 struct sysmon_pswitch sc_smpsw[HP_PSW_LAST]; member in struct:hpqlb_softc 131 sc->sc_smpsw[HP_PSW_DISPLAY_CYCLE].smpsw_name = 134 sc->sc_smpsw[HP_PSW_DISPLAY_CYCLE].smpsw_type = 137 if (sysmon_pswitch_register(&sc->sc_smpsw[HP_PSW_DISPLAY_CYCLE]) != 0) 141 sc->sc_smpsw[HP_PSW_SLEEP].smpsw_name = device_xname(self); 142 sc->sc_smpsw[HP_PSW_SLEEP].smpsw_type = PSWITCH_TYPE_SLEEP; 144 if (sysmon_pswitch_register(&sc->sc_smpsw[HP_PSW_SLEEP]) != 0) 159 sysmon_pswitch_unregister(&sc->sc_smpsw[HP_PSW_SLEEP]); 162 sysmon_pswitch_unregister(&sc->sc_smpsw[HP_PSW_DISPLAY_CYCLE]); 197 sysmon_pswitch_event(&sc->sc_smpsw[HP_PSW_DISPLAY_CYCLE] [all...] |
sony_acpi.c | 65 struct sysmon_pswitch sc_smpsw[SONY_PSW_LAST]; member in struct:sony_acpi_softc 260 sc->sc_smpsw[SONY_PSW_SLEEP].smpsw_name = device_xname(self); 261 sc->sc_smpsw[SONY_PSW_SLEEP].smpsw_type = PSWITCH_TYPE_SLEEP; 262 sc->sc_smpsw[SONY_PSW_DISPLAY_CYCLE].smpsw_name = 264 sc->sc_smpsw[SONY_PSW_DISPLAY_CYCLE].smpsw_type = PSWITCH_TYPE_HOTKEY; 265 sc->sc_smpsw[SONY_PSW_ZOOM].smpsw_name = PSWITCH_HK_ZOOM_BUTTON; 266 sc->sc_smpsw[SONY_PSW_ZOOM].smpsw_type = PSWITCH_TYPE_HOTKEY; 270 if (sysmon_pswitch_register(&sc->sc_smpsw[i]) != 0) { 273 sc->sc_smpsw[i].smpsw_name); 348 sysmon_pswitch_event(&sc->sc_smpsw[SONY_PSW_SLEEP] [all...] |
asus_acpi.c | 50 struct sysmon_pswitch sc_smpsw[ASUS_PSW_LAST]; member in struct:asus_softc 137 sc->sc_smpsw[ASUS_PSW_DISPLAY_CYCLE].smpsw_name = 139 sc->sc_smpsw[ASUS_PSW_DISPLAY_CYCLE].smpsw_type = 141 if (sysmon_pswitch_register(&sc->sc_smpsw[ASUS_PSW_DISPLAY_CYCLE])) { 184 sysmon_pswitch_unregister(&sc->sc_smpsw[i]); 220 sysmon_pswitch_event(&sc->sc_smpsw[ASUS_PSW_DISPLAY_CYCLE],
|
thinkpad_acpi.c | 104 struct sysmon_pswitch sc_smpsw[TP_PSW_LAST]; member in struct:thinkpad_softc 363 psw = sc->sc_smpsw; 373 sc->sc_smpsw[i].smpsw_type = PSWITCH_TYPE_HOTKEY; 404 if (sysmon_pswitch_register(&sc->sc_smpsw[i]) != 0) { 446 sysmon_pswitch_unregister(&sc->sc_smpsw[i]); 519 sysmon_pswitch_event(&sc->sc_smpsw[TP_PSW_BRIGHTNESS_UP], 528 sysmon_pswitch_event(&sc->sc_smpsw[TP_PSW_BRIGHTNESS_DOWN], 539 sysmon_pswitch_event(&sc->sc_smpsw[TP_PSW_WIRELESS_BUTTON], 548 sysmon_pswitch_event(&sc->sc_smpsw[TP_PSW_BLUETOOTH_BUTTON], 557 sysmon_pswitch_event(&sc->sc_smpsw[TP_PSW_WWAN_BUTTON] [all...] |
/src/sys/arch/evbarm/hdl_g/ |
btn_obio.c | 57 struct sysmon_pswitch sc_smpsw[2]; member in struct:btn_obio_softc 98 sc->sc_smpsw[0].smpsw_name = device_xname(self); 99 sc->sc_smpsw[0].smpsw_type = PSWITCH_TYPE_POWER; 100 if (sysmon_pswitch_register(&sc->sc_smpsw[0]) != 0) { 108 sc->sc_smpsw[1].smpsw_name = device_xname(self); 109 sc->sc_smpsw[1].smpsw_type = PSWITCH_TYPE_RESET; 110 if (sysmon_pswitch_register(&sc->sc_smpsw[1]) != 0) { 146 &sc->sc_smpsw[0]); 158 &sc->sc_smpsw[1]);
|
/src/sys/dev/hyperv/ |
hvshutdown.c | 67 struct sysmon_pswitch sc_smpsw; member in struct:hvshutdown_softc 99 sc->sc_smpsw.smpsw_name = device_xname(self); 100 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_POWER; 101 (void) sysmon_pswitch_register(&sc->sc_smpsw); 115 sysmon_pswitch_unregister(&sc->sc_smpsw); 125 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED);
|
/src/sys/arch/x68k/dev/ |
powsw.c | 79 struct sysmon_pswitch sc_smpsw; member in struct:powsw_softc 144 sc->sc_smpsw.smpsw_name = xname; 145 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_POWER; 146 if (sysmon_pswitch_register(&sc->sc_smpsw) != 0) 248 sysmon_pswitch_event(&sc->sc_smpsw,
|
/src/sys/dev/gpio/ |
gpiobutton.c | 66 struct sysmon_pswitch sc_smpsw; member in struct:gpiobutton_softc 130 sc->sc_smpsw.smpsw_name = device_xname(self); 133 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_POWER; 137 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_SLEEP; 147 sysmon_pswitch_register(&sc->sc_smpsw); 185 sysmon_pswitch_event(&sc->sc_smpsw,
|
/src/sys/dev/acpi/wmi/ |
wmi_dell.c | 66 struct sysmon_pswitch sc_smpsw[WMI_DELL_PSW_COUNT]; member in struct:wmi_dell_softc 180 sc->sc_smpsw[WMI_DELL_PSW_DISPLAY_CYCLE].smpsw_name = 183 sc->sc_smpsw[WMI_DELL_PSW_DISPLAY_CYCLE].smpsw_type = 186 e = sysmon_pswitch_register(&sc->sc_smpsw[WMI_DELL_PSW_DISPLAY_CYCLE]); 193 sc->sc_smpsw[WMI_DELL_PSW_RADIO_TOGGLE].smpsw_name = 196 sc->sc_smpsw[WMI_DELL_PSW_RADIO_TOGGLE].smpsw_type = 199 e = sysmon_pswitch_register(&sc->sc_smpsw[WMI_DELL_PSW_RADIO_TOGGLE]); 221 for (i = 0; i < __arraycount(sc->sc_smpsw); i++) 222 sysmon_pswitch_unregister(&sc->sc_smpsw[i]); 268 &sc->sc_smpsw[wda->wda_data] [all...] |
/src/sys/arch/hpcarm/dev/ |
wzero3_kbd.c | 102 struct sysmon_pswitch sc_smpsw; /* for reset key */ member in struct:wzero3kbd_softc 343 sc->sc_smpsw.smpsw_name = device_xname(self); 344 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_RESET; 345 if (sysmon_pswitch_register(&sc->sc_smpsw) != 0) { 654 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED);
|
/src/sys/dev/i2c/ |
tps65217pmic.c | 93 struct sysmon_pswitch sc_smpsw; member in struct:tps65217pmic_softc 379 sc->sc_smpsw.smpsw_name = device_xname(self); 380 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_ACADAPTER; 381 sysmon_pswitch_register(&sc->sc_smpsw); 474 sysmon_pswitch_event(&sc->sc_smpsw, 477 sysmon_pswitch_event(&sc->sc_smpsw,
|
axppmic.c | 465 struct sysmon_pswitch sc_smpsw; member in struct:axppmic_softc 821 sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED); 1214 sc->sc_smpsw.smpsw_name = device_xname(self); 1215 sc->sc_smpsw.smpsw_type = PSWITCH_TYPE_POWER; 1216 sysmon_pswitch_register(&sc->sc_smpsw);
|