Home | History | Annotate | Download | only in acpi

Lines Matching defs:self

78 acpifan_attach(device_t parent, device_t self, void *aux)
80 struct acpifan_softc *sc = device_private(self);
86 sc->sc_dev = self;
92 if (acpifan_sensor_init(self) != true)
93 aprint_error_dev(self, "failed to initialize\n");
96 (void)pmf_device_register1(self, acpifan_suspend,
102 aprint_verbose_dev(self, "ACPI 4.0 functionality present\n");
106 acpifan_detach(device_t self, int flags)
108 struct acpifan_softc *sc = device_private(self);
112 pmf_device_deregister(self);
122 acpifan_suspend(device_t self, const pmf_qual_t *qual)
124 struct acpifan_softc *sc = device_private(self);
132 acpifan_resume(device_t self, const pmf_qual_t *qual)
134 struct acpifan_softc *sc = device_private(self);
142 acpifan_shutdown(device_t self, int how)
144 struct acpifan_softc *sc = device_private(self);
152 acpifan_sensor_init(device_t self)
154 struct acpifan_softc *sc = device_private(self);
162 acpifan_sensor_state(self);
167 sc->sc_sme->sme_cookie = self;
169 sc->sc_sme->sme_name = device_xname(self);
191 device_t self;
194 self = arg;
195 sc = device_private(self);
223 device_t self = sme->sme_cookie;
225 (void)AcpiOsExecute(OSL_NOTIFY_HANDLER, acpifan_sensor_state, self);