Lines Matching refs:iommu_pci_bus
139 IOMMUPciBus *iommu_pci_bus; in virtio_iommu_switch_address_space_all() local
143 while (g_hash_table_iter_next(&iter, NULL, (void **)&iommu_pci_bus)) { in virtio_iommu_switch_address_space_all()
145 if (!iommu_pci_bus->pbdev[i]) { in virtio_iommu_switch_address_space_all()
148 virtio_iommu_switch_address_space(iommu_pci_bus->pbdev[i]); in virtio_iommu_switch_address_space_all()
161 IOMMUPciBus *iommu_pci_bus = s->iommu_pcibus_by_bus_num[bus_num]; in iommu_find_iommu_pcibus() local
163 if (!iommu_pci_bus) { in iommu_find_iommu_pcibus()
167 while (g_hash_table_iter_next(&iter, NULL, (void **)&iommu_pci_bus)) { in iommu_find_iommu_pcibus()
168 if (pci_bus_num(iommu_pci_bus->bus) == bus_num) { in iommu_find_iommu_pcibus()
169 s->iommu_pcibus_by_bus_num[bus_num] = iommu_pci_bus; in iommu_find_iommu_pcibus()
170 return iommu_pci_bus; in iommu_find_iommu_pcibus()
175 return iommu_pci_bus; in iommu_find_iommu_pcibus()
181 IOMMUPciBus *iommu_pci_bus; in virtio_iommu_mr() local
185 iommu_pci_bus = iommu_find_iommu_pcibus(s, bus_n); in virtio_iommu_mr()
186 if (iommu_pci_bus) { in virtio_iommu_mr()
188 dev = iommu_pci_bus->pbdev[devfn]; in virtio_iommu_mr()