Lines Matching full:psc
126 struct mwl_pci_softc *psc = device_get_softc(dev); in mwl_pci_attach() local
127 struct mwl_softc *sc = &psc->sc_sc; in mwl_pci_attach()
138 psc->sc_sr0 = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in mwl_pci_attach()
140 if (psc->sc_sr0 == NULL) { in mwl_pci_attach()
145 psc->sc_sr1 = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in mwl_pci_attach()
147 if (psc->sc_sr1 == NULL) { in mwl_pci_attach()
157 psc->sc_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in mwl_pci_attach()
159 if (psc->sc_irq == NULL) { in mwl_pci_attach()
163 if (bus_setup_intr(dev, psc->sc_irq, in mwl_pci_attach()
165 NULL, mwl_intr, sc, &psc->sc_ih)) { in mwl_pci_attach()
193 sc->sc_io0t = rman_get_bustag(psc->sc_sr0); in mwl_pci_attach()
194 sc->sc_io0h = rman_get_bushandle(psc->sc_sr0); in mwl_pci_attach()
195 sc->sc_io1t = rman_get_bustag(psc->sc_sr1); in mwl_pci_attach()
196 sc->sc_io1h = rman_get_bushandle(psc->sc_sr1); in mwl_pci_attach()
203 bus_teardown_intr(dev, psc->sc_irq, psc->sc_ih); in mwl_pci_attach()
205 bus_release_resource(dev, SYS_RES_IRQ, 0, psc->sc_irq); in mwl_pci_attach()
207 bus_release_resource(dev, SYS_RES_MEMORY, BS_BAR1, psc->sc_sr1); in mwl_pci_attach()
209 bus_release_resource(dev, SYS_RES_MEMORY, BS_BAR0, psc->sc_sr0); in mwl_pci_attach()
217 struct mwl_pci_softc *psc = device_get_softc(dev); in mwl_pci_detach() local
218 struct mwl_softc *sc = &psc->sc_sc; in mwl_pci_detach()
226 bus_teardown_intr(dev, psc->sc_irq, psc->sc_ih); in mwl_pci_detach()
227 bus_release_resource(dev, SYS_RES_IRQ, 0, psc->sc_irq); in mwl_pci_detach()
230 bus_release_resource(dev, SYS_RES_MEMORY, BS_BAR1, psc->sc_sr1); in mwl_pci_detach()
231 bus_release_resource(dev, SYS_RES_MEMORY, BS_BAR0, psc->sc_sr0); in mwl_pci_detach()
241 struct mwl_pci_softc *psc = device_get_softc(dev); in mwl_pci_shutdown() local
243 mwl_shutdown(&psc->sc_sc); in mwl_pci_shutdown()
250 struct mwl_pci_softc *psc = device_get_softc(dev); in mwl_pci_suspend() local
252 mwl_suspend(&psc->sc_sc); in mwl_pci_suspend()
260 struct mwl_pci_softc *psc = device_get_softc(dev); in mwl_pci_resume() local
264 mwl_resume(&psc->sc_sc); in mwl_pci_resume()