Lines Matching refs:psc
153 struct ath_pci_softc *psc = device_private(self);
154 struct ath_softc *sc = &psc->sc_sc;
164 psc->sc_pc = pc;
165 psc->sc_tag = pa->pa_tag;
170 if (!ath_pci_setup(psc))
183 if (pci_mapreg_map(pa, ATH_PCI_MMBA, mem_type, 0, &psc->sc_iot,
184 &psc->sc_ioh, NULL, &psc->sc_mapsz) != 0) {
189 sc->sc_st = HALTAG(psc->sc_iot);
190 sc->sc_sh = HALHANDLE(psc->sc_ioh);
195 if (pci_intr_map(pa, &psc->sc_pih)) {
200 intrstr = pci_intr_string(pc, psc->sc_pih, intrbuf, sizeof(intrbuf));
201 psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pih, IPL_NET,
203 if (psc->sc_ih == NULL) {
220 pci_intr_disestablish(pc, psc->sc_ih);
221 psc->sc_ih = NULL;
223 bus_space_unmap(psc->sc_iot, psc->sc_ioh, psc->sc_mapsz);
224 psc->sc_mapsz = 0;
232 struct ath_pci_softc *psc = device_private(self);
235 if ((rv = ath_detach(&psc->sc_sc)) != 0)
240 if (psc->sc_ih != NULL) {
241 pci_intr_disestablish(psc->sc_pc, psc->sc_ih);
242 psc->sc_ih = NULL;
245 if (psc->sc_mapsz != 0) {
246 bus_space_unmap(psc->sc_iot, psc->sc_ioh, psc->sc_mapsz);
247 psc->sc_mapsz = 0;