Lines Matching refs:new_mem
587 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nve0_bo_move_copy() argument
600 OUT_RING (chan, new_mem->num_pages); in nve0_bo_move_copy()
619 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nvc0_bo_move_copy() argument
624 u32 page_count = new_mem->num_pages; in nvc0_bo_move_copy()
627 page_count = new_mem->num_pages; in nvc0_bo_move_copy()
657 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nvc0_bo_move_m2mf() argument
662 u32 page_count = new_mem->num_pages; in nvc0_bo_move_m2mf()
665 page_count = new_mem->num_pages; in nvc0_bo_move_m2mf()
696 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nva3_bo_move_copy() argument
701 u32 page_count = new_mem->num_pages; in nva3_bo_move_copy()
704 page_count = new_mem->num_pages; in nva3_bo_move_copy()
734 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nv98_bo_move_exec() argument
745 OUT_RING (chan, new_mem->num_pages << PAGE_SHIFT); in nv98_bo_move_exec()
752 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nv84_bo_move_exec() argument
758 OUT_RING (chan, new_mem->num_pages << PAGE_SHIFT); in nv84_bo_move_exec()
786 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nv50_bo_move_m2mf() argument
789 u64 length = (new_mem->num_pages << PAGE_SHIFT); in nv50_bo_move_m2mf()
793 int dst_tiled = !!((struct nouveau_mem *)new_mem->mm_node)->memtype; in nv50_bo_move_m2mf()
882 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nv04_bo_move_m2mf() argument
885 u32 dst_offset = new_mem->start << PAGE_SHIFT; in nv04_bo_move_m2mf()
886 u32 page_count = new_mem->num_pages; in nv04_bo_move_m2mf()
895 OUT_RING (chan, nouveau_bo_mem_ctxdma(bo, chan, new_mem)); in nv04_bo_move_m2mf()
897 page_count = new_mem->num_pages; in nv04_bo_move_m2mf()
954 bool no_wait_gpu, struct ttm_mem_reg *new_mem) in nouveau_bo_move_m2mf() argument
967 ret = nouveau_bo_move_prep(drm, bo, new_mem); in nouveau_bo_move_m2mf()
975 ret = drm->ttm.move(chan, bo, &bo->mem, new_mem); in nouveau_bo_move_m2mf()
983 new_mem); in nouveau_bo_move_m2mf()
1052 bool no_wait_gpu, struct ttm_mem_reg *new_mem) in nouveau_bo_move_flipd() argument
1066 tmp_mem = *new_mem; in nouveau_bo_move_flipd()
1080 ret = ttm_bo_move_ttm(bo, true, no_wait_gpu, new_mem); in nouveau_bo_move_flipd()
1088 bool no_wait_gpu, struct ttm_mem_reg *new_mem) in nouveau_bo_move_flips() argument
1102 tmp_mem = *new_mem; in nouveau_bo_move_flips()
1112 ret = nouveau_bo_move_m2mf(bo, true, intr, no_wait_gpu, new_mem); in nouveau_bo_move_flips()
1122 nouveau_bo_move_ntfy(struct ttm_buffer_object *bo, struct ttm_mem_reg *new_mem) in nouveau_bo_move_ntfy() argument
1132 if (new_mem && new_mem->mem_type != TTM_PL_SYSTEM && in nouveau_bo_move_ntfy()
1133 (new_mem->mem_type == TTM_PL_VRAM || in nouveau_bo_move_ntfy()
1135 nouveau_vm_map(vma, new_mem->mm_node); in nouveau_bo_move_ntfy()
1143 nouveau_bo_vm_bind(struct ttm_buffer_object *bo, struct ttm_mem_reg *new_mem, in nouveau_bo_vm_bind() argument
1149 u64 offset = new_mem->start << PAGE_SHIFT; in nouveau_bo_vm_bind()
1152 if (new_mem->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind()
1156 *new_tile = nv10_bo_set_tiling(dev, offset, new_mem->size, in nouveau_bo_vm_bind()
1179 bool no_wait_gpu, struct ttm_mem_reg *new_mem) in nouveau_bo_move() argument
1188 ret = nouveau_bo_vm_bind(bo, new_mem, &new_tile); in nouveau_bo_move()
1196 bo->mem = *new_mem; in nouveau_bo_move()
1197 new_mem->mm_node = NULL; in nouveau_bo_move()
1203 if (new_mem->mem_type == TTM_PL_SYSTEM) in nouveau_bo_move()
1205 no_wait_gpu, new_mem); in nouveau_bo_move()
1208 no_wait_gpu, new_mem); in nouveau_bo_move()
1211 no_wait_gpu, new_mem); in nouveau_bo_move()
1219 ret = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); in nouveau_bo_move()