Home
last modified time | relevance | path

Searched refs:event_res (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/amd64/vmm/amd/
H A Damdviiommu.c44 struct resource *event_res; /* Event interrupt resource. */ member
125 if (sc->event_res != NULL) in ivhd_setup_intr()
135 sc->event_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, in ivhd_setup_intr()
137 if (sc->event_res == NULL) { in ivhd_setup_intr()
143 error = bus_setup_intr(dev, sc->event_res, INTR_TYPE_MISC | INTR_MPSAFE, in ivhd_setup_intr()
150 bus_describe_intr(dev, sc->event_res, sc->event_tag, "%s", desc); in ivhd_setup_intr()
166 bus_teardown_intr(dev, sc->event_res, sc->event_tag); in ivhd_teardown_intr()
169 if (sc->event_res != NULL) { in ivhd_teardown_intr()
171 sc->event_res); in ivhd_teardown_intr()
172 sc->event_res = NULL; in ivhd_teardown_intr()