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

/src/sys/arch/evbppc/nintendo/dev/
H A Dresetbtn.c68 struct sysmon_pswitch *smpsw = device_private(self); local in function:resetbtn_attach
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 in function:resetbtn_intr
98 sysmon_task_queue_sched(0, resetbtn_task, smpsw);
106 struct sysmon_pswitch *smpsw = arg; local in function:resetbtn_task
111 if (smpsw !
[all...]
/src/sys/dev/sysmon/
H A Dsysmon_power.c702 struct sysmon_pswitch *smpsw = local in function:sysmon_power_make_dictionary
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...]
/src/sys/arch/evbarm/hdl_g/
H A Dbtn_obio.c172 struct sysmon_pswitch *smpsw = (void *)arg; local in function:btn_sysmon_pressed_event
174 sysmon_pswitch_event(smpsw, PSWITCH_EVENT_PRESSED);
/src/sys/dev/acpi/
H A Dacpi.c1384 struct sysmon_pswitch *smpsw; local in function:acpi_register_fixed_button
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; local in function:acpi_deregister_fixed_button
1450 smpsw
1490 struct sysmon_pswitch *smpsw = context; local in function:acpi_fixed_button_handler
1500 struct sysmon_pswitch *smpsw = context; local in function:acpi_fixed_button_pressed
[all...]

Completed in 5 milliseconds