Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/gpu/drm/exynos/
Dexynos_drm_gem.c25 static int exynos_drm_alloc_buf(struct exynos_drm_gem *exynos_gem, bool kvmap) in exynos_drm_alloc_buf() argument
27 struct drm_device *dev = exynos_gem->base.dev; in exynos_drm_alloc_buf()
30 if (exynos_gem->dma_addr) { in exynos_drm_alloc_buf()
40 if (!(exynos_gem->flags & EXYNOS_BO_NONCONTIG)) 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()
55 exynos_gem->dma_attrs = attr; in exynos_drm_alloc_buf()
56 exynos_gem->cookie = dma_alloc_attrs(to_dma_dev(dev), exynos_gem->size, in exynos_drm_alloc_buf()
57 &exynos_gem->dma_addr, GFP_KERNEL, in exynos_drm_alloc_buf()
58 exynos_gem->dma_attrs); in exynos_drm_alloc_buf()
[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_fbdev.c34 struct exynos_drm_gem *exynos_gem; member
42 struct exynos_drm_gem *exynos_gem = exynos_fbd->exynos_gem; in exynos_drm_fb_mmap() local
44 return drm_gem_prime_mmap(&exynos_gem->base, vma); in exynos_drm_fb_mmap()
58 struct exynos_drm_gem *exynos_gem) in exynos_drm_fbdev_update() argument
79 fbi->screen_buffer = exynos_gem->kvaddr + offset; in exynos_drm_fbdev_update()
90 struct exynos_drm_gem *exynos_gem; in exynos_drm_fbdev_create() local
109 exynos_gem = exynos_drm_gem_create(dev, EXYNOS_BO_WC, size, true); in exynos_drm_fbdev_create()
110 if (IS_ERR(exynos_gem)) in exynos_drm_fbdev_create()
111 return PTR_ERR(exynos_gem); in exynos_drm_fbdev_create()
113 exynos_fbdev->exynos_gem = exynos_gem; in exynos_drm_fbdev_create()
[all …]
Dexynos_drm_gem.h50 void exynos_drm_gem_destroy(struct exynos_drm_gem *exynos_gem);
82 static inline void exynos_drm_gem_put(struct exynos_drm_gem *exynos_gem) in exynos_drm_gem_put() argument
84 drm_gem_object_put(&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.c713 struct exynos_drm_gem *exynos_gem; in g2d_map_cmdlist_gem() local
715 exynos_gem = exynos_drm_gem_get(file, handle); in g2d_map_cmdlist_gem()
716 if (!exynos_gem) { in g2d_map_cmdlist_gem()
722 reg_type, exynos_gem->size)) { in g2d_map_cmdlist_gem()
723 exynos_drm_gem_put(exynos_gem); in g2d_map_cmdlist_gem()
728 addr = &exynos_gem->dma_addr; in g2d_map_cmdlist_gem()
729 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