/freebsd/sys/dev/xen/xenpci/ |
H A D | xenpci.c | 58 scp->res_irq, INTR_MPSAFE|INTR_TYPE_MISC, in xenpci_irq_init() 73 scp->res_irq, 0); in xenpci_irq_init() 90 if (scp->res_irq != 0) { in xenpci_deallocate_resources() 92 scp->rid_irq, scp->res_irq); in xenpci_deallocate_resources() 94 scp->rid_irq, scp->res_irq); in xenpci_deallocate_resources() 95 scp->res_irq = 0; in xenpci_deallocate_resources() 109 scp->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, in xenpci_allocate_resources() 111 if (scp->res_irq == NULL) { in xenpci_allocate_resources() 189 scp->res_irq, scp->intr_cookie) != 0) in xenpci_detach()
|
H A D | xenpcivar.h | 35 struct resource* res_irq; /* Resource for irq range. */ member
|
/freebsd/sys/dev/pcf/ |
H A D | pcf_isa.c | 142 sc->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->rid_irq, in pcf_isa_attach() 144 if (sc->res_irq == 0) { in pcf_isa_attach() 153 if (sc->res_irq) { in pcf_isa_attach() 154 rv = bus_setup_intr(dev, sc->res_irq, in pcf_isa_attach() 172 if (sc->res_irq != 0) { in pcf_isa_attach() 174 sc->res_irq); in pcf_isa_attach() 198 if (sc->res_irq != 0) { in pcf_isa_detach() 199 bus_teardown_intr(dev, sc->res_irq, sc->intr_cookie); in pcf_isa_detach() 200 bus_release_resource(dev, SYS_RES_IRQ, sc->rid_irq, sc->res_irq); in pcf_isa_detach()
|
H A D | pcfvar.h | 75 struct resource *res_irq; member
|
/freebsd/sys/arm64/qoriq/ |
H A D | qoriq_gpio_pic.c | 61 struct resource *res_irq; member 351 sc->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in qoriq_gpio_pic_attach() 353 if (sc->res_irq == NULL) { in qoriq_gpio_pic_attach() 359 error = bus_setup_intr(dev, sc->res_irq, INTR_TYPE_MISC | INTR_MPSAFE, in qoriq_gpio_pic_attach() 399 bus_teardown_intr(dev, sc->res_irq, sc->irq_cookie); in qoriq_gpio_pic_detach() 401 if (sc->res_irq != NULL) in qoriq_gpio_pic_detach() 403 rman_get_rid(sc->res_irq), sc->res_irq); in qoriq_gpio_pic_detach()
|
/freebsd/sys/dev/ppbus/ |
H A D | if_plip.c | 156 struct resource *res_irq; member 244 lp->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in lp_attach() 246 if (lp->res_irq == NULL) { in lp_attach() 267 error = bus_setup_intr(dev, lp->res_irq, INTR_TYPE_NET | INTR_MPSAFE, in lp_attach() 272 bus_release_resource(dev, SYS_RES_IRQ, 0, lp->res_irq); in lp_attach() 291 bus_teardown_intr(dev, sc->res_irq, sc->sc_intr_cookie); in lp_detach() 292 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->res_irq); in lp_detach()
|
/freebsd/sys/dev/ppc/ |
H A D | ppc.c | 1728 ppc->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, in ppc_probe() 1736 if (ppc->res_irq) in ppc_probe() 1737 ppc->ppc_irq = rman_get_start(ppc->res_irq); in ppc_probe() 1758 if (ppc->res_irq != 0) { in ppc_probe() 1760 ppc->res_irq); in ppc_probe() 1790 if (ppc->res_irq) { in ppc_attach() 1792 error = bus_setup_intr(dev, ppc->res_irq, INTR_TYPE_TTY | in ppc_attach() 1819 if (ppc->res_irq == 0) { in ppc_detach() 1826 if (ppc->res_irq != 0) { in ppc_detach() 1827 bus_teardown_intr(dev, ppc->res_irq, pp in ppc_detach() [all...] |
H A D | ppcreg.h | 110 struct resource *res_irq, *res_drq, *res_ioport; member
|
/freebsd/share/examples/drivers/ |
H A D | make_device_driver.sh | 717 scp->res_irq, scp->intr_cookie) != 0) 742 scp->res_irq = bus_alloc_resource(device, SYS_RES_IRQ, 744 if (scp->res_irq == NULL) 770 if (scp->res_irq != 0) { 772 scp->rid_irq, scp->res_irq); 774 scp->rid_irq, scp->res_irq); 775 scp->res_irq = 0;
|
/freebsd/sys/dev/fdc/ |
H A D | fdc_isa.c | 134 fdc->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &fdc->rid_irq, in fdc_isa_alloc_resources() 136 if (fdc->res_irq == NULL) { in fdc_isa_alloc_resources()
|
H A D | fdcvar.h | 57 struct resource *res_irq, *res_drq; member
|
H A D | fdc.c | 1596 bus_teardown_intr(dev, fdc->res_irq, fdc->fdc_intr); in fdc_release_resources() 1598 if (fdc->res_irq != NULL) in fdc_release_resources() 1600 fdc->res_irq); in fdc_release_resources() 1601 fdc->res_irq = NULL; in fdc_release_resources() 1735 bus_teardown_intr(dev, fdc->res_irq, fdc->fdc_intr); in fdc_detach() 1794 error = bus_setup_intr(dev, fdc->res_irq, in fdc_attach()
|