Searched refs:exynos_gem (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/drivers/gpu/drm/exynos/ |
D | exynos_drm_gem.c | 25 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 …]
|
D | exynos_drm_fb.c | 27 struct exynos_drm_gem *exynos_gem) in check_fb_gem_memory_type() argument 38 flags = exynos_gem->flags; in check_fb_gem_memory_type() 61 struct exynos_drm_gem **exynos_gem, in exynos_drm_framebuffer_init() argument 73 ret = check_fb_gem_memory_type(dev, exynos_gem[i]); in exynos_drm_framebuffer_init() 77 fb->obj[i] = &exynos_gem[i]->base; in exynos_drm_framebuffer_init() 101 struct exynos_drm_gem *exynos_gem[MAX_FB_BUFFER]; in exynos_user_fb_create() local 112 exynos_gem[i] = exynos_drm_gem_get(file_priv, in exynos_user_fb_create() 114 if (!exynos_gem[i]) { in exynos_user_fb_create() 121 if (size > exynos_gem[i]->size) { in exynos_user_fb_create() 128 fb = exynos_drm_framebuffer_init(dev, mode_cmd, exynos_gem, i); in exynos_user_fb_create() [all …]
|
D | exynos_drm_fbdev.c | 35 struct exynos_drm_gem *exynos_gem; member 43 struct exynos_drm_gem *exynos_gem = exynos_fbd->exynos_gem; in exynos_drm_fb_mmap() local 45 return drm_gem_prime_mmap(&exynos_gem->base, vma); in exynos_drm_fb_mmap() 59 struct exynos_drm_gem *exynos_gem) in exynos_drm_fbdev_update() argument 80 fbi->screen_buffer = exynos_gem->kvaddr + offset; in exynos_drm_fbdev_update() 91 struct exynos_drm_gem *exynos_gem; in exynos_drm_fbdev_create() local 110 exynos_gem = exynos_drm_gem_create(dev, EXYNOS_BO_WC, size, true); in exynos_drm_fbdev_create() 111 if (IS_ERR(exynos_gem)) in exynos_drm_fbdev_create() 112 return PTR_ERR(exynos_gem); in exynos_drm_fbdev_create() 114 exynos_fbdev->exynos_gem = exynos_gem; in exynos_drm_fbdev_create() [all …]
|
D | exynos_drm_gem.h | 50 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()
|
D | exynos_drm_fb.h | 18 struct exynos_drm_gem **exynos_gem,
|
D | exynos_drm_ipp.c | 364 buf->exynos_gem[i] = gem; in exynos_drm_ipp_task_setup_buffer() 366 if (size + buf->buf.offset[i] > buf->exynos_gem[i]->size) { in exynos_drm_ipp_task_setup_buffer() 371 buf->dma_addr[i] = buf->exynos_gem[i]->dma_addr + in exynos_drm_ipp_task_setup_buffer() 378 exynos_drm_gem_put(buf->exynos_gem[i]); in exynos_drm_ipp_task_setup_buffer() 379 buf->exynos_gem[i] = NULL; in exynos_drm_ipp_task_setup_buffer() 388 if (!buf->exynos_gem[0]) in exynos_drm_ipp_task_release_buf() 391 exynos_drm_gem_put(buf->exynos_gem[i]); in exynos_drm_ipp_task_release_buf()
|
D | exynos_drm_g2d.c | 713 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()
|
D | exynos_drm_ipp.h | 73 struct exynos_drm_gem *exynos_gem[MAX_FB_BUFFER]; member
|