Lines Matching full:private
55 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_attach_device() local
58 if (!private->domain) in rockchip_drm_dma_attach_device()
70 ret = iommu_attach_device(private->domain, dev); in rockchip_drm_dma_attach_device()
82 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_detach_device() local
84 if (!private->domain) in rockchip_drm_dma_detach_device()
87 iommu_detach_device(private->domain, dev); in rockchip_drm_dma_detach_device()
93 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_init_device() local
96 private->iommu_dev = ERR_PTR(-ENODEV); in rockchip_drm_dma_init_device()
97 else if (!private->iommu_dev) in rockchip_drm_dma_init_device()
98 private->iommu_dev = dev; in rockchip_drm_dma_init_device()
103 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_init_iommu() local
107 if (IS_ERR_OR_NULL(private->iommu_dev)) in rockchip_drm_init_iommu()
110 private->domain = iommu_domain_alloc(private->iommu_dev->bus); in rockchip_drm_init_iommu()
111 if (!private->domain) in rockchip_drm_init_iommu()
114 geometry = &private->domain->geometry; in rockchip_drm_init_iommu()
120 drm_mm_init(&private->mm, start, end - start + 1); in rockchip_drm_init_iommu()
121 mutex_init(&private->mm_lock); in rockchip_drm_init_iommu()
128 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_iommu_cleanup() local
130 if (!private->domain) in rockchip_iommu_cleanup()
133 drm_mm_takedown(&private->mm); in rockchip_iommu_cleanup()
134 iommu_domain_free(private->domain); in rockchip_iommu_cleanup()
140 struct rockchip_drm_private *private; in rockchip_drm_bind() local
158 private = devm_kzalloc(drm_dev->dev, sizeof(*private), GFP_KERNEL); in rockchip_drm_bind()
159 if (!private) { in rockchip_drm_bind()
164 drm_dev->dev_private = private; in rockchip_drm_bind()