Home
last modified time | relevance | path

Searched refs:exynos_gem (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/exynos/
Dexynos_drm_gem.c20 static int exynos_drm_alloc_buf(struct exynos_drm_gem *exynos_gem) in exynos_drm_alloc_buf() argument
22 struct drm_device *dev = exynos_gem->base.dev; in exynos_drm_alloc_buf()
28 if (exynos_gem->dma_addr) { in exynos_drm_alloc_buf()
33 exynos_gem->dma_attrs = 0; in exynos_drm_alloc_buf()
40 if (!(exynos_gem->flags & EXYNOS_BO_NONCONTIG)) in exynos_drm_alloc_buf()
41 exynos_gem->dma_attrs |= DMA_ATTR_FORCE_CONTIGUOUS; in exynos_drm_alloc_buf()
47 if (exynos_gem->flags & EXYNOS_BO_WC || in exynos_drm_alloc_buf()
48 !(exynos_gem->flags & EXYNOS_BO_CACHABLE)) in exynos_drm_alloc_buf()
53 exynos_gem->dma_attrs |= attr; in exynos_drm_alloc_buf()
54 exynos_gem->dma_attrs |= DMA_ATTR_NO_KERNEL_MAPPING; in exynos_drm_alloc_buf()
[all …]
Dexynos_drm_fbdev.c33 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()
[all …]
Dexynos_drm_fb.c26 struct exynos_drm_gem *exynos_gem) in check_fb_gem_memory_type() argument
37 flags = exynos_gem->flags; in check_fb_gem_memory_type()
60 struct exynos_drm_gem **exynos_gem, in exynos_drm_framebuffer_init() argument
72 ret = check_fb_gem_memory_type(dev, exynos_gem[i]); in exynos_drm_framebuffer_init()
76 fb->obj[i] = &exynos_gem[i]->base; in exynos_drm_framebuffer_init()
100 struct exynos_drm_gem *exynos_gem[MAX_FB_BUFFER]; in exynos_user_fb_create() local
111 exynos_gem[i] = exynos_drm_gem_get(file_priv, in exynos_user_fb_create()
113 if (!exynos_gem[i]) { in exynos_user_fb_create()
120 if (size > exynos_gem[i]->size) { in exynos_user_fb_create()
127 fb = exynos_drm_framebuffer_init(dev, mode_cmd, exynos_gem, i); in exynos_user_fb_create()
[all …]
Dexynos_drm_gem.h56 void exynos_drm_gem_destroy(struct exynos_drm_gem *exynos_gem);
87 static inline void exynos_drm_gem_put(struct exynos_drm_gem *exynos_gem) in exynos_drm_gem_put() argument
89 drm_gem_object_put_unlocked(&exynos_gem->base); in exynos_drm_gem_put()
Dexynos_drm_fb.h18 struct exynos_drm_gem **exynos_gem,
Dexynos_drm_ipp.c363 buf->exynos_gem[i] = gem; in exynos_drm_ipp_task_setup_buffer()
365 if (size + buf->buf.offset[i] > buf->exynos_gem[i]->size) { in exynos_drm_ipp_task_setup_buffer()
370 buf->dma_addr[i] = buf->exynos_gem[i]->dma_addr + in exynos_drm_ipp_task_setup_buffer()
377 exynos_drm_gem_put(buf->exynos_gem[i]); in exynos_drm_ipp_task_setup_buffer()
378 buf->exynos_gem[i] = NULL; in exynos_drm_ipp_task_setup_buffer()
387 if (!buf->exynos_gem[0]) in exynos_drm_ipp_task_release_buf()
390 exynos_drm_gem_put(buf->exynos_gem[i]); in exynos_drm_ipp_task_release_buf()
Dexynos_drm_g2d.c717 struct exynos_drm_gem *exynos_gem; in g2d_map_cmdlist_gem() local
719 exynos_gem = exynos_drm_gem_get(file, handle); in g2d_map_cmdlist_gem()
720 if (!exynos_gem) { in g2d_map_cmdlist_gem()
726 reg_type, exynos_gem->size)) { in g2d_map_cmdlist_gem()
727 exynos_drm_gem_put(exynos_gem); in g2d_map_cmdlist_gem()
732 addr = &exynos_gem->dma_addr; in g2d_map_cmdlist_gem()
733 buf_info->obj[reg_type] = exynos_gem; in g2d_map_cmdlist_gem()
Dexynos_drm_ipp.h73 struct exynos_drm_gem *exynos_gem[MAX_FB_BUFFER]; member