Lines Matching full:scp
53 xenpci_irq_init(device_t device, struct xenpci_softc *scp) in xenpci_irq_init() argument
58 scp->res_irq, INTR_MPSAFE|INTR_TYPE_MISC, in xenpci_irq_init()
60 &scp->intr_cookie); in xenpci_irq_init()
73 scp->res_irq, 0); in xenpci_irq_init()
88 struct xenpci_softc *scp = device_get_softc(dev); in xenpci_deallocate_resources() local
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()
107 struct xenpci_softc *scp = device_get_softc(dev); in xenpci_allocate_resources() local
109 scp->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, in xenpci_allocate_resources()
110 &scp->rid_irq, RF_SHAREABLE|RF_ACTIVE); in xenpci_allocate_resources()
111 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()