Searched refs:smpsw (Results 1 - 4 of 4) sorted by relevance

/netbsd-current/sys/arch/evbppc/wii/dev/
H A Dresetbtn.c65 struct sysmon_pswitch *smpsw = device_private(self); local
75 smpsw->smpsw_name = device_xname(self);
76 smpsw->smpsw_type = PSWITCH_TYPE_RESET;
77 error = sysmon_pswitch_register(smpsw);
81 smpsw = NULL;
84 hollywood_intr_establish(haa->haa_irq, IPL_HIGH, resetbtn_intr, smpsw,
91 struct sysmon_pswitch *smpsw = arg; local
93 sysmon_task_queue_sched(0, resetbtn_task, smpsw);
101 struct sysmon_pswitch *smpsw = arg; local
106 if (smpsw !
[all...]
/netbsd-current/sys/dev/sysmon/
H A Dsysmon_power.c702 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) argument
967 sysmon_pswitch_unregister(struct sysmon_pswitch *smpsw) argument
978 sysmon_pswitch_event(struct sysmon_pswitch *smpsw, int event) argument
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
[all...]
/netbsd-current/sys/dev/acpi/
H A Dacpi.c1267 struct sysmon_pswitch *smpsw; local
1279 smpsw = &sc->sc_smpsw_power;
1288 smpsw = &sc->sc_smpsw_sleep;
1296 smpsw->smpsw_type = type;
1297 smpsw->smpsw_name = device_xname(sc->sc_dev);
1299 if (sysmon_pswitch_register(smpsw) != 0) {
1307 acpi_fixed_button_handler, smpsw);
1310 sysmon_pswitch_unregister(smpsw);
1327 struct sysmon_pswitch *smpsw; local
1333 smpsw
1373 struct sysmon_pswitch *smpsw = context; local
1383 struct sysmon_pswitch *smpsw = context; local
[all...]
/netbsd-current/sys/arch/evbarm/hdl_g/
H A Dbtn_obio.c172 struct sysmon_pswitch *smpsw = (void *)arg; local
174 sysmon_pswitch_event(smpsw, PSWITCH_EVENT_PRESSED);

Completed in 189 milliseconds