Lines Matching refs:capoff
72 int capoff; member
77 int capoff; member
186 int capoff; in passthru_add_msicap() local
198 capoff = 256 - roundup(sizeof(msicap), 4); in passthru_add_msicap()
201 pci_set_cfgdata8(pi, capoff + i, capdata[i]); in passthru_add_msicap()
203 return (capoff); in passthru_add_msicap()
214 if ((off = sc->psc_msi.capoff) != 0 && sc->msi_limit != -1) { in passthru_intr_limit()
234 if ((off = sc->psc_msix.capoff) != 0 && sc->msix_limit != -1) { in passthru_intr_limit()
266 sc->psc_msi.capoff = ptr; in cfginitmsi()
283 sc->psc_msix.capoff = ptr; in cfginitmsi()
303 if (sc->psc_msix.capoff != 0) { in cfginitmsi()
332 if ((sts & PCIM_STATUS_CAPPRESENT) != 0 && sc->psc_msi.capoff == 0) { in cfginitmsi()
336 sc->psc_msi.capoff = msiptr; in cfginitmsi()
344 if (sc->psc_msi.capoff == 0 && sc->psc_msix.capoff == 0) in cfginitmsi()
845 if (sc->psc_msi.capoff == 0) in msicap_access()
850 if (coff >= sc->psc_msi.capoff && coff < sc->psc_msi.capoff + caplen) in msicap_access()
859 if (sc->psc_msix.capoff == 0) in msixcap_access()
862 return (coff >= sc->psc_msix.capoff && in msixcap_access()
863 coff < sc->psc_msix.capoff + MSIX_CAPLEN); in msixcap_access()
935 pci_emul_capwrite(pi, coff, bytes, val, sc->psc_msi.capoff, in passthru_cfgwrite_default()
945 pci_emul_capwrite(pi, coff, bytes, val, sc->psc_msix.capoff, in passthru_cfgwrite_default()