Lines Matching refs:odomain
1409 struct omap_iommu_domain *odomain) in omap_iommu_attach_init() argument
1414 odomain->num_iommus = omap_iommu_count(dev); in omap_iommu_attach_init()
1415 if (!odomain->num_iommus) in omap_iommu_attach_init()
1418 odomain->iommus = kcalloc(odomain->num_iommus, sizeof(*iommu), in omap_iommu_attach_init()
1420 if (!odomain->iommus) in omap_iommu_attach_init()
1423 iommu = odomain->iommus; in omap_iommu_attach_init()
1424 for (i = 0; i < odomain->num_iommus; i++, iommu++) { in omap_iommu_attach_init()
1441 static void omap_iommu_detach_fini(struct omap_iommu_domain *odomain) in omap_iommu_detach_fini() argument
1444 struct omap_iommu_device *iommu = odomain->iommus; in omap_iommu_detach_fini()
1446 for (i = 0; iommu && i < odomain->num_iommus; i++, iommu++) in omap_iommu_detach_fini()
1449 kfree(odomain->iommus); in omap_iommu_detach_fini()
1450 odomain->num_iommus = 0; in omap_iommu_detach_fini()
1451 odomain->iommus = NULL; in omap_iommu_detach_fini()