Home
last modified time | relevance | path

Searched refs:new_mem (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/include/drm/ttm/
Dttm_bo_driver.h166 struct ttm_resource *new_mem);
192 struct ttm_resource *new_mem);
543 struct ttm_resource *new_mem) in ttm_bo_assign_mem() argument
545 bo->mem = *new_mem; in ttm_bo_assign_mem()
546 new_mem->mm_node = NULL; in ttm_bo_assign_mem()
557 struct ttm_resource *new_mem) in ttm_bo_move_null() argument
562 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_null()
606 struct ttm_resource *new_mem);
628 struct ttm_resource *new_mem);
658 struct ttm_resource *new_mem);
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_bo_util.c55 struct ttm_resource *new_mem) in ttm_bo_move_ttm() argument
75 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm()
79 if (new_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm()
85 ret = ttm_bo_tt_bind(bo, new_mem); in ttm_bo_move_ttm()
90 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_ttm()
219 struct ttm_resource *new_mem) in ttm_bo_move_memcpy() argument
222 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_memcpy()
241 ret = ttm_resource_ioremap(bdev, new_mem, &new_iomap); in ttm_bo_move_memcpy()
257 memset_io(new_iomap, 0, new_mem->num_pages*PAGE_SIZE); in ttm_bo_move_memcpy()
273 if ((old_mem->mem_type == new_mem->mem_type) && in ttm_bo_move_memcpy()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_ttm.c155 struct ttm_resource *new_mem, in radeon_move_blit() argument
167 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit()
180 switch (new_mem->mem_type) { in radeon_move_blit()
198 num_pages = new_mem->num_pages * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit()
203 r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, false, new_mem); in radeon_move_blit()
211 struct ttm_resource *new_mem) in radeon_move_vram_ram() argument
220 tmp_mem = *new_mem; in radeon_move_vram_ram()
253 r = ttm_bo_move_ttm(bo, &ctx, new_mem); in radeon_move_vram_ram()
262 struct ttm_resource *new_mem) in radeon_move_ram_vram() argument
271 tmp_mem = *new_mem; in radeon_move_ram_vram()
[all …]
Dradeon_object.h168 struct ttm_resource *new_mem);
Dradeon_object.c778 struct ttm_resource *new_mem) in radeon_bo_move_notify() argument
790 if (!new_mem) in radeon_bo_move_notify()
794 radeon_update_memory_usage(rbo, new_mem->mem_type, 1); in radeon_bo_move_notify()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_ttm.c158 struct ttm_resource *new_mem) in qxl_bo_move() argument
168 ttm_bo_move_null(bo, new_mem); in qxl_bo_move()
171 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move()
176 struct ttm_resource *new_mem) in qxl_bo_move_notify() argument
187 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c463 struct ttm_resource *new_mem, in amdgpu_move_blit() argument
475 dst.mem = new_mem; in amdgpu_move_blit()
480 new_mem->num_pages << PAGE_SHIFT, in amdgpu_move_blit()
503 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit()
505 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit()
523 struct ttm_resource *new_mem) in amdgpu_move_vram_ram() argument
532 tmp_mem = *new_mem; in amdgpu_move_vram_ram()
571 r = ttm_bo_move_ttm(bo, ctx, new_mem); in amdgpu_move_vram_ram()
584 struct ttm_resource *new_mem) in amdgpu_move_ram_vram() argument
593 tmp_mem = *new_mem; in amdgpu_move_ram_vram()
[all …]
Damdgpu_object.c1280 struct ttm_resource *new_mem) in amdgpu_bo_move_notify() argument
1303 if (!new_mem) in amdgpu_bo_move_notify()
1307 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify()
Damdgpu_object.h286 struct ttm_resource *new_mem);
/kernel/linux/linux-5.10/drivers/pci/hotplug/
Dibmphp_res.c188 struct resource_node *new_mem = NULL; in ibmphp_rsrc_init() local
286 new_mem = alloc_resources(curr); in ibmphp_rsrc_init()
287 if (!new_mem) in ibmphp_rsrc_init()
289 new_mem->type = MEM; in ibmphp_rsrc_init()
297 if (ibmphp_add_resource(new_mem) < 0) { in ibmphp_rsrc_init()
301 newbus->firstMem = new_mem; in ibmphp_rsrc_init()
303 new_mem->rangeno = -1; in ibmphp_rsrc_init()
305 …y resource for device %x, bus %x, [%x - %x]\n", new_mem->devfunc, new_mem->busno, new_mem->start, in ibmphp_rsrc_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_gem_vram_helper.c609 struct ttm_resource *new_mem) in drm_gem_vram_bo_driver_move_notify() argument
971 struct ttm_resource *new_mem) in bo_driver_move_notify() argument
981 drm_gem_vram_bo_driver_move_notify(gbo, evict, new_mem); in bo_driver_move_notify()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_bo.c770 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local
779 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep()
780 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep()
788 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
/kernel/linux/linux-5.10/drivers/vfio/pci/
Dvfio_pci_config.c567 bool phys_mem, virt_mem, new_mem, phys_io, virt_io, new_io; in vfio_basic_config_write() local
582 new_mem = !!(new_cmd & PCI_COMMAND_MEMORY); in vfio_basic_config_write()
584 if (!new_mem) in vfio_basic_config_write()
598 if ((new_mem && virt_mem && !phys_mem && in vfio_basic_config_write()