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

/linux-4.4.14/drivers/gpu/drm/ttm/
H A Dttm_bo_util.c52 struct ttm_mem_reg *old_mem = &bo->mem; ttm_bo_move_ttm() local
55 if (old_mem->mem_type != TTM_PL_SYSTEM) { ttm_bo_move_ttm()
58 ttm_flag_masked(&old_mem->placement, TTM_PL_FLAG_SYSTEM, ttm_bo_move_ttm()
60 old_mem->mem_type = TTM_PL_SYSTEM; ttm_bo_move_ttm()
73 *old_mem = *new_mem; ttm_bo_move_ttm()
330 struct ttm_mem_reg *old_mem = &bo->mem; ttm_bo_move_memcpy() local
331 struct ttm_mem_reg old_copy = *old_mem; ttm_bo_move_memcpy()
340 ret = ttm_mem_reg_ioremap(bdev, old_mem, &old_iomap); ttm_bo_move_memcpy()
375 if ((old_mem->mem_type == new_mem->mem_type) && ttm_bo_move_memcpy()
376 (new_mem->start < old_mem->start + old_mem->size)) { ttm_bo_move_memcpy()
384 pgprot_t prot = ttm_io_prot(old_mem->placement, ttm_bo_move_memcpy()
400 old_copy = *old_mem; ttm_bo_move_memcpy()
401 *old_mem = *new_mem; ttm_bo_move_memcpy()
411 ttm_mem_reg_iounmap(bdev, old_mem, new_iomap); ttm_bo_move_memcpy()
642 struct ttm_mem_reg *old_mem = &bo->mem; ttm_bo_move_accel_cleanup() local
691 *old_mem = *new_mem; ttm_bo_move_accel_cleanup()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c246 struct ttm_mem_reg *old_mem = &bo->mem; radeon_move_null() local
248 BUG_ON(old_mem->mm_node != NULL); radeon_move_null()
249 *old_mem = *new_mem; radeon_move_null()
256 struct ttm_mem_reg *old_mem) radeon_move_blit()
266 old_start = old_mem->start << PAGE_SHIFT; radeon_move_blit()
269 switch (old_mem->mem_type) { radeon_move_blit()
277 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); radeon_move_blit()
288 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); radeon_move_blit()
315 struct ttm_mem_reg *old_mem = &bo->mem; radeon_move_vram_ram() local
346 r = radeon_move_blit(bo, true, no_wait_gpu, &tmp_mem, old_mem); radeon_move_vram_ram()
362 struct ttm_mem_reg *old_mem = &bo->mem; radeon_move_ram_vram() local
387 r = radeon_move_blit(bo, true, no_wait_gpu, new_mem, old_mem); radeon_move_ram_vram()
402 struct ttm_mem_reg *old_mem = &bo->mem; radeon_bo_move() local
406 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { radeon_bo_move()
410 if ((old_mem->mem_type == TTM_PL_TT && radeon_bo_move()
412 (old_mem->mem_type == TTM_PL_SYSTEM && radeon_bo_move()
424 if (old_mem->mem_type == TTM_PL_VRAM && radeon_bo_move()
428 } else if (old_mem->mem_type == TTM_PL_SYSTEM && radeon_bo_move()
433 r = radeon_move_blit(bo, evict, no_wait_gpu, new_mem, old_mem); radeon_bo_move()
253 radeon_move_blit(struct ttm_buffer_object *bo, bool evict, bool no_wait_gpu, struct ttm_mem_reg *new_mem, struct ttm_mem_reg *old_mem) radeon_move_blit() argument
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c216 struct ttm_mem_reg *old_mem = &bo->mem; amdgpu_move_null() local
218 BUG_ON(old_mem->mm_node != NULL); amdgpu_move_null()
219 *old_mem = *new_mem; amdgpu_move_null()
226 struct ttm_mem_reg *old_mem) amdgpu_move_blit()
236 old_start = old_mem->start << PAGE_SHIFT; amdgpu_move_blit()
239 switch (old_mem->mem_type) { amdgpu_move_blit()
247 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); amdgpu_move_blit()
258 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); amdgpu_move_blit()
284 struct ttm_mem_reg *old_mem = &bo->mem; amdgpu_move_vram_ram() local
315 r = amdgpu_move_blit(bo, true, no_wait_gpu, &tmp_mem, old_mem); amdgpu_move_vram_ram()
331 struct ttm_mem_reg *old_mem = &bo->mem; amdgpu_move_ram_vram() local
356 r = amdgpu_move_blit(bo, true, no_wait_gpu, new_mem, old_mem); amdgpu_move_ram_vram()
371 struct ttm_mem_reg *old_mem = &bo->mem; amdgpu_bo_move() local
375 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { amdgpu_bo_move()
379 if ((old_mem->mem_type == TTM_PL_TT && amdgpu_bo_move()
381 (old_mem->mem_type == TTM_PL_SYSTEM && amdgpu_bo_move()
394 if (old_mem->mem_type == TTM_PL_VRAM && amdgpu_bo_move()
398 } else if (old_mem->mem_type == TTM_PL_SYSTEM && amdgpu_bo_move()
403 r = amdgpu_move_blit(bo, evict, no_wait_gpu, new_mem, old_mem); amdgpu_bo_move()
223 amdgpu_move_blit(struct ttm_buffer_object *bo, bool evict, bool no_wait_gpu, struct ttm_mem_reg *new_mem, struct ttm_mem_reg *old_mem) amdgpu_move_blit() argument
H A Damdgpu_object.c58 struct ttm_mem_reg *old_mem, amdgpu_update_memory_usage()
78 if (old_mem) { amdgpu_update_memory_usage()
79 switch (old_mem->mem_type) { amdgpu_update_memory_usage()
81 atomic64_sub(old_mem->size, &adev->gtt_usage); amdgpu_update_memory_usage()
84 atomic64_sub(old_mem->size, &adev->vram_usage); amdgpu_update_memory_usage()
85 vis_size = amdgpu_get_vis_part_size(adev, old_mem); amdgpu_update_memory_usage()
57 amdgpu_update_memory_usage(struct amdgpu_device *adev, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) amdgpu_update_memory_usage() argument
/linux-4.4.14/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c340 struct ttm_mem_reg *old_mem = &bo->mem; qxl_move_null() local
342 BUG_ON(old_mem->mm_node != NULL); qxl_move_null()
343 *old_mem = *new_mem; qxl_move_null()
352 struct ttm_mem_reg *old_mem = &bo->mem; qxl_bo_move() local
353 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { qxl_bo_move()
/linux-4.4.14/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c690 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nve0_bo_move_copy()
692 struct nvkm_mem *node = old_mem->mm_node; nve0_bo_move_copy()
722 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nvc0_bo_move_copy()
724 struct nvkm_mem *node = old_mem->mm_node; nvc0_bo_move_copy()
760 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nvc0_bo_move_m2mf()
762 struct nvkm_mem *node = old_mem->mm_node; nvc0_bo_move_m2mf()
799 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nva3_bo_move_copy()
801 struct nvkm_mem *node = old_mem->mm_node; nva3_bo_move_copy()
837 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nv98_bo_move_exec()
839 struct nvkm_mem *node = old_mem->mm_node; nv98_bo_move_exec()
855 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nv84_bo_move_exec()
857 struct nvkm_mem *node = old_mem->mm_node; nv84_bo_move_exec()
889 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nv50_bo_move_m2mf()
891 struct nvkm_mem *node = old_mem->mm_node; nv50_bo_move_m2mf()
985 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nv04_bo_move_m2mf()
987 u32 src_offset = old_mem->start << PAGE_SHIFT; nv04_bo_move_m2mf()
997 OUT_RING (chan, nouveau_bo_mem_ctxdma(bo, chan, old_mem)); nv04_bo_move_m2mf()
1288 struct ttm_mem_reg *old_mem = &bo->mem; nouveau_bo_move() local
1302 if (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm) { nouveau_bo_move()
1314 else if (old_mem->mem_type == TTM_PL_SYSTEM) nouveau_bo_move()
689 nve0_bo_move_copy(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nve0_bo_move_copy() argument
721 nvc0_bo_move_copy(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nvc0_bo_move_copy() argument
759 nvc0_bo_move_m2mf(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nvc0_bo_move_m2mf() argument
798 nva3_bo_move_copy(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nva3_bo_move_copy() argument
836 nv98_bo_move_exec(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nv98_bo_move_exec() argument
854 nv84_bo_move_exec(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nv84_bo_move_exec() argument
888 nv50_bo_move_m2mf(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nv50_bo_move_m2mf() argument
984 nv04_bo_move_m2mf(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) nv04_bo_move_m2mf() argument
/linux-4.4.14/drivers/gpu/drm/virtio/
H A Dvirtgpu_ttm.c366 struct ttm_mem_reg *old_mem = &bo->mem; virtio_gpu_move_null() local
368 BUG_ON(old_mem->mm_node != NULL); virtio_gpu_move_null()
369 *old_mem = *new_mem; virtio_gpu_move_null()

Completed in 315 milliseconds