Lines Matching refs:domain
68 struct iommu_domain *domain; member
139 iommu_detach_device(dev_state->domain, &dev_state->pdev->dev); in free_device_state()
142 iommu_domain_free(dev_state->domain); in free_device_state()
276 struct iommu_domain *domain; in unbind_pasid() local
278 domain = pasid_state->device_state->domain; in unbind_pasid()
290 amd_iommu_domain_clear_gcr3(domain, pasid_state->pasid); in unbind_pasid()
371 amd_iommu_flush_page(dev_state->domain, pasid_state->pasid, address); in __mn_flush_page()
403 amd_iommu_flush_page(dev_state->domain, pasid_state->pasid, in mn_invalidate_range()
406 amd_iommu_flush_tlb(dev_state->domain, pasid_state->pasid); in mn_invalidate_range()
656 ret = amd_iommu_domain_set_gcr3(dev_state->domain, pasid, in amd_iommu_bind_pasid()
776 dev_state->domain = iommu_domain_alloc(&pci_bus_type); in amd_iommu_init_device()
777 if (dev_state->domain == NULL) in amd_iommu_init_device()
780 amd_iommu_domain_direct_map(dev_state->domain); in amd_iommu_init_device()
782 ret = amd_iommu_domain_enable_v2(dev_state->domain, pasids); in amd_iommu_init_device()
786 ret = iommu_attach_device(dev_state->domain, &pdev->dev); in amd_iommu_init_device()
805 iommu_domain_free(dev_state->domain); in amd_iommu_init_device()