/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_gem_cma_helper.c | 51 struct drm_gem_cma_object *cma_obj; in __drm_gem_cma_create() local 58 gem_obj = kzalloc(sizeof(*cma_obj), GFP_KERNEL); in __drm_gem_cma_create() 61 cma_obj = container_of(gem_obj, struct drm_gem_cma_object, base); in __drm_gem_cma_create() 73 return cma_obj; in __drm_gem_cma_create() 76 kfree(cma_obj); in __drm_gem_cma_create() 96 struct drm_gem_cma_object *cma_obj; in drm_gem_cma_create() local 101 cma_obj = __drm_gem_cma_create(drm, size); in drm_gem_cma_create() 102 if (IS_ERR(cma_obj)) in drm_gem_cma_create() 103 return cma_obj; in drm_gem_cma_create() 105 cma_obj->vaddr = dma_alloc_wc(drm->dev, size, &cma_obj->paddr, in drm_gem_cma_create() [all …]
|
D | drm_mipi_dbi.c | 204 struct drm_gem_cma_object *cma_obj = to_drm_gem_cma_obj(gem); in mipi_dbi_buf_copy() local 207 void *src = cma_obj->vaddr; in mipi_dbi_buf_copy() 260 struct drm_gem_cma_object *cma_obj = to_drm_gem_cma_obj(gem); in mipi_dbi_fb_dirty() local 287 tr = cma_obj->vaddr; in mipi_dbi_fb_dirty()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/ |
D | dcss-plane.c | 147 struct drm_gem_cma_object *cma_obj; in dcss_plane_atomic_check() local 156 cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in dcss_plane_atomic_check() 157 WARN_ON(!cma_obj); in dcss_plane_atomic_check() 218 struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in dcss_plane_atomic_set_base() local 224 p1_ba = cma_obj->paddr + fb->offsets[0] + in dcss_plane_atomic_set_base() 231 p1_ba = cma_obj->paddr + fb->offsets[0] + in dcss_plane_atomic_set_base() 237 p2_ba = cma_obj->paddr + fb->offsets[1] + in dcss_plane_atomic_set_base()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/ |
D | ipuv3-plane.c | 96 struct drm_gem_cma_object *cma_obj; in drm_plane_state_to_eba() local 100 cma_obj = drm_fb_cma_get_gem_obj(fb, plane); in drm_plane_state_to_eba() 101 BUG_ON(!cma_obj); in drm_plane_state_to_eba() 103 return cma_obj->paddr + fb->offsets[plane] + fb->pitches[plane] * y + in drm_plane_state_to_eba() 111 struct drm_gem_cma_object *cma_obj; in drm_plane_state_to_ubo() local 116 cma_obj = drm_fb_cma_get_gem_obj(fb, 1); in drm_plane_state_to_ubo() 117 BUG_ON(!cma_obj); in drm_plane_state_to_ubo() 122 return cma_obj->paddr + fb->offsets[1] + fb->pitches[1] * y + in drm_plane_state_to_ubo() 130 struct drm_gem_cma_object *cma_obj; in drm_plane_state_to_vbo() local 135 cma_obj = drm_fb_cma_get_gem_obj(fb, 2); in drm_plane_state_to_vbo() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/zte/ |
D | zx_plane.c | 189 struct drm_gem_cma_object *cma_obj; in zx_vl_plane_atomic_update() local 218 cma_obj = drm_fb_cma_get_gem_obj(fb, i); in zx_vl_plane_atomic_update() 219 paddr = cma_obj->paddr + fb->offsets[i]; in zx_vl_plane_atomic_update() 354 struct drm_gem_cma_object *cma_obj; in zx_gl_plane_atomic_update() local 384 cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in zx_gl_plane_atomic_update() 385 paddr = cma_obj->paddr + fb->offsets[0]; in zx_gl_plane_atomic_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
D | vc4_bo.c | 411 struct drm_gem_cma_object *cma_obj; in vc4_bo_create() local 425 cma_obj = drm_gem_cma_create(dev, size); in vc4_bo_create() 426 if (IS_ERR(cma_obj)) { in vc4_bo_create() 432 cma_obj = drm_gem_cma_create(dev, size); in vc4_bo_create() 435 if (IS_ERR(cma_obj)) { in vc4_bo_create() 448 cma_obj = drm_gem_cma_create(dev, size); in vc4_bo_create() 451 if (IS_ERR(cma_obj)) { in vc4_bo_create() 457 bo = to_vc4_bo(&cma_obj->base); in vc4_bo_create() 466 vc4_bo_set_label(&cma_obj->base, type); in vc4_bo_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tiny/ |
D | st7586.c | 94 struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in st7586_buf_copy() local 95 struct dma_buf_attachment *import_attach = cma_obj->base.import_attach; in st7586_buf_copy() 96 void *src = cma_obj->vaddr; in st7586_buf_copy()
|
D | ili9225.c | 80 struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in ili9225_fb_dirty() local 106 tr = cma_obj->vaddr; in ili9225_fb_dirty()
|
D | repaper.c | 533 struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in repaper_fb_dirty() local 534 struct dma_buf_attachment *import_attach = cma_obj->base.import_attach; in repaper_fb_dirty() 567 drm_fb_xrgb8888_to_gray8(buf, cma_obj->vaddr, fb, &clip); in repaper_fb_dirty()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sti/ |
D | sti_cursor.c | 264 struct drm_gem_cma_object *cma_obj; in sti_cursor_atomic_update() local 275 cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in sti_cursor_atomic_update() 278 sti_cursor_argb8888_to_clut8(cursor, (u32 *)cma_obj->vaddr); in sti_cursor_atomic_update()
|
D | sti_gdp.c | 708 struct drm_gem_cma_object *cma_obj; in sti_gdp_atomic_update() local 772 cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in sti_gdp_atomic_update() 776 (unsigned long)cma_obj->paddr); in sti_gdp_atomic_update() 780 top_field->gam_gdp_pml = (u32)cma_obj->paddr + fb->offsets[0]; in sti_gdp_atomic_update() 825 (unsigned long)cma_obj->paddr, in sti_gdp_atomic_update()
|
D | sti_hqvdp.c | 1120 struct drm_gem_cma_object *cma_obj; in sti_hqvdp_atomic_update() local 1174 cma_obj = drm_fb_cma_get_gem_obj(fb, 0); in sti_hqvdp_atomic_update() 1178 (unsigned long)cma_obj->paddr); in sti_hqvdp_atomic_update() 1181 cmd->top.current_luma = (u32)cma_obj->paddr + fb->offsets[0]; in sti_hqvdp_atomic_update() 1182 cmd->top.current_chroma = (u32)cma_obj->paddr + fb->offsets[1]; in sti_hqvdp_atomic_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/ |
D | malidp_planes.c | 339 struct drm_gem_cma_object *cma_obj; in malidp_check_pages_threshold() local 344 cma_obj = to_drm_gem_cma_obj(obj); in malidp_check_pages_threshold() 346 if (cma_obj->sgt) in malidp_check_pages_threshold() 347 sgt = cma_obj->sgt; in malidp_check_pages_threshold() 358 if (!cma_obj->sgt) in malidp_check_pages_threshold() 365 if (!cma_obj->sgt) in malidp_check_pages_threshold()
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
D | 0020_linux_drivers_gpu.patch | 16046 struct drm_gem_cma_object *cma_obj; 16112 + struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); 16113 + struct dma_buf *dma_buf = cma_obj->base.dma_buf; 16129 + caddr = cma_obj->paddr + ALIGN(fb->height, 64) * fb->pitches[0]; 16176 struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); 16186 p1_ba = cma_obj->paddr + fb->offsets[0] + 16192 + p1_ba = cma_obj->paddr + fb->offsets[0] + 16199 p1_ba = cma_obj->paddr + fb->offsets[0] + 16207 p2_ba = cma_obj->paddr + fb->offsets[1] + 16213 + p2_ba = cma_obj->paddr + fb->offsets[1] + [all …]
|