Lines Matching full:scp
52 xenpci_irq_init(device_t device, struct xenpci_softc *scp) in xenpci_irq_init() argument
57 scp->res_irq, INTR_MPSAFE|INTR_TYPE_MISC, in xenpci_irq_init()
59 &scp->intr_cookie); in xenpci_irq_init()
72 scp->res_irq, 0); in xenpci_irq_init()
87 struct xenpci_softc *scp = device_get_softc(dev); in xenpci_deallocate_resources() local
89 if (scp->res_irq != 0) { in xenpci_deallocate_resources()
91 scp->rid_irq, scp->res_irq); in xenpci_deallocate_resources()
93 scp->rid_irq, scp->res_irq); in xenpci_deallocate_resources()
94 scp->res_irq = 0; in xenpci_deallocate_resources()
106 struct xenpci_softc *scp = device_get_softc(dev); in xenpci_allocate_resources() local
108 scp->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, in xenpci_allocate_resources()
109 &scp->rid_irq, RF_SHAREABLE|RF_ACTIVE); in xenpci_allocate_resources()
110 if (scp->res_irq == NULL) { in xenpci_allocate_resources()
144 struct xenpci_softc *scp = device_get_softc(dev); in xenpci_attach() local
157 error = xenpci_irq_init(dev, scp); in xenpci_attach()
180 struct xenpci_softc *scp = device_get_softc(dev); in xenpci_detach() local
187 if (scp->intr_cookie != NULL) { in xenpci_detach()
189 scp->res_irq, scp->intr_cookie) != 0) in xenpci_detach()
192 scp->intr_cookie = NULL; in xenpci_detach()