| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_ttm.c | 136 struct ttm_resource *old_mem) in radeon_move_blit() argument 146 old_start = (u64)old_mem->start << PAGE_SHIFT; in radeon_move_blit() 149 switch (old_mem->mem_type) { in radeon_move_blit() 157 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit() 168 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit() 193 struct ttm_resource *old_mem = bo->resource; in radeon_bo_move() local 208 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move() 213 if (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move() 219 if (old_mem->mem_type == TTM_PL_TT && in radeon_bo_move() 227 if ((old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move() [all …]
|
| /linux/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_kunit_helpers.c | 68 struct ttm_resource *old_mem = bo->resource; in mock_move() local 70 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm)) { in mock_move() 84 if ((old_mem->mem_type == TTM_PL_SYSTEM && in mock_move() 86 (old_mem->mem_type == TTM_PL_TT && in mock_move()
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_ttm.c | 142 struct ttm_resource *old_mem = bo->resource; in qxl_bo_move() local 145 if (!old_mem) { in qxl_bo_move() 162 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move()
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_ttm.c | 166 struct ttm_resource *old_mem = tbo->resource; in lsdc_bo_move() local 179 if (!old_mem) { in lsdc_bo_move() 187 if (old_mem->mem_type == TTM_PL_SYSTEM && !tbo->ttm) { in lsdc_bo_move() 194 if (old_mem->mem_type == TTM_PL_SYSTEM && in lsdc_bo_move() 202 if (old_mem->mem_type == TTM_PL_TT && in lsdc_bo_move() 213 lsdc_mem_type_to_str(old_mem->mem_type), in lsdc_bo_move()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ttm.c | 399 struct ttm_resource *old_mem) in amdgpu_move_blit() argument 411 src.mem = old_mem; in amdgpu_move_blit() 430 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit() 523 struct ttm_resource *old_mem = bo->resource; in amdgpu_bo_move() local 528 if (old_mem && (old_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move() 529 old_mem->mem_type == AMDGPU_PL_PREEMPT)) { in amdgpu_bo_move() 545 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move() 551 if (old_mem in amdgpu_bo_move() [all...] |
| H A D | amdgpu_object.c | 1273 struct ttm_resource *old_mem = bo->resource; in amdgpu_bo_move_notify() local 1285 old_mem && old_mem->mem_type != TTM_PL_SYSTEM) in amdgpu_bo_move_notify() 1290 old_mem ? old_mem->mem_type : -1); in amdgpu_bo_move_notify()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_bo.c | 908 struct nouveau_mem *old_mem = nouveau_mem(bo->resource); in nouveau_bo_move_prep() local 913 ret = nvif_vmm_get(vmm, LAZY, false, old_mem->mem.page, 0, in nouveau_bo_move_prep() 914 old_mem->mem.size, &old_mem->vma[0]); in nouveau_bo_move_prep() 919 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 923 ret = nouveau_mem_map(old_mem, vmm, &old_mem->vma[0]); in nouveau_bo_move_prep() 927 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep() 930 nvif_vmm_put(vmm, &old_mem->vma[1]); in nouveau_bo_move_prep() 931 nvif_vmm_put(vmm, &old_mem->vma[0]); in nouveau_bo_move_prep()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_ttm_buffer.c | 472 struct ttm_resource *old_mem, in vmw_move_notify() argument 476 vmw_query_move_notify(bo, old_mem, new_mem); in vmw_move_notify()
|
| H A D | vmwgfx_resource.c | 839 struct ttm_resource *old_mem, in vmw_query_move_notify() argument 849 if (old_mem && in vmw_query_move_notify() 851 old_mem->mem_type == VMW_PL_MOB) { in vmw_query_move_notify()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_bo.c | 904 struct ttm_resource *old_mem = ttm_bo->resource; in xe_bo_set_purgeable_state() 905 u32 old_mem_type = old_mem ? old_mem->mem_type : XE_PL_SYSTEM; in xe_bo_set_purgeable_state() 1063 struct ttm_resource *old_mem = ttm_bo->resource; in xe_bo_move() 1064 u32 old_mem_type = old_mem ? old_mem->mem_type : XE_PL_SYSTEM; in xe_bo_move() 1090 if ((!old_mem && ttm) && !handle_system_ccs) { in xe_bo_move() 1108 move_lacks_source = !old_mem || (handle_system_ccs ? (!bo->ccs_cleared) : in xe_bo_move() 1152 * Failed multi-hop where the old_mem is still marked as in xe_bo_move() 1243 fence = xe_migrate_copy(migrate, bo, bo, old_mem, new_me in xe_bo_shrink_purge() 810 struct ttm_resource *old_mem = ttm_bo->resource; xe_bo_move_notify() local 969 struct ttm_resource *old_mem = ttm_bo->resource; xe_bo_move() local [all...] |