Home
last modified time | relevance | path

Searched refs:capoff (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/bhyve/common/
H A Dpci_passthru.c72 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()
[all …]
H A Dpci_emul.c1046 int i, capoff, reallen; in pci_emul_add_capability() local
1055 capoff = CAP_START_OFFSET; in pci_emul_add_capability()
1057 capoff = pi->pi_capend + 1; in pci_emul_add_capability()
1060 if (capoff + reallen > PCI_REGMAX + 1) in pci_emul_add_capability()
1065 pci_set_cfgdata8(pi, PCIR_CAP_PTR, capoff); in pci_emul_add_capability()
1068 pci_set_cfgdata8(pi, pi->pi_prevcap + 1, capoff); in pci_emul_add_capability()
1072 pci_set_cfgdata8(pi, capoff + i, capdata[i]); in pci_emul_add_capability()
1075 pci_set_cfgdata8(pi, capoff + 1, 0); in pci_emul_add_capability()
1077 pi->pi_prevcap = capoff; in pci_emul_add_capability()
1078 pi->pi_capend = capoff + reallen - 1; in pci_emul_add_capability()
[all …]
H A Dpci_emul.h241 uint32_t val, uint8_t capoff, int capid);
/illumos-gate/usr/src/uts/intel/io/vmm/amd/
H A Damdiommu.c77 int capoff; in amdiommu_probe() local
89 error = pci_find_cap(dev, PCIY_SECDEV, &capoff); in amdiommu_probe()
97 if ((pci_read_config(dev, capoff + 2, 2) & 0x7) != 0x3) in amdiommu_probe()