Lines Matching full:psc
164 struct ath_pci_softc *psc = device_get_softc(dev); in ath_pci_attach() local
165 struct ath_softc *sc = &psc->sc_sc; in ath_pci_attach()
195 psc->sc_sr = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in ath_pci_attach()
197 if (psc->sc_sr == NULL) { in ath_pci_attach()
201 sc->sc_st = (HAL_BUS_TAG) rman_get_bustag(psc->sc_sr); in ath_pci_attach()
202 sc->sc_sh = (HAL_BUS_HANDLE) rman_get_bushandle(psc->sc_sr); in ath_pci_attach()
219 psc->sc_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in ath_pci_attach()
221 if (psc->sc_irq == NULL) { in ath_pci_attach()
225 if (bus_setup_intr(dev, psc->sc_irq, in ath_pci_attach()
227 NULL, ath_intr, sc, &psc->sc_ih)) { in ath_pci_attach()
286 bus_teardown_intr(dev, psc->sc_irq, psc->sc_ih); in ath_pci_attach()
288 bus_release_resource(dev, SYS_RES_IRQ, 0, psc->sc_irq); in ath_pci_attach()
290 bus_release_resource(dev, SYS_RES_MEMORY, BS_BAR, psc->sc_sr); in ath_pci_attach()
305 struct ath_pci_softc *psc = device_get_softc(dev); in ath_pci_detach() local
306 struct ath_softc *sc = &psc->sc_sc; in ath_pci_detach()
319 bus_teardown_intr(dev, psc->sc_irq, psc->sc_ih); in ath_pci_detach()
320 bus_release_resource(dev, SYS_RES_IRQ, 0, psc->sc_irq); in ath_pci_detach()
323 bus_release_resource(dev, SYS_RES_MEMORY, BS_BAR, psc->sc_sr); in ath_pci_detach()
340 struct ath_pci_softc *psc = device_get_softc(dev); in ath_pci_shutdown() local
342 ath_shutdown(&psc->sc_sc); in ath_pci_shutdown()
349 struct ath_pci_softc *psc = device_get_softc(dev); in ath_pci_suspend() local
351 ath_suspend(&psc->sc_sc); in ath_pci_suspend()
359 struct ath_pci_softc *psc = device_get_softc(dev); in ath_pci_resume() local
366 ath_resume(&psc->sc_sc); in ath_pci_resume()