Lines Matching refs:evts

58 	struct acpi_ged_event *evts;  member
173 sc->evts = mallocarray(sc->numevts, sizeof(*sc->evts), M_ACPIGED, in acpi_ged_attach()
176 sc->evts[i].dev = dev; in acpi_ged_attach()
177 sc->evts[i].rid = i; in acpi_ged_attach()
178 sc->evts[i].r = bus_alloc_resource_any(dev, SYS_RES_IRQ, in acpi_ged_attach()
179 &sc->evts[i].rid, RF_ACTIVE | RF_SHAREABLE); in acpi_ged_attach()
180 if (sc->evts[i].r == NULL) { in acpi_ged_attach()
187 ima = rman_get_virtual(sc->evts[i].r); in acpi_ged_attach()
191 rawirq = rman_get_start(sc->evts[i].r); in acpi_ged_attach()
194 (dev, sc->evts[i].rid, in acpi_ged_attach()
195 sc->evts[i].r, &ares))) { in acpi_ged_attach()
209 rawirq = rman_get_start(sc->evts[i].r); in acpi_ged_attach()
212 (dev, sc->evts[i].rid, in acpi_ged_attach()
213 sc->evts[i].r, &ares))) { in acpi_ged_attach()
223 name, &sc->evts[i].ah))) { in acpi_ged_attach()
224 sc->evts[i].args.Count = 0; /* ensure */ in acpi_ged_attach()
226 sc->evts[i].ah = NULL; /* ensure */ in acpi_ged_attach()
230 if (sc->evts[i].ah == NULL) { in acpi_ged_attach()
232 sc->evts[i].ah = evt_method; in acpi_ged_attach()
233 sc->evts[i].arg1.Type = ACPI_TYPE_INTEGER; in acpi_ged_attach()
234 sc->evts[i].arg1.Integer.Value = rawirq; in acpi_ged_attach()
235 sc->evts[i].args.Count = 1; in acpi_ged_attach()
236 sc->evts[i].args.Pointer = &sc->evts[i].arg1; in acpi_ged_attach()
246 if (bus_setup_intr(dev, sc->evts[i].r, in acpi_ged_attach()
248 &sc->evts[i], &sc->evts[i].cookie) != 0) { in acpi_ged_attach()
263 if (sc->evts[i].cookie) { in acpi_ged_detach()
264 bus_teardown_intr(dev, sc->evts[i].r, in acpi_ged_detach()
265 sc->evts[i].cookie); in acpi_ged_detach()
267 if (sc->evts[i].r) { in acpi_ged_detach()
268 bus_release_resource(dev, SYS_RES_IRQ, sc->evts[i].rid, in acpi_ged_detach()
269 sc->evts[i].r); in acpi_ged_detach()
272 free(sc->evts, M_ACPIGED); in acpi_ged_detach()