/Linux-v5.4/drivers/gpu/drm/ |
D | drm_gem_vram_helper.c | 23 static void drm_gem_vram_cleanup(struct drm_gem_vram_object *gbo) in drm_gem_vram_cleanup() argument 29 drm_gem_object_release(&gbo->bo.base); in drm_gem_vram_cleanup() 32 static void drm_gem_vram_destroy(struct drm_gem_vram_object *gbo) in drm_gem_vram_destroy() argument 34 drm_gem_vram_cleanup(gbo); in drm_gem_vram_destroy() 35 kfree(gbo); in drm_gem_vram_destroy() 40 struct drm_gem_vram_object *gbo = drm_gem_vram_of_bo(bo); in ttm_buffer_object_destroy() local 42 drm_gem_vram_destroy(gbo); in ttm_buffer_object_destroy() 45 static void drm_gem_vram_placement(struct drm_gem_vram_object *gbo, in drm_gem_vram_placement() argument 51 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement() 52 gbo->placement.busy_placement = gbo->placements; in drm_gem_vram_placement() [all …]
|
/Linux-v5.4/include/drm/ |
D | drm_gem_vram_helper.h | 78 void drm_gem_vram_put(struct drm_gem_vram_object *gbo); 79 u64 drm_gem_vram_mmap_offset(struct drm_gem_vram_object *gbo); 80 s64 drm_gem_vram_offset(struct drm_gem_vram_object *gbo); 81 int drm_gem_vram_pin(struct drm_gem_vram_object *gbo, unsigned long pl_flag); 82 int drm_gem_vram_unpin(struct drm_gem_vram_object *gbo); 83 void *drm_gem_vram_kmap(struct drm_gem_vram_object *gbo, bool map, 85 void drm_gem_vram_kunmap(struct drm_gem_vram_object *gbo);
|
/Linux-v5.4/drivers/gpu/drm/vboxvideo/ |
D | vbox_fb.c | 54 struct drm_gem_vram_object *gbo; in vboxfb_create() local 78 gbo = drm_gem_vram_of_gem(gobj); in vboxfb_create() 80 ret = drm_gem_vram_pin(gbo, DRM_GEM_VRAM_PL_FLAG_VRAM); in vboxfb_create() 89 info->screen_base = (char __iomem *)drm_gem_vram_kmap(gbo, true, NULL); in vboxfb_create() 107 gpu_addr = drm_gem_vram_offset(gbo); in vboxfb_create() 137 struct drm_gem_vram_object *gbo = drm_gem_vram_of_gem(afb->obj); in vbox_fbdev_fini() local 139 drm_gem_vram_kunmap(gbo); in vbox_fbdev_fini() 140 drm_gem_vram_unpin(gbo); in vbox_fbdev_fini()
|
D | vbox_mode.c | 175 struct drm_gem_vram_object *gbo = in vbox_crtc_set_base_and_mode() local 190 vbox_crtc->fb_offset = drm_gem_vram_offset(gbo); in vbox_crtc_set_base_and_mode() 306 struct drm_gem_vram_object *gbo; in vbox_primary_prepare_fb() local 312 gbo = drm_gem_vram_of_gem(to_vbox_framebuffer(new_state->fb)->obj); in vbox_primary_prepare_fb() 313 ret = drm_gem_vram_pin(gbo, DRM_GEM_VRAM_PL_FLAG_VRAM); in vbox_primary_prepare_fb() 323 struct drm_gem_vram_object *gbo; in vbox_primary_cleanup_fb() local 328 gbo = drm_gem_vram_of_gem(to_vbox_framebuffer(old_state->fb)->obj); in vbox_primary_cleanup_fb() 329 drm_gem_vram_unpin(gbo); in vbox_primary_cleanup_fb() 389 struct drm_gem_vram_object *gbo = in vbox_cursor_atomic_update() local 409 src = drm_gem_vram_kmap(gbo, true, NULL); in vbox_cursor_atomic_update() [all …]
|
D | vbox_main.c | 277 struct drm_gem_vram_object *gbo; in vbox_gem_create() local 286 gbo = drm_gem_vram_create(&vbox->ddev, &vbox->ddev.vram_mm->bdev, in vbox_gem_create() 288 if (IS_ERR(gbo)) { in vbox_gem_create() 289 ret = PTR_ERR(gbo); in vbox_gem_create() 295 *obj = &gbo->bo.base; in vbox_gem_create()
|
/Linux-v5.4/drivers/gpu/drm/bochs/ |
D | bochs_kms.c | 32 struct drm_gem_vram_object *gbo; in bochs_plane_update() local 37 gbo = drm_gem_vram_of_gem(state->fb->obj[0]); in bochs_plane_update() 42 state->fb->offsets[0] + gbo->bo.offset); in bochs_plane_update() 75 struct drm_gem_vram_object *gbo; in bochs_pipe_prepare_fb() local 79 gbo = drm_gem_vram_of_gem(new_state->fb->obj[0]); in bochs_pipe_prepare_fb() 80 return drm_gem_vram_pin(gbo, DRM_GEM_VRAM_PL_FLAG_VRAM); in bochs_pipe_prepare_fb() 86 struct drm_gem_vram_object *gbo; in bochs_pipe_cleanup_fb() local 90 gbo = drm_gem_vram_of_gem(old_state->fb->obj[0]); in bochs_pipe_cleanup_fb() 91 drm_gem_vram_unpin(gbo); in bochs_pipe_cleanup_fb()
|
/Linux-v5.4/drivers/gpu/drm/hisilicon/hibmc/ |
D | hibmc_drm_fbdev.c | 65 struct drm_gem_vram_object *gbo = NULL; in hibmc_drm_fb_create() local 88 gbo = drm_gem_vram_of_gem(gobj); in hibmc_drm_fb_create() 90 ret = drm_gem_vram_pin(gbo, DRM_GEM_VRAM_PL_FLAG_VRAM); in hibmc_drm_fb_create() 96 base = drm_gem_vram_kmap(gbo, true, NULL); in hibmc_drm_fb_create() 128 info->fix.smem_start = gbo->bo.mem.bus.offset + gbo->bo.mem.bus.base; in hibmc_drm_fb_create() 133 drm_gem_vram_kunmap(gbo); in hibmc_drm_fb_create() 135 drm_gem_vram_unpin(gbo); in hibmc_drm_fb_create()
|
D | hibmc_ttm.c | 53 struct drm_gem_vram_object *gbo; in hibmc_gem_create() local 62 gbo = drm_gem_vram_create(dev, &dev->vram_mm->bdev, size, 0, false); in hibmc_gem_create() 63 if (IS_ERR(gbo)) { in hibmc_gem_create() 64 ret = PTR_ERR(gbo); in hibmc_gem_create() 69 *obj = &gbo->bo.base; in hibmc_gem_create()
|
D | hibmc_drm_de.c | 104 struct drm_gem_vram_object *gbo; in hibmc_plane_atomic_update() local 110 gbo = drm_gem_vram_of_gem(hibmc_fb->obj); in hibmc_plane_atomic_update() 112 ret = drm_gem_vram_pin(gbo, DRM_GEM_VRAM_PL_FLAG_VRAM); in hibmc_plane_atomic_update() 117 gpu_addr = drm_gem_vram_offset(gbo); in hibmc_plane_atomic_update() 119 drm_gem_vram_unpin(gbo); in hibmc_plane_atomic_update()
|
/Linux-v5.4/drivers/gpu/drm/mgag200/ |
D | mgag200_cursor.c | 41 struct drm_gem_vram_object *gbo = NULL; in mga_crtc_cursor_set() local 87 gbo = drm_gem_vram_of_gem(obj); in mga_crtc_cursor_set() 88 ret = drm_gem_vram_pin(gbo, 0); in mga_crtc_cursor_set() 93 src = drm_gem_vram_kmap(gbo, true, NULL); in mga_crtc_cursor_set() 216 drm_gem_vram_kunmap(gbo); in mga_crtc_cursor_set() 217 drm_gem_vram_unpin(gbo); in mga_crtc_cursor_set() 227 drm_gem_vram_kunmap(gbo); in mga_crtc_cursor_set() 229 drm_gem_vram_unpin(gbo); in mga_crtc_cursor_set()
|
D | mgag200_mode.c | 863 struct drm_gem_vram_object *gbo; in mga_crtc_do_set_base() local 868 gbo = drm_gem_vram_of_gem(fb->obj[0]); in mga_crtc_do_set_base() 869 drm_gem_vram_unpin(gbo); in mga_crtc_do_set_base() 872 gbo = drm_gem_vram_of_gem(crtc->primary->fb->obj[0]); in mga_crtc_do_set_base() 874 ret = drm_gem_vram_pin(gbo, DRM_GEM_VRAM_PL_FLAG_VRAM); in mga_crtc_do_set_base() 877 gpu_addr = drm_gem_vram_offset(gbo); in mga_crtc_do_set_base() 888 drm_gem_vram_unpin(gbo); in mga_crtc_do_set_base() 1407 struct drm_gem_vram_object *gbo = in mga_crtc_disable() local 1409 drm_gem_vram_unpin(gbo); in mga_crtc_disable()
|
/Linux-v5.4/drivers/gpu/drm/ast/ |
D | ast_mode.c | 532 struct drm_gem_vram_object *gbo; in ast_crtc_do_set_base() local 537 gbo = drm_gem_vram_of_gem(fb->obj[0]); in ast_crtc_do_set_base() 538 drm_gem_vram_unpin(gbo); in ast_crtc_do_set_base() 541 gbo = drm_gem_vram_of_gem(crtc->primary->fb->obj[0]); in ast_crtc_do_set_base() 543 ret = drm_gem_vram_pin(gbo, DRM_GEM_VRAM_PL_FLAG_VRAM); in ast_crtc_do_set_base() 546 gpu_addr = drm_gem_vram_offset(gbo); in ast_crtc_do_set_base() 558 drm_gem_vram_unpin(gbo); in ast_crtc_do_set_base() 609 struct drm_gem_vram_object *gbo = in ast_crtc_disable() local 612 drm_gem_vram_unpin(gbo); in ast_crtc_disable() 901 struct drm_gem_vram_object *gbo; in ast_cursor_init() local [all …]
|
D | ast_main.c | 544 struct drm_gem_vram_object *gbo; in ast_gem_create() local 553 gbo = drm_gem_vram_create(dev, &dev->vram_mm->bdev, size, 0, false); in ast_gem_create() 554 if (IS_ERR(gbo)) { in ast_gem_create() 555 ret = PTR_ERR(gbo); in ast_gem_create() 560 *obj = &gbo->bo.base; in ast_gem_create()
|