Lines Matching refs:iommu_as
1413 AMDVIAddressSpace **iommu_as, *amdvi_dev_as; in amdvi_host_dma_iommu() local
1416 iommu_as = s->address_spaces[bus_num]; in amdvi_host_dma_iommu()
1419 if (!iommu_as) { in amdvi_host_dma_iommu()
1420 iommu_as = g_new0(AMDVIAddressSpace *, PCI_DEVFN_MAX); in amdvi_host_dma_iommu()
1421 s->address_spaces[bus_num] = iommu_as; in amdvi_host_dma_iommu()
1425 if (!iommu_as[devfn]) { in amdvi_host_dma_iommu()
1428 iommu_as[devfn] = g_new0(AMDVIAddressSpace, 1); in amdvi_host_dma_iommu()
1429 iommu_as[devfn]->bus_num = (uint8_t)bus_num; in amdvi_host_dma_iommu()
1430 iommu_as[devfn]->devfn = (uint8_t)devfn; in amdvi_host_dma_iommu()
1431 iommu_as[devfn]->iommu_state = s; in amdvi_host_dma_iommu()
1433 amdvi_dev_as = iommu_as[devfn]; in amdvi_host_dma_iommu()
1466 return &iommu_as[devfn]->as; in amdvi_host_dma_iommu()