Lines Matching refs:private
48 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_attach_device() local
54 ret = iommu_attach_device(private->domain, dev); in rockchip_drm_dma_attach_device()
66 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_detach_device() local
67 struct iommu_domain *domain = private->domain; in rockchip_drm_dma_detach_device()
77 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_init_iommu() local
84 private->domain = iommu_domain_alloc(&platform_bus_type); in rockchip_drm_init_iommu()
85 if (!private->domain) in rockchip_drm_init_iommu()
88 geometry = &private->domain->geometry; in rockchip_drm_init_iommu()
94 drm_mm_init(&private->mm, start, end - start + 1); in rockchip_drm_init_iommu()
95 mutex_init(&private->mm_lock); in rockchip_drm_init_iommu()
102 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_iommu_cleanup() local
107 drm_mm_takedown(&private->mm); in rockchip_iommu_cleanup()
108 iommu_domain_free(private->domain); in rockchip_iommu_cleanup()
114 struct rockchip_drm_private *private; in rockchip_drm_bind() local
123 private = devm_kzalloc(drm_dev->dev, sizeof(*private), GFP_KERNEL); in rockchip_drm_bind()
124 if (!private) { in rockchip_drm_bind()
129 drm_dev->dev_private = private; in rockchip_drm_bind()
131 INIT_LIST_HEAD(&private->psr_list); in rockchip_drm_bind()
132 mutex_init(&private->psr_list_lock); in rockchip_drm_bind()