Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/
Ddrm_gem_dma_helper.c73 struct drm_gem_dma_object *dma_obj; in __drm_gem_dma_create() local
81 dma_obj = to_drm_gem_dma_obj(gem_obj); in __drm_gem_dma_create()
83 dma_obj = kzalloc(sizeof(*dma_obj), GFP_KERNEL); in __drm_gem_dma_create()
84 if (!dma_obj) in __drm_gem_dma_create()
86 gem_obj = &dma_obj->base; in __drm_gem_dma_create()
96 dma_obj->map_noncoherent = false; in __drm_gem_dma_create()
109 return dma_obj; in __drm_gem_dma_create()
112 kfree(dma_obj); in __drm_gem_dma_create()
137 struct drm_gem_dma_object *dma_obj; in drm_gem_dma_create() local
142 dma_obj = __drm_gem_dma_create(drm, size, false); in drm_gem_dma_create()
[all …]
Ddrm_fb_dma_helper.c127 const struct drm_gem_dma_object *dma_obj; in drm_fb_dma_sync_non_coherent() local
134 dma_obj = drm_fb_dma_get_gem_obj(state->fb, i); in drm_fb_dma_sync_non_coherent()
135 if (!dma_obj->map_noncoherent) in drm_fb_dma_sync_non_coherent()
167 struct drm_gem_dma_object *dma_obj; in drm_fb_dma_get_scanout_buffer() local
178 dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in drm_fb_dma_get_scanout_buffer()
181 if (dma_obj->base.import_attach) in drm_fb_dma_get_scanout_buffer()
185 if (!dma_obj->vaddr) in drm_fb_dma_get_scanout_buffer()
188 iosys_map_set_vaddr(&sb->map[0], dma_obj->vaddr); in drm_fb_dma_get_scanout_buffer()
Ddrm_fbdev_dma.c113 struct drm_gem_dma_object *dma_obj; in drm_fbdev_dma_helper_fb_probe() local
130 dma_obj = to_drm_gem_dma_obj(buffer->gem); in drm_fbdev_dma_helper_fb_probe()
169 if (dma_obj->map_noncoherent) in drm_fbdev_dma_helper_fb_probe()
/linux-6.12.1/include/drm/
Ddrm_gem_dma_helper.h37 void drm_gem_dma_free(struct drm_gem_dma_object *dma_obj);
38 void drm_gem_dma_print_info(const struct drm_gem_dma_object *dma_obj,
40 struct sg_table *drm_gem_dma_get_sg_table(struct drm_gem_dma_object *dma_obj);
41 int drm_gem_dma_vmap(struct drm_gem_dma_object *dma_obj,
43 int drm_gem_dma_mmap(struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma);
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()
77 const struct drm_gem_dma_object *dma_obj = to_drm_gem_dma_obj(obj); in drm_gem_dma_object_print_info() local
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
[all …]
/linux-6.12.1/drivers/gpu/drm/imx/dcss/
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.12.1/drivers/gpu/drm/imx/ipuv3/
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()
135 return dma_obj->dma_addr + fb->offsets[plane] + fb->pitches[plane] * y + 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()
[all …]
/linux-6.12.1/drivers/gpu/drm/renesas/rcar-du/
Drcar_du_kms.c375 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()
/linux-6.12.1/drivers/gpu/drm/vc4/
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.12.1/drivers/gpu/drm/arm/
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.12.1/drivers/gpu/drm/sti/
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()
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()
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.12.1/drivers/gpu/drm/sprd/
Dsprd_dpu.c323 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()
/linux-6.12.1/drivers/gpu/drm/tiny/
Drepaper.c515 struct drm_gem_dma_object *dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in repaper_fb_dirty() local
548 iosys_map_set_vaddr(&vmap, dma_obj->vaddr); in repaper_fb_dirty()