Home
last modified time | relevance | path

Searched refs:dma_obj (Results 1 – 13 of 13) sorted by relevance

/linux-6.3-rc2/drivers/gpu/drm/
A Ddrm_gem_dma_helper.c83 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 …]
A Ddrm_fb_dma_helper.c126 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()
/linux-6.3-rc2/include/drm/
A Ddrm_gem_dma_helper.h37 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 …]
/linux-6.3-rc2/drivers/gpu/drm/imx/ipuv3/
A Dipuv3-plane.c128 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 …]
/linux-6.3-rc2/drivers/gpu/drm/imx/dcss/
A Ddcss-plane.c150 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()
/linux-6.3-rc2/drivers/gpu/drm/rcar-du/
A Drcar_du_kms.c373 struct drm_gem_dma_object *dma_obj; in rcar_du_gem_prime_import_sg_table() local
381 dma_obj = kzalloc(sizeof(*dma_obj), GFP_KERNEL); in rcar_du_gem_prime_import_sg_table()
382 if (!dma_obj) in rcar_du_gem_prime_import_sg_table()
385 gem_obj = &dma_obj->base; in rcar_du_gem_prime_import_sg_table()
389 dma_obj->map_noncoherent = false; in rcar_du_gem_prime_import_sg_table()
394 kfree(dma_obj); in rcar_du_gem_prime_import_sg_table()
398 dma_obj->dma_addr = 0; in rcar_du_gem_prime_import_sg_table()
399 dma_obj->sgt = sgt; in rcar_du_gem_prime_import_sg_table()
/linux-6.3-rc2/drivers/gpu/drm/vc4/
A Dvc4_bo.c427 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()
/linux-6.3-rc2/drivers/gpu/drm/arm/
A Dmalidp_planes.c327 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()
/linux-6.3-rc2/drivers/gpu/drm/sti/
A Dsti_cursor.c270 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()
A Dsti_gdp.c717 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()
A Dsti_hqvdp.c1127 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()
/linux-6.3-rc2/drivers/gpu/drm/sprd/
A Dsprd_dpu.c325 struct drm_gem_dma_object *dma_obj; in sprd_dpu_layer() local
342 dma_obj = drm_fb_dma_get_gem_obj(fb, i); in sprd_dpu_layer()
343 addr = dma_obj->dma_addr + fb->offsets[i]; in sprd_dpu_layer()
/linux-6.3-rc2/drivers/gpu/drm/tiny/
A Drepaper.c514 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()

Completed in 32 milliseconds