Lines Matching refs:exynos_gem

33 	struct exynos_drm_gem	*exynos_gem;  member
41 struct exynos_drm_gem *exynos_gem = exynos_fbd->exynos_gem; in exynos_drm_fb_mmap() local
49 if (vm_size > exynos_gem->size) in exynos_drm_fb_mmap()
52 ret = dma_mmap_attrs(to_dma_dev(helper->dev), vma, exynos_gem->cookie, in exynos_drm_fb_mmap()
53 exynos_gem->dma_addr, exynos_gem->size, in exynos_drm_fb_mmap()
54 exynos_gem->dma_attrs); in exynos_drm_fb_mmap()
74 struct exynos_drm_gem *exynos_gem) in exynos_drm_fbdev_update() argument
93 nr_pages = exynos_gem->size >> PAGE_SHIFT; in exynos_drm_fbdev_update()
95 exynos_gem->kvaddr = (void __iomem *) vmap(exynos_gem->pages, nr_pages, in exynos_drm_fbdev_update()
97 if (!exynos_gem->kvaddr) { in exynos_drm_fbdev_update()
106 fbi->screen_base = exynos_gem->kvaddr + offset; in exynos_drm_fbdev_update()
117 struct exynos_drm_gem *exynos_gem; in exynos_drm_fbdev_create() local
136 exynos_gem = exynos_drm_gem_create(dev, EXYNOS_BO_CONTIG, size); in exynos_drm_fbdev_create()
142 if (IS_ERR(exynos_gem) && is_drm_iommu_supported(dev)) { in exynos_drm_fbdev_create()
144 exynos_gem = exynos_drm_gem_create(dev, EXYNOS_BO_NONCONTIG, in exynos_drm_fbdev_create()
148 if (IS_ERR(exynos_gem)) in exynos_drm_fbdev_create()
149 return PTR_ERR(exynos_gem); in exynos_drm_fbdev_create()
151 exynos_fbdev->exynos_gem = exynos_gem; in exynos_drm_fbdev_create()
154 exynos_drm_framebuffer_init(dev, &mode_cmd, &exynos_gem, 1); in exynos_drm_fbdev_create()
161 ret = exynos_drm_fbdev_update(helper, sizes, exynos_gem); in exynos_drm_fbdev_create()
170 exynos_drm_gem_destroy(exynos_gem); in exynos_drm_fbdev_create()
241 struct exynos_drm_gem *exynos_gem = exynos_fbd->exynos_gem; in exynos_drm_fbdev_destroy() local
244 vunmap(exynos_gem->kvaddr); in exynos_drm_fbdev_destroy()