Home
last modified time | relevance | path

Searched refs:old_mem (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/ttm/
Dttm_bo_util.c58 struct ttm_mem_reg *old_mem = &bo->mem; in ttm_bo_move_ttm() local
61 if (old_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm()
72 ttm_flag_masked(&old_mem->placement, TTM_PL_FLAG_SYSTEM, in ttm_bo_move_ttm()
74 old_mem->mem_type = TTM_PL_SYSTEM; in ttm_bo_move_ttm()
87 *old_mem = *new_mem; in ttm_bo_move_ttm()
363 struct ttm_mem_reg *old_mem = &bo->mem; in ttm_bo_move_memcpy() local
364 struct ttm_mem_reg old_copy = *old_mem; in ttm_bo_move_memcpy()
377 ret = ttm_mem_reg_ioremap(bdev, old_mem, &old_iomap); in ttm_bo_move_memcpy()
412 if ((old_mem->mem_type == new_mem->mem_type) && in ttm_bo_move_memcpy()
413 (new_mem->start < old_mem->start + old_mem->size)) { in ttm_bo_move_memcpy()
[all …]
/Linux-v5.4/drivers/gpu/drm/radeon/
Dradeon_ttm.c194 struct ttm_mem_reg *old_mem = &bo->mem; in radeon_move_null() local
196 BUG_ON(old_mem->mm_node != NULL); in radeon_move_null()
197 *old_mem = *new_mem; in radeon_move_null()
204 struct ttm_mem_reg *old_mem) in radeon_move_blit() argument
214 old_start = (u64)old_mem->start << PAGE_SHIFT; in radeon_move_blit()
217 switch (old_mem->mem_type) { in radeon_move_blit()
225 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
236 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
262 struct ttm_mem_reg *old_mem = &bo->mem; in radeon_move_vram_ram() local
291 r = radeon_move_blit(bo, true, no_wait_gpu, &tmp_mem, old_mem); in radeon_move_vram_ram()
[all …]
/Linux-v5.4/drivers/gpu/drm/qxl/
Dqxl_ttm.c265 struct ttm_mem_reg *old_mem = &bo->mem; in qxl_move_null() local
267 BUG_ON(old_mem->mm_node != NULL); in qxl_move_null()
268 *old_mem = *new_mem; in qxl_move_null()
276 struct ttm_mem_reg *old_mem = &bo->mem; in qxl_bo_move() local
283 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c245 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()
[all …]
Damdgpu_object.c1200 struct ttm_mem_reg *old_mem = &bo->mem; in amdgpu_bo_move_notify() local
1219 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify()
/Linux-v5.4/drivers/gpu/drm/nouveau/
Dnouveau_bo.c1095 struct nouveau_mem *old_mem = nouveau_mem(&bo->mem); in nouveau_bo_move_prep() local
1100 ret = nvif_vmm_get(vmm, LAZY, false, old_mem->mem.page, 0, in nouveau_bo_move_prep()
1101 old_mem->mem.size, &old_mem->vma[0]); in nouveau_bo_move_prep()
1106 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep()
1110 ret = nouveau_mem_map(old_mem, vmm, &old_mem->vma[0]); in nouveau_bo_move_prep()
1114 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
1117 nvif_vmm_put(vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
1118 nvif_vmm_put(vmm, &old_mem->vma[0]); in nouveau_bo_move_prep()