Lines Matching refs:pdom_iommu_info

1242 	struct pdom_iommu_info *pdom_iommu_info;  in domain_flush_complete()  local
1251 xa_for_each(&domain->iommu_array, i, pdom_iommu_info) in domain_flush_complete()
1252 iommu_completion_wait(pdom_iommu_info->iommu); in domain_flush_complete()
1435 struct pdom_iommu_info *pdom_iommu_info; in domain_flush_pages_v1() local
1445 xa_for_each(&pdom->iommu_array, i, pdom_iommu_info) { in domain_flush_pages_v1()
1450 ret |= iommu_queue_command(pdom_iommu_info->iommu, &cmd); in domain_flush_pages_v1()
2009 struct pdom_iommu_info *pdom_iommu_info, *curr; in pdom_attach_iommu() local
2016 pdom_iommu_info = xa_load(&pdom->iommu_array, iommu->index); in pdom_attach_iommu()
2017 if (pdom_iommu_info) { in pdom_attach_iommu()
2018 pdom_iommu_info->refcnt++; in pdom_attach_iommu()
2022 pdom_iommu_info = kzalloc(sizeof(*pdom_iommu_info), GFP_ATOMIC); in pdom_attach_iommu()
2023 if (!pdom_iommu_info) { in pdom_attach_iommu()
2028 pdom_iommu_info->iommu = iommu; in pdom_attach_iommu()
2029 pdom_iommu_info->refcnt = 1; in pdom_attach_iommu()
2032 NULL, pdom_iommu_info, GFP_ATOMIC); in pdom_attach_iommu()
2034 kfree(pdom_iommu_info); in pdom_attach_iommu()
2051 struct pdom_iommu_info *pdom_iommu_info; in pdom_detach_iommu() local
2056 pdom_iommu_info = xa_load(&pdom->iommu_array, iommu->index); in pdom_detach_iommu()
2057 if (!pdom_iommu_info) { in pdom_detach_iommu()
2062 pdom_iommu_info->refcnt--; in pdom_detach_iommu()
2063 if (pdom_iommu_info->refcnt == 0) { in pdom_detach_iommu()
2065 kfree(pdom_iommu_info); in pdom_detach_iommu()