Home
last modified time | relevance | path

Searched refs:old_mem (Results 1 - 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
H A Dttm_bo_util.c58 struct ttm_resource *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 old_mem->mem_type = TTM_PL_SYSTEM; in ttm_bo_move_ttm()
224 struct ttm_resource *old_mem = &bo->mem; in ttm_bo_move_memcpy() local
225 struct ttm_resource old_copy = *old_mem; in ttm_bo_move_memcpy()
238 ret = ttm_resource_ioremap(bdev, old_mem, &old_iomap); in ttm_bo_move_memcpy()
273 if ((old_mem->mem_type == new_mem->mem_type) && in ttm_bo_move_memcpy()
274 (new_mem->start < old_mem->start + old_mem->size)) { in ttm_bo_move_memcpy()
282 pgprot_t prot = ttm_io_prot(old_mem in ttm_bo_move_memcpy()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c141 struct ttm_resource *old_mem) in radeon_move_blit()
151 old_start = (u64)old_mem->start << PAGE_SHIFT; in radeon_move_blit()
154 switch (old_mem->mem_type) { in radeon_move_blit()
162 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
173 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
198 struct ttm_resource *old_mem = bo->resource; in radeon_bo_move() local
215 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
220 if (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
226 if (old_mem in radeon_bo_move()
138 radeon_move_blit(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem, struct ttm_resource *old_mem) radeon_move_blit() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c156 struct ttm_resource *old_mem) in radeon_move_blit()
166 old_start = (u64)old_mem->start << PAGE_SHIFT; in radeon_move_blit()
169 switch (old_mem->mem_type) { in radeon_move_blit()
177 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
188 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
214 struct ttm_resource *old_mem = &bo->mem; in radeon_move_vram_ram() local
249 r = radeon_move_blit(bo, true, no_wait_gpu, &tmp_mem, old_mem); in radeon_move_vram_ram()
265 struct ttm_resource *old_mem = &bo->mem; in radeon_move_ram_vram() local
289 r = radeon_move_blit(bo, true, no_wait_gpu, new_mem, old_mem); in radeon_move_ram_vram()
304 struct ttm_resource *old_mem in radeon_bo_move() local
153 radeon_move_blit(struct ttm_buffer_object *bo, bool evict, bool no_wait_gpu, struct ttm_resource *new_mem, struct ttm_resource *old_mem) radeon_move_blit() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c167 struct ttm_resource *old_mem = tbo->resource; in lsdc_bo_move() local
180 if (!old_mem) { in lsdc_bo_move()
188 if (old_mem->mem_type == TTM_PL_SYSTEM && !tbo->ttm) { in lsdc_bo_move()
195 if (old_mem->mem_type == TTM_PL_SYSTEM && in lsdc_bo_move()
203 if (old_mem->mem_type == TTM_PL_TT && in lsdc_bo_move()
214 lsdc_mem_type_to_str(old_mem->mem_type), in lsdc_bo_move()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c464 struct ttm_resource *old_mem) in amdgpu_move_blit()
474 src.mem = old_mem; in amdgpu_move_blit()
487 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
525 struct ttm_resource *old_mem = &bo->mem; in amdgpu_move_vram_ram() local
565 r = amdgpu_move_blit(bo, evict, &tmp_mem, old_mem); in amdgpu_move_vram_ram()
586 struct ttm_resource *old_mem = &bo->mem; in amdgpu_move_ram_vram() local
592 /* make space in GTT for old_mem buffer */ in amdgpu_move_ram_vram()
616 r = amdgpu_move_blit(bo, evict, new_mem, old_mem); in amdgpu_move_ram_vram()
660 struct ttm_resource *old_mem = &bo->mem; in amdgpu_bo_move() local
670 if (old_mem in amdgpu_bo_move()
461 amdgpu_move_blit(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem, struct ttm_resource *old_mem) amdgpu_move_blit() argument
[all...]
H A Damdgpu_object.c1288 struct ttm_resource *old_mem = &bo->mem; in amdgpu_bo_move_notify() local
1311 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c359 struct ttm_resource *old_mem) in amdgpu_move_blit()
369 src.mem = old_mem; in amdgpu_move_blit()
382 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
459 struct ttm_resource *old_mem = bo->resource; in amdgpu_bo_move() local
472 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
477 if (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
483 if ((old_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
484 old_mem->mem_type == AMDGPU_PL_PREEMPT) && in amdgpu_bo_move()
496 if (old_mem in amdgpu_bo_move()
356 amdgpu_move_blit(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem, struct ttm_resource *old_mem) amdgpu_move_blit() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c143 struct ttm_resource *old_mem = bo->resource; in qxl_bo_move() local
146 if (!old_mem) { in qxl_bo_move()
163 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c771 struct nouveau_mem *old_mem = nouveau_mem(&bo->mem); in nouveau_bo_move_prep() local
776 ret = nvif_vmm_get(vmm, LAZY, false, old_mem->mem.page, 0, in nouveau_bo_move_prep()
777 old_mem->mem.size, &old_mem->vma[0]); in nouveau_bo_move_prep()
782 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep()
786 ret = nouveau_mem_map(old_mem, vmm, &old_mem->vma[0]); in nouveau_bo_move_prep()
790 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
793 nvif_vmm_put(vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
794 nvif_vmm_put(vmm, &old_mem in nouveau_bo_move_prep()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c817 struct nouveau_mem *old_mem = nouveau_mem(bo->resource); in nouveau_bo_move_prep() local
822 ret = nvif_vmm_get(vmm, LAZY, false, old_mem->mem.page, 0, in nouveau_bo_move_prep()
823 old_mem->mem.size, &old_mem->vma[0]); in nouveau_bo_move_prep()
828 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep()
832 ret = nouveau_mem_map(old_mem, vmm, &old_mem->vma[0]); in nouveau_bo_move_prep()
836 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
839 nvif_vmm_put(vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
840 nvif_vmm_put(vmm, &old_mem in nouveau_bo_move_prep()
[all...]
/kernel/linux/linux-5.10/include/drm/ttm/
H A Dttm_bo_driver.h559 struct ttm_resource *old_mem = &bo->mem; in ttm_bo_move_null() local
561 WARN_ON(old_mem->mm_node != NULL); in ttm_bo_move_null()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c160 struct ttm_resource *old_mem = &bo->mem; in qxl_bo_move() local
167 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move()
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_buffer.c480 * @old_mem: The old memory where we move from
488 struct ttm_resource *old_mem, in vmw_move_notify()
492 vmw_query_move_notify(bo, old_mem, new_mem); in vmw_move_notify()
487 vmw_move_notify(struct ttm_buffer_object *bo, struct ttm_resource *old_mem, struct ttm_resource *new_mem) vmw_move_notify() argument
H A Dvmwgfx_resource.c823 * @old_mem: The memory region @bo is moving from.
830 struct ttm_resource *old_mem, in vmw_query_move_notify()
840 if (old_mem && in vmw_query_move_notify()
842 old_mem->mem_type == VMW_PL_MOB) { in vmw_query_move_notify()
829 vmw_query_move_notify(struct ttm_buffer_object *bo, struct ttm_resource *old_mem, struct ttm_resource *new_mem) vmw_query_move_notify() argument
H A Dvmwgfx_drv.h830 struct ttm_resource *old_mem,

Completed in 18 milliseconds