Lines Matching full:psc

199 	struct ral_pci_softc *psc = device_get_softc(dev);  in ral_pci_attach()  local
200 struct rt2560_softc *sc = &psc->u.sc_rt2560; in ral_pci_attach()
207 psc->sc_opns = &ral_rt2560_opns; in ral_pci_attach()
212 psc->sc_opns = &ral_rt2661_opns; in ral_pci_attach()
215 psc->sc_opns = &ral_rt2860_opns; in ral_pci_attach()
220 psc->mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in ral_pci_attach()
222 if (psc->mem == NULL) { in ral_pci_attach()
227 sc->sc_st = rman_get_bustag(psc->mem); in ral_pci_attach()
228 sc->sc_sh = rman_get_bushandle(psc->mem); in ral_pci_attach()
237 psc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE | in ral_pci_attach()
239 if (psc->irq == NULL) { in ral_pci_attach()
243 rman_get_rid(psc->mem), psc->mem); in ral_pci_attach()
247 error = (*psc->sc_opns->attach)(dev, pci_get_device(dev)); in ral_pci_attach()
256 error = bus_setup_intr(dev, psc->irq, INTR_TYPE_NET | INTR_MPSAFE, in ral_pci_attach()
257 NULL, psc->sc_opns->intr, psc, &psc->sc_ih); in ral_pci_attach()
271 struct ral_pci_softc *psc = device_get_softc(dev); in ral_pci_detach() local
272 struct rt2560_softc *sc = &psc->u.sc_rt2560; in ral_pci_detach()
277 if (psc->sc_ih != NULL) in ral_pci_detach()
278 bus_teardown_intr(dev, psc->irq, psc->sc_ih); in ral_pci_detach()
279 (*psc->sc_opns->detach)(psc); in ral_pci_detach()
282 bus_release_resource(dev, SYS_RES_IRQ, rman_get_rid(psc->irq), in ral_pci_detach()
283 psc->irq); in ral_pci_detach()
286 bus_release_resource(dev, SYS_RES_MEMORY, rman_get_rid(psc->mem), in ral_pci_detach()
287 psc->mem); in ral_pci_detach()
295 struct ral_pci_softc *psc = device_get_softc(dev); in ral_pci_shutdown() local
297 (*psc->sc_opns->shutdown)(psc); in ral_pci_shutdown()
305 struct ral_pci_softc *psc = device_get_softc(dev); in ral_pci_suspend() local
307 (*psc->sc_opns->suspend)(psc); in ral_pci_suspend()
315 struct ral_pci_softc *psc = device_get_softc(dev); in ral_pci_resume() local
317 (*psc->sc_opns->resume)(psc); in ral_pci_resume()