Lines Matching refs:psc

136 	struct ath_ahb_softc *psc = device_get_softc(dev);  in ath_ahb_attach()  local
137 struct ath_softc *sc = &psc->sc_sc; in ath_ahb_attach()
149 psc->sc_sr = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in ath_ahb_attach()
150 if (psc->sc_sr == NULL) { in ath_ahb_attach()
155 sc->sc_st = (HAL_BUS_TAG) rman_get_bustag(psc->sc_sr); in ath_ahb_attach()
156 sc->sc_sh = (HAL_BUS_HANDLE) rman_get_bushandle(psc->sc_sr); in ath_ahb_attach()
197 psc->sc_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE|RF_ACTIVE); in ath_ahb_attach()
198 if (psc->sc_irq == NULL) { in ath_ahb_attach()
202 if (bus_setup_intr(dev, psc->sc_irq, in ath_ahb_attach()
204 NULL, ath_ahb_intr, sc, &psc->sc_ih)) { in ath_ahb_attach()
258 bus_teardown_intr(dev, psc->sc_irq, psc->sc_ih); in ath_ahb_attach()
260 bus_release_resource(dev, SYS_RES_IRQ, 0, psc->sc_irq); in ath_ahb_attach()
262 bus_release_resource(dev, SYS_RES_MEMORY, 0, psc->sc_sr); in ath_ahb_attach()
273 struct ath_ahb_softc *psc = device_get_softc(dev); in ath_ahb_detach() local
274 struct ath_softc *sc = &psc->sc_sc; in ath_ahb_detach()
282 bus_teardown_intr(dev, psc->sc_irq, psc->sc_ih); in ath_ahb_detach()
283 bus_release_resource(dev, SYS_RES_IRQ, 0, psc->sc_irq); in ath_ahb_detach()
286 bus_release_resource(dev, SYS_RES_MEMORY, 0, psc->sc_sr); in ath_ahb_detach()
303 struct ath_ahb_softc *psc = device_get_softc(dev); in ath_ahb_shutdown() local
305 ath_shutdown(&psc->sc_sc); in ath_ahb_shutdown()
312 struct ath_ahb_softc *psc = device_get_softc(dev); in ath_ahb_suspend() local
314 ath_suspend(&psc->sc_sc); in ath_ahb_suspend()
322 struct ath_ahb_softc *psc = device_get_softc(dev); in ath_ahb_resume() local
324 ath_resume(&psc->sc_sc); in ath_ahb_resume()