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
108 if (IS_ERR_OR_NULL(private->iommu_dev)) in rockchip_drm_init_iommu()
111 private->domain = iommu_paging_domain_alloc(private->iommu_dev); in rockchip_drm_init_iommu()
112 if (IS_ERR(private->domain)) { in rockchip_drm_init_iommu()
113 ret = PTR_ERR(private->domain); in rockchip_drm_init_iommu()
114 private->domain = NULL; in rockchip_drm_init_iommu()
118 geometry = &private->domain->geometry; in rockchip_drm_init_iommu()
124 drm_mm_init(&private->mm, start, end - start + 1); in rockchip_drm_init_iommu()
125 mutex_init(&private->mm_lock); in rockchip_drm_init_iommu()
132 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_iommu_cleanup() local
134 if (!private->domain) in rockchip_iommu_cleanup()
137 drm_mm_takedown(&private->mm); in rockchip_iommu_cleanup()
138 iommu_domain_free(private->domain); in rockchip_iommu_cleanup()
144 struct rockchip_drm_private *private; in rockchip_drm_bind() local
162 private = devm_kzalloc(drm_dev->dev, sizeof(*private), GFP_KERNEL); in rockchip_drm_bind()
163 if (!private) { in rockchip_drm_bind()
168 drm_dev->dev_private = private; in rockchip_drm_bind()