Lines Matching refs:old_mem
245 struct ttm_mem_reg *old_mem = &bo->mem; in amdgpu_move_null() local
247 BUG_ON(old_mem->mm_node != NULL); in amdgpu_move_null()
248 *old_mem = *new_mem; in amdgpu_move_null()
427 struct ttm_mem_reg *old_mem) in amdgpu_move_blit() argument
436 src.mem = old_mem; in amdgpu_move_blit()
448 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
488 struct ttm_mem_reg *old_mem = &bo->mem; in amdgpu_move_vram_ram() local
525 r = amdgpu_move_blit(bo, evict, ctx->no_wait_gpu, &tmp_mem, old_mem); in amdgpu_move_vram_ram()
547 struct ttm_mem_reg *old_mem = &bo->mem; in amdgpu_move_ram_vram() local
578 r = amdgpu_move_blit(bo, evict, ctx->no_wait_gpu, new_mem, old_mem); in amdgpu_move_ram_vram()
622 struct ttm_mem_reg *old_mem = &bo->mem; in amdgpu_bo_move() local
632 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in amdgpu_bo_move()
636 if ((old_mem->mem_type == TTM_PL_TT && in amdgpu_bo_move()
638 (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
644 if (old_mem->mem_type == AMDGPU_PL_GDS || in amdgpu_bo_move()
645 old_mem->mem_type == AMDGPU_PL_GWS || in amdgpu_bo_move()
646 old_mem->mem_type == AMDGPU_PL_OA || in amdgpu_bo_move()
660 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
663 } else if (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
668 new_mem, old_mem); in amdgpu_bo_move()
674 if (!amdgpu_mem_visible(adev, old_mem) || in amdgpu_bo_move()
687 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move()