Home | History | Annotate | Download | only in pci

Lines Matching defs:pih

251 #define	PIH_IST(pih)		(((pih) >> 0) & 0xff)
252 #define PIH_IRQ(pih) (((pih) >> 8) & 0xfff)
253 #define PIH_NMSI(pih) (((pih) >> 20) & 0xff)
649 struct pq3pci_intrhand *pih;
654 SIMPLEQ_FOREACH(pih, &pis->pis_ihands, pih_link) {
655 struct pq3pci_softc * const sc = pih->pih_ih.ih_sc;
656 int s = splraise(pih->pih_ipl);
657 pih->pih_count++;
658 rv = (*pih->pih_ih.ih_func)(pih->pih_ih.ih_arg);
664 pih->pih_ih.ih_func, pih->pih_ih.ih_arg, pih->pih_count, rv);
670 pih->pih_count--;
1535 struct pq3pci_intrhand * const pih =
1536 kmem_zalloc(sizeof(*pih), KM_SLEEP);
1537 pih->pih_ih.ih_class = IH_INTX;
1538 pih->pih_ih.ih_func = func;
1539 pih->pih_ih.ih_arg = arg;
1540 pih->pih_ih.ih_sc = sc;
1541 pih->pih_ipl = ipl;
1542 pih->pih_source = pis;
1545 SIMPLEQ_INSERT_TAIL(&pis->pis_ihands, pih, pih_link);
1548 return pih;
1557 struct pq3pci_intrhand * const pih = ih;
1558 struct pq3pci_intrsource * const pis = pih->pih_source;
1561 SIMPLEQ_REMOVE(&pis->pis_ihands, pih, pq3pci_intrhand, pih_link);
1564 kmem_free(pih, sizeof(*pih));