Lines Matching full:psc

153 	struct malo_pci_softc *psc = device_get_softc(dev);  in malo_pci_attach()  local
154 struct malo_softc *sc = &psc->malo_sc; in malo_pci_attach()
163 psc->malo_mem_spec = malo_res_spec_mem; in malo_pci_attach()
164 error = bus_alloc_resources(dev, psc->malo_mem_spec, psc->malo_res_mem); in malo_pci_attach()
182 psc->malo_irq_spec = malo_res_spec_legacy; in malo_pci_attach()
188 psc->malo_irq_spec = malo_res_spec_msi; in malo_pci_attach()
189 psc->malo_msi = 1; in malo_pci_attach()
195 error = bus_alloc_resources(dev, psc->malo_irq_spec, psc->malo_res_irq); in malo_pci_attach()
201 if (psc->malo_msi == 0) in malo_pci_attach()
202 error = bus_setup_intr(dev, psc->malo_res_irq[0], in malo_pci_attach()
204 &psc->malo_intrhand[0]); in malo_pci_attach()
207 error = bus_setup_intr(dev, psc->malo_res_irq[i], in malo_pci_attach()
209 &psc->malo_intrhand[i]); in malo_pci_attach()
234 sc->malo_io0t = rman_get_bustag(psc->malo_res_mem[0]); in malo_pci_attach()
235 sc->malo_io0h = rman_get_bushandle(psc->malo_res_mem[0]); in malo_pci_attach()
236 sc->malo_io1t = rman_get_bustag(psc->malo_res_mem[1]); in malo_pci_attach()
237 sc->malo_io1h = rman_get_bushandle(psc->malo_res_mem[1]); in malo_pci_attach()
249 if (psc->malo_msi == 0) in malo_pci_attach()
250 bus_teardown_intr(dev, psc->malo_res_irq[0], in malo_pci_attach()
251 psc->malo_intrhand[0]); in malo_pci_attach()
254 bus_teardown_intr(dev, psc->malo_res_irq[i], in malo_pci_attach()
255 psc->malo_intrhand[i]); in malo_pci_attach()
257 bus_release_resources(dev, psc->malo_irq_spec, psc->malo_res_irq); in malo_pci_attach()
259 if (psc->malo_msi != 0) in malo_pci_attach()
261 bus_release_resources(dev, psc->malo_mem_spec, psc->malo_res_mem); in malo_pci_attach()
270 struct malo_pci_softc *psc = device_get_softc(dev); in malo_pci_detach() local
271 struct malo_softc *sc = &psc->malo_sc; in malo_pci_detach()
280 if (psc->malo_msi == 0) in malo_pci_detach()
281 bus_teardown_intr(dev, psc->malo_res_irq[0], in malo_pci_detach()
282 psc->malo_intrhand[0]); in malo_pci_detach()
285 bus_teardown_intr(dev, psc->malo_res_irq[i], in malo_pci_detach()
286 psc->malo_intrhand[i]); in malo_pci_detach()
291 bus_release_resources(dev, psc->malo_irq_spec, psc->malo_res_irq); in malo_pci_detach()
293 bus_release_resources(dev, psc->malo_mem_spec, psc->malo_res_mem); in malo_pci_detach()
301 struct malo_pci_softc *psc = device_get_softc(dev); in malo_pci_shutdown() local
303 malo_shutdown(&psc->malo_sc); in malo_pci_shutdown()
311 struct malo_pci_softc *psc = device_get_softc(dev); in malo_pci_suspend() local
313 malo_suspend(&psc->malo_sc); in malo_pci_suspend()
321 struct malo_pci_softc *psc = device_get_softc(dev); in malo_pci_resume() local
323 malo_resume(&psc->malo_sc); in malo_pci_resume()