| /src/sys/arch/evbppc/nintendo/dev/ |
| resetbtn.c | 68 struct sysmon_pswitch *smpsw = device_private(self); local 80 smpsw->smpsw_name = device_xname(self); 81 smpsw->smpsw_type = PSWITCH_TYPE_RESET; 82 error = sysmon_pswitch_register(smpsw); 86 smpsw = NULL; 89 ahb_intr_establish(aaa->aaa_irq, IPL_HIGH, resetbtn_intr, smpsw, 96 struct sysmon_pswitch *smpsw = arg; local 98 sysmon_task_queue_sched(0, resetbtn_task, smpsw); 106 struct sysmon_pswitch *smpsw = arg; local 111 if (smpsw != NULL) [all...] |
| resetbtn.c | 68 struct sysmon_pswitch *smpsw = device_private(self); local 80 smpsw->smpsw_name = device_xname(self); 81 smpsw->smpsw_type = PSWITCH_TYPE_RESET; 82 error = sysmon_pswitch_register(smpsw); 86 smpsw = NULL; 89 ahb_intr_establish(aaa->aaa_irq, IPL_HIGH, resetbtn_intr, smpsw, 96 struct sysmon_pswitch *smpsw = arg; local 98 sysmon_task_queue_sched(0, resetbtn_task, smpsw); 106 struct sysmon_pswitch *smpsw = arg; local 111 if (smpsw != NULL) [all...] |
| /src/sys/arch/evbarm/hdl_g/ |
| btn_obio.c | 172 struct sysmon_pswitch *smpsw = (void *)arg; local 174 sysmon_pswitch_event(smpsw, PSWITCH_EVENT_PRESSED);
|
| btn_obio.c | 172 struct sysmon_pswitch *smpsw = (void *)arg; local 174 sysmon_pswitch_event(smpsw, PSWITCH_EVENT_PRESSED);
|
| /src/sys/dev/sysmon/ |
| sysmon_power.c | 702 struct sysmon_pswitch *smpsw = local 717 SETPROP("driver-name", smpsw->smpsw_name); 726 if (petype[i].type == smpsw->smpsw_type) 954 sysmon_pswitch_register(struct sysmon_pswitch *smpsw) 967 sysmon_pswitch_unregister(struct sysmon_pswitch *smpsw) 978 sysmon_pswitch_event(struct sysmon_pswitch *smpsw, int event) 982 KASSERT(smpsw != NULL); 988 if (smpsw->smpsw_type == PSWITCH_TYPE_LID) { 1010 if (sysmon_power_daemon_task(ped, smpsw, event) == 0) 1017 switch (smpsw->smpsw_type) [all...] |
| sysmon_power.c | 702 struct sysmon_pswitch *smpsw = local 717 SETPROP("driver-name", smpsw->smpsw_name); 726 if (petype[i].type == smpsw->smpsw_type) 954 sysmon_pswitch_register(struct sysmon_pswitch *smpsw) 967 sysmon_pswitch_unregister(struct sysmon_pswitch *smpsw) 978 sysmon_pswitch_event(struct sysmon_pswitch *smpsw, int event) 982 KASSERT(smpsw != NULL); 988 if (smpsw->smpsw_type == PSWITCH_TYPE_LID) { 1010 if (sysmon_power_daemon_task(ped, smpsw, event) == 0) 1017 switch (smpsw->smpsw_type) [all...] |
| /src/sys/dev/acpi/ |
| acpi.c | 1411 struct sysmon_pswitch *smpsw; local 1423 smpsw = &sc->sc_smpsw_power; 1432 smpsw = &sc->sc_smpsw_sleep; 1440 smpsw->smpsw_type = type; 1441 smpsw->smpsw_name = device_xname(sc->sc_dev); 1443 if (sysmon_pswitch_register(smpsw) != 0) { 1451 acpi_fixed_button_handler, smpsw); 1454 sysmon_pswitch_unregister(smpsw); 1471 struct sysmon_pswitch *smpsw; local 1477 smpsw = &sc->sc_smpsw_power 1517 struct sysmon_pswitch *smpsw = context; local 1527 struct sysmon_pswitch *smpsw = context; local [all...] |
| acpi.c | 1411 struct sysmon_pswitch *smpsw; local 1423 smpsw = &sc->sc_smpsw_power; 1432 smpsw = &sc->sc_smpsw_sleep; 1440 smpsw->smpsw_type = type; 1441 smpsw->smpsw_name = device_xname(sc->sc_dev); 1443 if (sysmon_pswitch_register(smpsw) != 0) { 1451 acpi_fixed_button_handler, smpsw); 1454 sysmon_pswitch_unregister(smpsw); 1471 struct sysmon_pswitch *smpsw; local 1477 smpsw = &sc->sc_smpsw_power 1517 struct sysmon_pswitch *smpsw = context; local 1527 struct sysmon_pswitch *smpsw = context; local [all...] |