Home
last modified time | relevance | path

Searched refs:sc_pihp (Results 1 – 21 of 21) sorted by relevance

/netbsd/src/sys/dev/pci/
Dxhci_pci.c66 pci_intr_handle_t *sc_pihp; member
226 if (pci_intr_alloc(pa, &psc->sc_pihp, counts, PCI_INTR_TYPE_MSIX)) { in xhci_pci_attach()
230 intrstr = pci_intr_string(pc, psc->sc_pihp[0], intrbuf, in xhci_pci_attach()
232 pci_intr_setattr(pc, &psc->sc_pihp[0], PCI_INTR_MPSAFE, true); in xhci_pci_attach()
233 psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pihp[0], IPL_USB, in xhci_pci_attach()
236 pci_intr_release(pc, psc->sc_pihp, 1); in xhci_pci_attach()
237 psc->sc_pihp = NULL; in xhci_pci_attach()
306 if (psc->sc_pihp != NULL) { in xhci_pci_attach()
307 pci_intr_release(psc->sc_pc, psc->sc_pihp, 1); in xhci_pci_attach()
308 psc->sc_pihp = NULL; in xhci_pci_attach()
[all …]
Dsiisata_pci.c69 pci_intr_handle_t *sc_pihp; member
235 if (pci_intr_alloc(pa, &psc->sc_pihp, counts, max_type) != 0) { in siisata_pci_attach()
241 intrstr = pci_intr_string(pa->pa_pc, psc->sc_pihp[0], intrbuf, in siisata_pci_attach()
243 psc->sc_ih = pci_intr_establish_xname(pa->pa_pc, psc->sc_pihp[0], in siisata_pci_attach()
246 pci_intr_release(psc->sc_pc, psc->sc_pihp, 1); in siisata_pci_attach()
247 psc->sc_pihp = NULL; in siisata_pci_attach()
322 if (psc->sc_pihp != NULL) { in siisata_pci_detach()
323 pci_intr_release(psc->sc_pc, psc->sc_pihp, 1); in siisata_pci_detach()
324 psc->sc_pihp = NULL; in siisata_pci_detach()
Dahcisata_pci.c215 pci_intr_handle_t *sc_pihp; member
308 KASSERT(psc->sc_pihp != NULL); in ahci_pci_intr_establish()
367 intrstr = pci_intr_string(psc->sc_pc, psc->sc_pihp[vec], intrbuf, in ahci_pci_intr_establish()
370 psc->sc_pihp[vec], IPL_BIO, intr_handler, intr_arg, intr_xname); in ahci_pci_intr_establish()
418 if (pci_intr_alloc(pa, &psc->sc_pihp, counts, PCI_INTR_TYPE_MSIX)) { in ahci_pci_attach()
423 psc->sc_nintr = counts[pci_intr_type(pa->pa_pc, psc->sc_pihp[0])]; in ahci_pci_attach()
460 if (psc->sc_pihp != NULL) { in ahci_pci_attach()
461 pci_intr_release(psc->sc_pc, psc->sc_pihp, psc->sc_nintr); in ahci_pci_attach()
462 psc->sc_pihp = NULL; in ahci_pci_attach()
510 if (psc->sc_pihp != NULL) { in ahci_pci_detach()
[all …]
Dif_re_pci.c78 pci_intr_handle_t *sc_pihp; member
291 if (pci_intr_alloc(pa, &psc->sc_pihp, NULL, 0)) { in re_pci_attach()
295 intrstr = pci_intr_string(pc, psc->sc_pihp[0], intrbuf, in re_pci_attach()
297 psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pihp[0], IPL_NET, in re_pci_attach()
345 if (psc->sc_pihp != NULL) { in re_pci_detach()
346 pci_intr_release(psc->sc_pc, psc->sc_pihp, 1); in re_pci_detach()
347 psc->sc_pihp = NULL; in re_pci_detach()
Drtsx_pci.c46 pci_intr_handle_t *sc_pihp; member
154 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0)) { in rtsx_pci_attach()
158 intrstr = pci_intr_string(pc, sc->sc_pihp[0], intrbuf, sizeof(intrbuf)); in rtsx_pci_attach()
159 sc->sc_ih = pci_intr_establish_xname(pc, sc->sc_pihp[0], IPL_SDMMC, in rtsx_pci_attach()
196 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in rtsx_pci_detach()
Dhdaudio_pci.c61 pci_intr_handle_t *sc_pihp; member
166 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0)) { in hdaudio_pci_attach()
170 intrstr = pci_intr_string(pa->pa_pc, sc->sc_pihp[0], intrbuf, in hdaudio_pci_attach()
172 sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, sc->sc_pihp[0], in hdaudio_pci_attach()
188 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in hdaudio_pci_attach()
236 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in hdaudio_pci_detach()
Dehci_pci.c84 pci_intr_handle_t *sc_pihp; member
192 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0) != 0) { in ehci_pci_attach()
200 intrstr = pci_intr_string(pc, sc->sc_pihp[0], intrbuf, sizeof(intrbuf)); in ehci_pci_attach()
201 pci_intr_setattr(pc, &sc->sc_pihp[0], PCI_INTR_MPSAFE, true); in ehci_pci_attach()
202 sc->sc_ih = pci_intr_establish_xname(pc, sc->sc_pihp[0], IPL_USB, in ehci_pci_attach()
293 if (sc->sc_pihp != NULL) { in ehci_pci_release_resources()
294 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in ehci_pci_release_resources()
295 sc->sc_pihp = NULL; in ehci_pci_release_resources()
Dichsmb.c65 pci_intr_handle_t *sc_pihp; member
225 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0) == 0) { in ichsmb_attach()
226 intrstr = pci_intr_string(pa->pa_pc, sc->sc_pihp[0], in ichsmb_attach()
228 pci_intr_setattr(pa->pa_pc, &sc->sc_pihp[0], in ichsmb_attach()
231 sc->sc_pihp[0], IPL_BIO, ichsmb_intr, sc, in ichsmb_attach()
238 pci_intr_release(pa->pa_pc, sc->sc_pihp, 1); in ichsmb_attach()
239 sc->sc_pihp = NULL; in ichsmb_attach()
495 if (sc->sc_pihp) { in ichsmb_detach()
496 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in ichsmb_detach()
497 sc->sc_pihp = NULL; in ichsmb_detach()
Dismt.c191 pci_intr_handle_t *sc_pihp; member
638 if (sc->sc_pihp != NULL) { in ismt_detach()
639 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in ismt_detach()
640 sc->sc_pihp = NULL; in ismt_detach()
733 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0)) { in ismt_attach()
737 intrstr = pci_intr_string(pa->pa_pc, sc->sc_pihp[0], intrbuf, in ismt_attach()
739 sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, sc->sc_pihp[0], in ismt_attach()
743 (pci_intr_type(pa->pa_pc, sc->sc_pihp[0]) in ismt_attach()
748 if (pci_intr_type(pa->pa_pc, sc->sc_pihp[0]) == PCI_INTR_TYPE_MSI) in ismt_attach()
Dppb.c271 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0) == 0) in ppbattach()
273 sc->sc_pihp[0], IPL_BIO, ppb_intr, sc, in ppbattach()
282 intrstr = pci_intr_string(pc, sc->sc_pihp[0], intrbuf, in ppbattach()
479 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in ppbdetach()
Dppbvar.h51 pci_intr_handle_t *sc_pihp; member
Dif_wpivar.h154 pci_intr_handle_t *sc_pihp; member
Dif_rtwnreg.h158 pci_intr_handle_t *sc_pihp; member
Dif_bwfm_pci.c130 pci_intr_handle_t *sc_pihp; member
442 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0) != 0) { in bwfm_pci_attach()
446 intrstr = pci_intr_string(pa->pa_pc, sc->sc_pihp[0], intrbuf, sizeof(intrbuf)); in bwfm_pci_attach()
448 sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, sc->sc_pihp[0], IPL_NET, in bwfm_pci_attach()
761 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in bwfm_pci_attachhook()
856 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in bwfm_pci_detach()
Dif_iwmvar.h378 pci_intr_handle_t *sc_pihp; member
Dif_iwnvar.h268 pci_intr_handle_t *sc_pihp; member
Dif_wpi.c269 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0)) { in wpi_attach()
274 intrstr = pci_intr_string(sc->sc_pct, sc->sc_pihp[0], intrbuf, in wpi_attach()
276 sc->sc_ih = pci_intr_establish_xname(sc->sc_pct, sc->sc_pihp[0], in wpi_attach()
428 failia: pci_intr_release(sc->sc_pct, sc->sc_pihp, 1); in wpi_attach()
429 sc->sc_pihp = NULL; in wpi_attach()
461 if (sc->sc_pihp != NULL) { in wpi_detach()
462 pci_intr_release(sc->sc_pct, sc->sc_pihp, 1); in wpi_detach()
463 sc->sc_pihp = NULL; in wpi_detach()
Dmpii.c171 pci_intr_handle_t *sc_pihp; member
509 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0)) { in mpii_attach()
513 intrstr = pci_intr_string(pa->pa_pc, sc->sc_pihp[0], in mpii_attach()
515 pci_intr_setattr(pa->pa_pc, &sc->sc_pihp[0], PCI_INTR_MPSAFE, true); in mpii_attach()
516 sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, sc->sc_pihp[0], IPL_BIO, in mpii_attach()
Dif_iwn.c481 error = pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0); in iwn_attach()
487 if (pci_intr_type(sc->sc_pct, sc->sc_pihp[0]) == PCI_INTR_TYPE_INTX) in iwn_attach()
492 intrstr = pci_intr_string(sc->sc_pct, sc->sc_pihp[0], intrbuf, in iwn_attach()
494 sc->sc_ih = pci_intr_establish_xname(sc->sc_pct, sc->sc_pihp[0], in iwn_attach()
730 failia: pci_intr_release(sc->sc_pct, sc->sc_pihp, 1); in iwn_attach()
731 sc->sc_pihp = NULL; in iwn_attach()
932 if (sc->sc_pihp != NULL) in iwn_detach()
933 pci_intr_release(sc->sc_pct, sc->sc_pihp, 1); in iwn_detach()
Dif_rtwn.c251 if (pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0)) { in rtwn_attach()
255 intrstr = pci_intr_string(sc->sc_pc, sc->sc_pihp[0], intrbuf, in rtwn_attach()
257 sc->sc_ih = pci_intr_establish_xname(sc->sc_pc, sc->sc_pihp[0], IPL_NET, in rtwn_attach()
437 pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); in rtwn_detach()
Dif_iwm.c7815 err = pci_intr_alloc(pa, &sc->sc_pihp, NULL, 0); in iwm_attach()
7821 if (pci_intr_type(sc->sc_pct, sc->sc_pihp[0]) == PCI_INTR_TYPE_INTX) in iwm_attach()
7826 intrstr = pci_intr_string(sc->sc_pct, sc->sc_pihp[0], intrbuf, in iwm_attach()
7828 sc->sc_ih = pci_intr_establish_xname(sc->sc_pct, sc->sc_pihp[0], in iwm_attach()