Home
last modified time | relevance | path

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

/freebsd/sys/dev/quicc/
H A Dquicc_core.c137 sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->sc_irid, in quicc_bfe_attach()
140 if (sc->sc_ires != NULL) { in quicc_bfe_attach()
141 error = bus_setup_intr(dev, sc->sc_ires, in quicc_bfe_attach()
144 error = bus_setup_intr(dev, sc->sc_ires, in quicc_bfe_attach()
153 sc->sc_ires); in quicc_bfe_attach()
154 sc->sc_ires = NULL; in quicc_bfe_attach()
158 if (sc->sc_ires == NULL) in quicc_bfe_attach()
187 rle->res = sc->sc_ires; in quicc_bfe_attach()
209 bus_teardown_intr(dev, sc->sc_ires, sc->sc_icookie); in quicc_bfe_detach()
210 bus_release_resource(dev, SYS_RES_IRQ, sc->sc_irid, sc->sc_ires); in quicc_bfe_detach()
[all …]
H A Dquicc_bfe.h43 struct resource *sc_ires; /* Interrupt resource. */ member
/freebsd/sys/dev/uart/
H A Duart_core.c695 sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, in uart_bus_attach()
698 if (sc->sc_ires != NULL) { in uart_bus_attach()
699 error = bus_setup_intr(dev, sc->sc_ires, INTR_TYPE_TTY, in uart_bus_attach()
704 error = bus_setup_intr(dev, sc->sc_ires, in uart_bus_attach()
711 sc->sc_ires); in uart_bus_attach()
712 sc->sc_ires = NULL; in uart_bus_attach()
715 if (sc->sc_ires == NULL) { in uart_bus_attach()
766 if (sc->sc_ires != NULL) { in uart_bus_attach()
767 bus_teardown_intr(dev, sc->sc_ires, sc->sc_icookie); in uart_bus_attach()
769 sc->sc_ires); in uart_bus_attach()
[all …]
H A Duart_bus.h87 struct resource *sc_ires; /* Interrupt resource. */ member
/freebsd/sys/dev/puc/
H A Dpuc.c330 sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->sc_irid, in puc_bfe_attach()
332 if (sc->sc_ires != NULL) { in puc_bfe_attach()
333 error = bus_setup_intr(dev, sc->sc_ires, in puc_bfe_attach()
336 error = bus_setup_intr(dev, sc->sc_ires, in puc_bfe_attach()
345 sc->sc_ires); in puc_bfe_attach()
346 sc->sc_ires = NULL; in puc_bfe_attach()
349 if (sc->sc_ires == NULL) { in puc_bfe_attach()
371 bus_teardown_intr(dev, sc->sc_ires, sc->sc_icookie); in puc_bfe_attach()
426 bus_teardown_intr(dev, sc->sc_ires, sc->sc_icookie); in puc_bfe_detach()
427 bus_release_resource(dev, SYS_RES_IRQ, sc->sc_irid, sc->sc_ires); in puc_bfe_detach()
[all …]
H A Dpuc_bfe.h58 struct resource *sc_ires; member
/freebsd/sys/powerpc/mpc85xx/
H A Datpic.c60 struct resource *sc_ires; member
211 sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->sc_irid, in atpic_isa_attach()
213 if (sc->sc_ires == NULL) in atpic_isa_attach()
216 error = bus_setup_intr(dev, sc->sc_ires, INTR_TYPE_MISC | INTR_MPSAFE, in atpic_isa_attach()
228 if (sc->sc_ires != NULL) in atpic_isa_attach()
230 sc->sc_ires); in atpic_isa_attach()
H A Dlbc.c501 sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->sc_irid, in lbc_attach()
503 if (sc->sc_ires != NULL) { in lbc_attach()
504 error = bus_setup_intr(dev, sc->sc_ires, in lbc_attach()
510 sc->sc_ires); in lbc_attach()
511 sc->sc_ires = NULL; in lbc_attach()
H A Dlbc.h115 struct resource *sc_ires; member
/freebsd/sys/dev/dpaa/
H A Dbman.c179 sc->sc_ires = bus_alloc_resource_any(sc->sc_dev, SYS_RES_IRQ, in bman_attach()
181 if (sc->sc_ires == NULL) in bman_attach()
208 if (bus_setup_intr(dev, sc->sc_ires, INTR_TYPE_NET, NULL, bman_isr, in bman_attach()
229 bus_teardown_intr(dev, sc->sc_ires, sc->sc_icookie); in bman_detach()
230 if (sc->sc_ires != NULL) in bman_detach()
232 sc->sc_irid, sc->sc_ires); in bman_detach()
H A Dportals_common.c77 sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, 0, RF_ACTIVE); in dpaa_portal_alloc_res()
80 if (sc->sc_ires == NULL) { in dpaa_portal_alloc_res()
H A Dbman_portals.c128 bus_setup_intr(dev, sc->sc_base.sc_ires, INTR_TYPE_NET | INTR_MPSAFE, in bman_portal_attach()
130 bus_bind_intr(dev, sc->sc_base.sc_ires, cpu); in bman_portal_attach()
163 if (sc->sc_base.sc_ires != NULL) in bman_portal_detach()
164 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_base.sc_ires); in bman_portal_detach()
H A Dqman.c326 sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, in qman_attach()
328 if (sc->sc_ires == NULL) { in qman_attach()
385 if (bus_setup_intr(dev, sc->sc_ires, INTR_TYPE_NET, NULL, qman_isr, in qman_attach()
424 bus_teardown_intr(dev, sc->sc_ires, sc->sc_intr_cookie); in qman_detach()
426 if (sc->sc_ires != NULL) in qman_detach()
428 sc->sc_irid, sc->sc_ires); in qman_detach()
H A Dqman_portals.c200 bus_setup_intr(dev, sc->sc_base.sc_ires, INTR_TYPE_NET | INTR_MPSAFE, in qman_portal_attach()
202 bus_bind_intr(dev, sc->sc_base.sc_ires, cpu); in qman_portal_attach()
241 if (sc->sc_base.sc_ires != NULL) in qman_portal_detach()
242 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_base.sc_ires); in qman_portal_detach()
H A Dportals.h40 struct resource *sc_ires; /* Interrupt */ member
H A Dbman.h52 struct resource *sc_ires; /* interrupt resource */ member
H A Dqman.h76 struct resource *sc_ires; /* interrupt resource */ member