/freebsd/sys/dev/usb/controller/ |
H A D | generic_xhci.c | 94 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in generic_xhci_attach() 96 if (sc->sc_irq_res == NULL) { in generic_xhci_attach() 114 err = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in generic_xhci_attach() 157 if (sc->sc_irq_res != NULL && sc->sc_intr_hdl != NULL) { in generic_xhci_detach() 158 err = bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_intr_hdl); in generic_xhci_detach() 165 if (sc->sc_irq_res != NULL) { in generic_xhci_detach() 167 rman_get_rid(sc->sc_irq_res), sc->sc_irq_res); in generic_xhci_detach() 168 sc->sc_irq_res = NULL; in generic_xhci_detach()
|
H A D | xhci_pci.c | 385 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid, in xhci_pci_attach() 387 if (sc->sc_irq_res == NULL) { in xhci_pci_attach() 421 if (sc->sc_irq_res != NULL && xhci_use_polling() == 0) { in xhci_pci_attach() 422 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in xhci_pci_attach() 426 rman_get_rid(sc->sc_irq_res), sc->sc_irq_res); in xhci_pci_attach() 427 sc->sc_irq_res = NULL; in xhci_pci_attach() 433 if (sc->sc_irq_res == NULL || sc->sc_intr_hdl == NULL) { in xhci_pci_attach() 478 if (sc->sc_irq_res && sc->sc_intr_hdl) { in xhci_pci_detach() 479 bus_teardown_intr(self, sc->sc_irq_res, s in xhci_pci_detach() [all...] |
H A D | dwc_otg_acpi.c | 107 sc->sc_irq_res = in dwc_otg_attach() 109 if (sc->sc_irq_res == NULL) in dwc_otg_attach() 134 if (sc->sc_irq_res && sc->sc_intr_hdl) { in dwc_otg_detach() 140 bus_teardown_intr(dev, sc->sc_irq_res, in dwc_otg_detach() 145 if (sc->sc_irq_res) { in dwc_otg_detach() 147 sc->sc_irq_res); in dwc_otg_detach() 148 sc->sc_irq_res = NULL; in dwc_otg_detach()
|
H A D | generic_ehci.c | 97 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid, in generic_ehci_attach() 99 if (sc->sc_irq_res == NULL) { in generic_ehci_attach() 112 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in generic_ehci_attach() 144 if (sc->sc_irq_res && sc->sc_intr_hdl) { in generic_ehci_detach() 150 err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl); in generic_ehci_detach() 159 if (sc->sc_irq_res) { in generic_ehci_detach() 160 bus_release_resource(self, SYS_RES_IRQ, 0, sc->sc_irq_res); in generic_ehci_detach() 161 sc->sc_irq_res = NULL; in generic_ehci_detach()
|
H A D | dwc_otg_fdt.c | 138 sc->sc_otg.sc_irq_res = in dwc_otg_attach() 140 if (sc->sc_otg.sc_irq_res == NULL) in dwc_otg_attach() 169 if (sc->sc_otg.sc_irq_res && sc->sc_otg.sc_intr_hdl) { in dwc_otg_detach() 175 bus_teardown_intr(dev, sc->sc_otg.sc_irq_res, in dwc_otg_detach() 180 if (sc->sc_otg.sc_irq_res) { in dwc_otg_detach() 182 sc->sc_otg.sc_irq_res); in dwc_otg_detach() 183 sc->sc_otg.sc_irq_res = NULL; in dwc_otg_detach()
|
H A D | ohci_pci.c | 237 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid, in ohci_pci_attach() 239 if (sc->sc_irq_res == NULL) { in ohci_pci_attach() 297 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in ohci_pci_attach() 329 if (sc->sc_irq_res && sc->sc_intr_hdl) { in ohci_pci_detach() 335 int err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl); in ohci_pci_detach() 344 if (sc->sc_irq_res) { in ohci_pci_detach() 345 bus_release_resource(self, SYS_RES_IRQ, 0, sc->sc_irq_res); in ohci_pci_detach() 346 sc->sc_irq_res = NULL; in ohci_pci_detach()
|
H A D | uhci_pci.c | 320 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid, in uhci_pci_attach() 322 if (sc->sc_irq_res == NULL) { in uhci_pci_attach() 376 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in uhci_pci_attach() 435 if (sc->sc_irq_res && sc->sc_intr_hdl) { in uhci_pci_detach() 436 int err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl); in uhci_pci_detach() 445 if (sc->sc_irq_res) { in uhci_pci_detach() 446 bus_release_resource(self, SYS_RES_IRQ, 0, sc->sc_irq_res); in uhci_pci_detach() 447 sc->sc_irq_res = NULL; in uhci_pci_detach()
|
H A D | ehci_mv.c | 209 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid, in mv_ehci_attach() 211 if (sc->sc_irq_res == NULL) { in mv_ehci_attach() 240 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in mv_ehci_attach() 294 if (sc->sc_irq_res && sc->sc_intr_hdl) { in mv_ehci_detach() 300 err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl); in mv_ehci_detach() 320 if (sc->sc_irq_res) { in mv_ehci_detach() 321 bus_release_resource(self, SYS_RES_IRQ, 1, sc->sc_irq_res); in mv_ehci_detach() 322 sc->sc_irq_res = NULL; in mv_ehci_detach()
|
H A D | ehci_fsl.c | 281 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid, in fsl_ehci_attach() 283 if (sc->sc_irq_res == NULL) { in fsl_ehci_attach() 294 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in fsl_ehci_attach() 392 if (sc->sc_irq_res && sc->sc_intr_hdl) { in fsl_ehci_detach() 393 err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl); in fsl_ehci_detach() 410 if (sc->sc_irq_res) { in fsl_ehci_detach() 411 bus_release_resource(self, SYS_RES_IRQ, 0, sc->sc_irq_res); in fsl_ehci_detach() 412 sc->sc_irq_res = NULL; in fsl_ehci_detach()
|
H A D | ehci_pci.c | 357 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid, in ehci_pci_attach() 359 if (sc->sc_irq_res == NULL) { in ehci_pci_attach() 429 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in ehci_pci_attach() 514 if (sc->sc_irq_res && sc->sc_intr_hdl) { in ehci_pci_detach() 520 int err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl); in ehci_pci_detach() 528 if (sc->sc_irq_res) { in ehci_pci_detach() 529 bus_release_resource(self, SYS_RES_IRQ, 0, sc->sc_irq_res); in ehci_pci_detach() 530 sc->sc_irq_res = NULL; in ehci_pci_detach()
|
H A D | generic_ohci.c | 138 sc->ohci_sc.sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in generic_ohci_attach() 140 if (sc->ohci_sc.sc_irq_res == 0) { in generic_ohci_attach() 154 err = bus_setup_intr(dev, sc->ohci_sc.sc_irq_res, in generic_ohci_attach() 248 if (sc->ohci_sc.sc_irq_res && sc->ohci_sc.sc_intr_hdl) { in generic_ohci_detach() 254 err = bus_teardown_intr(dev, sc->ohci_sc.sc_irq_res, in generic_ohci_detach() 258 if (sc->ohci_sc.sc_irq_res) { in generic_ohci_detach() 260 sc->ohci_sc.sc_irq_res); in generic_ohci_detach() 261 sc->ohci_sc.sc_irq_res = NULL; in generic_ohci_detach()
|
H A D | ehci_msm.c | 182 if (sc->sc_irq_res && sc->sc_intr_hdl) { in ehci_msm_detach() 186 err = bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_intr_hdl); in ehci_msm_detach() 193 if (sc->sc_irq_res) { in ehci_msm_detach() 194 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq_res); in ehci_msm_detach() 195 sc->sc_irq_res = NULL; in ehci_msm_detach()
|
/freebsd/sys/arm/ti/ |
H A D | ti_mbox.c | 74 struct resource *sc_irq_res; member 154 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in ti_mbox_attach() 156 if (sc->sc_irq_res == NULL) { in ti_mbox_attach() 161 if (bus_setup_intr(dev, sc->sc_irq_res, INTR_MPSAFE | INTR_TYPE_MISC, in ti_mbox_attach() 210 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_intr); in ti_mbox_detach() 211 if (sc->sc_irq_res) in ti_mbox_detach() 212 bus_release_resource(dev, SYS_RES_IRQ, rman_get_rid(sc->sc_irq_res), in ti_mbox_detach() 213 sc->sc_irq_res); in ti_mbox_detach()
|
H A D | ti_wdt.c | 69 struct resource *sc_irq_res; member 170 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in ti_wdt_attach() 171 if (sc->sc_irq_res == NULL) { in ti_wdt_attach() 176 if (bus_setup_intr(dev, sc->sc_irq_res, INTR_MPSAFE | INTR_TYPE_MISC, in ti_wdt_attach() 208 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_intr); in ti_wdt_detach() 209 if (sc->sc_irq_res) in ti_wdt_detach() 211 rman_get_rid(sc->sc_irq_res), sc->sc_irq_res); in ti_wdt_detach()
|
/freebsd/sys/dev/dwwdt/ |
H A D | dwwdt.c | 74 struct resource *sc_irq_res; member 258 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, in dwwdt_attach() 260 if (sc->sc_irq_res == NULL) { in dwwdt_attach() 266 if (bus_setup_intr(dev, sc->sc_irq_res, INTR_MPSAFE | INTR_TYPE_MISC, in dwwdt_attach() 298 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_intr_cookie); in dwwdt_attach() 300 bus_release_resource(dev, SYS_RES_IRQ, sc->sc_irq_rid, sc->sc_irq_res); in dwwdt_attach() 333 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_intr_cookie); in dwwdt_detach() 335 if (sc->sc_irq_res) { in dwwdt_detach() 337 sc->sc_irq_res); in dwwdt_detach()
|
/freebsd/sys/dev/bwi/ |
H A D | if_bwi_pci.c | 157 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, in bwi_pci_attach() 160 if (sc->sc_irq_res == NULL) { in bwi_pci_attach() 174 if (bus_setup_intr(dev, sc->sc_irq_res, in bwi_pci_attach() 183 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq_res); in bwi_pci_attach() 202 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_irq_handle); in bwi_pci_detach() 203 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq_res); in bwi_pci_detach()
|
/freebsd/sys/dev/gpio/ |
H A D | chvgpio.c | 96 struct resource *sc_irq_res; member 415 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, in chvgpio_attach() 418 if (!sc->sc_irq_res) { in chvgpio_attach() 426 error = bus_setup_intr(sc->sc_dev, sc->sc_irq_res, INTR_TYPE_MISC | INTR_MPSAFE, in chvgpio_attach() 436 sc->sc_irq_rid, sc->sc_irq_res); in chvgpio_attach() 450 sc->sc_irq_rid, sc->sc_irq_res); in chvgpio_attach() 482 bus_teardown_intr(sc->sc_dev, sc->sc_irq_res, sc->intr_handle); in chvgpio_detach() 483 if (sc->sc_irq_res != NULL) in chvgpio_detach() 484 bus_release_resource(dev, SYS_RES_IRQ, sc->sc_irq_rid, sc->sc_irq_res); in chvgpio_detach()
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_espi.c | 119 struct resource *sc_irq_res; member 168 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in fsl_espi_attach() 170 if (!sc->sc_irq_res) { in fsl_espi_attach() 177 if (bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_MISC | INTR_MPSAFE, in fsl_espi_attach() 179 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq_res); in fsl_espi_attach() 215 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_intrhand); in fsl_espi_detach() 216 if (sc->sc_irq_res) in fsl_espi_detach() 217 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq_res); in fsl_espi_detach()
|
/freebsd/sys/dev/atopcase/ |
H A D | atopcase_acpi.c | 271 sc->sc_irq_res = bus_alloc_resource_any(sc->sc_dev, in atopcase_acpi_attach() 273 if (sc->sc_irq_res != NULL) { in atopcase_acpi_attach() 274 if (bus_setup_intr(dev, sc->sc_irq_res, in atopcase_acpi_attach() 291 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_irq_ih); in atopcase_acpi_attach() 351 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_irq_ih); in atopcase_acpi_detach() 352 if (sc->sc_irq_res != NULL) in atopcase_acpi_detach() 354 sc->sc_irq_rid, sc->sc_irq_res); in atopcase_acpi_detach()
|
/freebsd/sys/dev/intel/ |
H A D | spi.c | 514 sc->sc_irq_res = bus_alloc_resource_any(sc->sc_dev, in intelspi_attach() 516 if (sc->sc_irq_res == NULL) { in intelspi_attach() 522 if (bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_MISC | INTR_MPSAFE, in intelspi_attach() 541 if (sc->sc_irq_res != NULL) in intelspi_attach() 543 sc->sc_irq_rid, sc->sc_irq_res); in intelspi_attach() 558 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_irq_ih); in intelspi_detach() 564 if (sc->sc_irq_res != NULL) in intelspi_detach() 566 sc->sc_irq_rid, sc->sc_irq_res); in intelspi_detach()
|
/freebsd/sys/powerpc/ps3/ |
H A D | ohci_ps3.c | 107 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in ohci_ps3_attach() 110 if (sc->sc_irq_res == NULL) { in ohci_ps3_attach() 125 err = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in ohci_ps3_attach()
|
H A D | ehci_ps3.c | 117 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in ehci_ps3_attach() 120 if (sc->sc_irq_res == NULL) { in ehci_ps3_attach() 135 err = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, in ehci_ps3_attach()
|
/freebsd/sys/arm/ti/am335x/ |
H A D | am335x_rtc.c | 61 struct resource *sc_irq_res[RTC_MAXIRQS]; member 103 if (bus_alloc_resources(dev, am335x_rtc_irq_spec, sc->sc_irq_res) != 0) { in am335x_rtc_attach() 138 if (sc->sc_irq_res[0] != NULL) in am335x_rtc_detach() 139 bus_release_resources(dev, am335x_rtc_irq_spec, sc->sc_irq_res); in am335x_rtc_detach()
|
H A D | am335x_pmic.c | 61 struct resource *sc_irq_res; member 270 if (sc->sc_irq_res != NULL) { in am335x_pmic_start() 271 rv = bus_setup_intr(dev, sc->sc_irq_res, in am335x_pmic_start() 289 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in am335x_pmic_attach() 291 if (!sc->sc_irq_res) { in am335x_pmic_attach()
|
/freebsd/sys/dev/qcom_qup/ |
H A D | qcom_spi.c | 310 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in qcom_spi_attach() 312 if (!sc->sc_irq_res) { in qcom_spi_attach() 318 ret = bus_setup_intr(dev, sc->sc_irq_res, in qcom_spi_attach() 435 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_irq_h); in qcom_spi_attach() 438 if (sc->sc_irq_res) in qcom_spi_attach() 439 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq_res); in qcom_spi_attach() 846 bus_teardown_intr(dev, sc->sc_irq_res, sc->sc_irq_h); in qcom_spi_detach() 864 if (sc->sc_irq_res) in qcom_spi_detach() 865 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq_res); in qcom_spi_detach()
|