/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_gem_dma_helper.c | 83 dma_obj = kzalloc(sizeof(*dma_obj), GFP_KERNEL); in __drm_gem_dma_create() 84 if (!dma_obj) in __drm_gem_dma_create() 109 return dma_obj; in __drm_gem_dma_create() 112 kfree(dma_obj); in __drm_gem_dma_create() 144 return dma_obj; in drm_gem_dma_create() 163 return dma_obj; in drm_gem_dma_create() 201 return dma_obj; in drm_gem_dma_create_with_handle() 215 return dma_obj; in drm_gem_dma_create_with_handle() 238 dma_obj->vaddr, dma_obj->dma_addr, in drm_gem_dma_free() 242 dma_obj->vaddr, dma_obj->dma_addr); in drm_gem_dma_free() [all …]
|
H A D | drm_fb_dma_helper.c | 126 const struct drm_gem_dma_object *dma_obj; in drm_fb_dma_sync_non_coherent() local 133 dma_obj = drm_fb_dma_get_gem_obj(state->fb, i); in drm_fb_dma_sync_non_coherent() 134 if (!dma_obj->map_noncoherent) in drm_fb_dma_sync_non_coherent()
|
H A D | drm_fbdev_dma.c | 82 struct drm_gem_dma_object *dma_obj; in drm_fbdev_dma_helper_fb_probe() local 98 dma_obj = to_drm_gem_dma_obj(buffer->gem); in drm_fbdev_dma_helper_fb_probe() 129 if (dma_obj->map_noncoherent) in drm_fbdev_dma_helper_fb_probe()
|
/openbmc/linux/include/drm/ |
H A D | drm_gem_dma_helper.h | 37 void drm_gem_dma_free(struct drm_gem_dma_object *dma_obj); 41 int drm_gem_dma_vmap(struct drm_gem_dma_object *dma_obj, 60 struct drm_gem_dma_object *dma_obj = to_drm_gem_dma_obj(obj); in drm_gem_dma_object_free() local 62 drm_gem_dma_free(dma_obj); in drm_gem_dma_object_free() 79 drm_gem_dma_print_info(dma_obj, p, indent); in drm_gem_dma_object_print_info() 94 struct drm_gem_dma_object *dma_obj = to_drm_gem_dma_obj(obj); in drm_gem_dma_object_get_sg_table() local 96 return drm_gem_dma_get_sg_table(dma_obj); in drm_gem_dma_object_get_sg_table() 113 struct drm_gem_dma_object *dma_obj = to_drm_gem_dma_obj(obj); in drm_gem_dma_object_vmap() local 115 return drm_gem_dma_vmap(dma_obj, map); in drm_gem_dma_object_vmap() 131 struct drm_gem_dma_object *dma_obj = to_drm_gem_dma_obj(obj); in drm_gem_dma_object_mmap() local [all …]
|
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | ipuv3-plane.c | 128 struct drm_gem_dma_object *dma_obj; in drm_plane_state_to_eba() local 132 dma_obj = drm_fb_dma_get_gem_obj(fb, plane); in drm_plane_state_to_eba() 133 BUG_ON(!dma_obj); in drm_plane_state_to_eba() 143 struct drm_gem_dma_object *dma_obj; in drm_plane_state_to_ubo() local 148 dma_obj = drm_fb_dma_get_gem_obj(fb, 1); in drm_plane_state_to_ubo() 149 BUG_ON(!dma_obj); in drm_plane_state_to_ubo() 154 return dma_obj->dma_addr + fb->offsets[1] + fb->pitches[1] * y + in drm_plane_state_to_ubo() 162 struct drm_gem_dma_object *dma_obj; in drm_plane_state_to_vbo() local 167 dma_obj = drm_fb_dma_get_gem_obj(fb, 2); in drm_plane_state_to_vbo() 168 BUG_ON(!dma_obj); in drm_plane_state_to_vbo() [all …]
|
/openbmc/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-plane.c | 150 struct drm_gem_dma_object *dma_obj; in dcss_plane_atomic_check() local 159 dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in dcss_plane_atomic_check() 160 WARN_ON(!dma_obj); in dcss_plane_atomic_check() 221 struct drm_gem_dma_object *dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in dcss_plane_atomic_set_base() local 227 p1_ba = dma_obj->dma_addr + fb->offsets[0] + in dcss_plane_atomic_set_base() 234 p1_ba = dma_obj->dma_addr + fb->offsets[0] + in dcss_plane_atomic_set_base() 240 p2_ba = dma_obj->dma_addr + fb->offsets[1] + in dcss_plane_atomic_set_base()
|
/openbmc/linux/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_kms.c | 375 struct drm_gem_dma_object *dma_obj; in rcar_du_gem_prime_import_sg_table() local 383 dma_obj = kzalloc(sizeof(*dma_obj), GFP_KERNEL); in rcar_du_gem_prime_import_sg_table() 384 if (!dma_obj) in rcar_du_gem_prime_import_sg_table() 387 gem_obj = &dma_obj->base; in rcar_du_gem_prime_import_sg_table() 391 dma_obj->map_noncoherent = false; in rcar_du_gem_prime_import_sg_table() 396 kfree(dma_obj); in rcar_du_gem_prime_import_sg_table() 400 dma_obj->dma_addr = 0; in rcar_du_gem_prime_import_sg_table() 401 dma_obj->sgt = sgt; in rcar_du_gem_prime_import_sg_table()
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_bo.c | 427 struct drm_gem_dma_object *dma_obj; in vc4_bo_create() local 444 dma_obj = drm_gem_dma_create(dev, size); in vc4_bo_create() 445 if (IS_ERR(dma_obj)) { in vc4_bo_create() 451 dma_obj = drm_gem_dma_create(dev, size); in vc4_bo_create() 454 if (IS_ERR(dma_obj)) { in vc4_bo_create() 467 dma_obj = drm_gem_dma_create(dev, size); in vc4_bo_create() 470 if (IS_ERR(dma_obj)) { in vc4_bo_create() 476 bo = to_vc4_bo(&dma_obj->base); in vc4_bo_create() 485 vc4_bo_set_label(&dma_obj->base, type); in vc4_bo_create()
|
/openbmc/linux/drivers/gpu/drm/arm/ |
H A D | malidp_planes.c | 327 struct drm_gem_dma_object *dma_obj; in malidp_check_pages_threshold() local 332 dma_obj = to_drm_gem_dma_obj(obj); in malidp_check_pages_threshold() 334 if (dma_obj->sgt) in malidp_check_pages_threshold() 335 sgt = dma_obj->sgt; in malidp_check_pages_threshold() 346 if (!dma_obj->sgt) in malidp_check_pages_threshold() 353 if (!dma_obj->sgt) in malidp_check_pages_threshold()
|
/openbmc/linux/drivers/gpu/drm/sti/ |
H A D | sti_cursor.c | 270 struct drm_gem_dma_object *dma_obj; in sti_cursor_atomic_update() local 281 dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in sti_cursor_atomic_update() 284 sti_cursor_argb8888_to_clut8(cursor, (u32 *)dma_obj->vaddr); in sti_cursor_atomic_update()
|
H A D | sti_gdp.c | 717 struct drm_gem_dma_object *dma_obj; in sti_gdp_atomic_update() local 781 dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in sti_gdp_atomic_update() 785 (unsigned long) dma_obj->dma_addr); in sti_gdp_atomic_update() 789 top_field->gam_gdp_pml = (u32) dma_obj->dma_addr + fb->offsets[0]; in sti_gdp_atomic_update() 834 (unsigned long) dma_obj->dma_addr, in sti_gdp_atomic_update()
|
H A D | sti_hqvdp.c | 1127 struct drm_gem_dma_object *dma_obj; in sti_hqvdp_atomic_update() local 1181 dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in sti_hqvdp_atomic_update() 1185 (unsigned long) dma_obj->dma_addr); in sti_hqvdp_atomic_update() 1188 cmd->top.current_luma = (u32) dma_obj->dma_addr + fb->offsets[0]; in sti_hqvdp_atomic_update() 1189 cmd->top.current_chroma = (u32) dma_obj->dma_addr + fb->offsets[1]; in sti_hqvdp_atomic_update()
|
/openbmc/linux/drivers/gpu/drm/sprd/ |
H A D | sprd_dpu.c | 323 struct drm_gem_dma_object *dma_obj; in sprd_dpu_layer() local 340 dma_obj = drm_fb_dma_get_gem_obj(fb, i); in sprd_dpu_layer() 341 addr = dma_obj->dma_addr + fb->offsets[i]; in sprd_dpu_layer()
|
/openbmc/linux/drivers/gpu/drm/tiny/ |
H A D | repaper.c | 514 struct drm_gem_dma_object *dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in repaper_fb_dirty() local 547 iosys_map_set_vaddr(&vmap, dma_obj->vaddr); in repaper_fb_dirty()
|