| /Linux-v5.15/include/drm/ttm/ |
| D | ttm_bo_driver.h | 190 struct ttm_resource *new_mem) in ttm_bo_assign_mem() argument 193 bo->resource = new_mem; in ttm_bo_assign_mem() 204 struct ttm_resource *new_mem) in ttm_bo_move_null() argument 207 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_null() 251 struct ttm_resource *new_mem); 272 struct ttm_resource *new_mem); 284 struct ttm_resource *new_mem) in ttm_bo_move_sync_cleanup() argument 286 int ret = ttm_bo_move_accel_cleanup(bo, NULL, true, false, new_mem); in ttm_bo_move_sync_cleanup()
|
| D | ttm_device.h | 161 struct ttm_resource *new_mem,
|
| /Linux-v5.15/drivers/gpu/drm/radeon/ |
| D | radeon_ttm.c | 141 struct ttm_resource *new_mem, in radeon_move_blit() argument 153 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit() 166 switch (new_mem->mem_type) { in radeon_move_blit() 184 num_pages = new_mem->num_pages * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit() 189 r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, false, new_mem); in radeon_move_blit() 196 struct ttm_resource *new_mem, in radeon_bo_move() argument 204 if (new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move() 205 r = radeon_ttm_tt_bind(bo->bdev, bo->ttm, new_mem); in radeon_bo_move() 224 ttm_bo_move_null(bo, new_mem); in radeon_bo_move() 228 new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move() [all …]
|
| D | radeon_object.h | 165 struct ttm_resource *new_mem);
|
| D | radeon_object.c | 729 struct ttm_resource *new_mem) in radeon_bo_move_notify() argument 734 if (new_mem) in radeon_bo_move_notify() 735 radeon_update_memory_usage(bo, new_mem->mem_type, 1); in radeon_bo_move_notify()
|
| /Linux-v5.15/drivers/gpu/drm/qxl/ |
| D | qxl_ttm.c | 125 struct ttm_resource *new_mem) in qxl_bo_move_notify() argument 136 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify() 141 struct ttm_resource *new_mem, in qxl_bo_move() argument 147 qxl_bo_move_notify(bo, new_mem); in qxl_bo_move() 154 ttm_bo_move_null(bo, new_mem); in qxl_bo_move() 157 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move()
|
| /Linux-v5.15/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_ttm_buffer.c | 659 struct ttm_resource *new_mem) in vmw_move_notify() argument 661 vmw_bo_move_notify(bo, new_mem); in vmw_move_notify() 662 vmw_query_move_notify(bo, old_mem, new_mem); in vmw_move_notify() 680 struct ttm_resource *new_mem, in vmw_move() argument 684 struct ttm_resource_manager *new_man = ttm_manager_type(bo->bdev, new_mem->mem_type); in vmw_move() 687 if (new_man->use_tt && new_mem->mem_type != TTM_PL_SYSTEM) { in vmw_move() 688 ret = vmw_ttm_bind(bo->bdev, bo->ttm, new_mem); in vmw_move() 693 vmw_move_notify(bo, bo->resource, new_mem); in vmw_move() 697 ttm_bo_move_null(bo, new_mem); in vmw_move() 706 ttm_bo_assign_mem(bo, new_mem); in vmw_move() [all …]
|
| D | vmwgfx_resource.c | 859 struct ttm_resource *new_mem) in vmw_query_move_notify() argument 877 if (new_mem->mem_type == TTM_PL_SYSTEM && in vmw_query_move_notify()
|
| D | vmwgfx_drv.h | 802 struct ttm_resource *new_mem);
|
| /Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_ttm.c | 376 struct ttm_resource *new_mem, in amdgpu_move_blit() argument 388 dst.mem = new_mem; in amdgpu_move_blit() 393 new_mem->num_pages << PAGE_SHIFT, in amdgpu_move_blit() 416 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit() 418 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit() 462 struct ttm_resource *new_mem, in amdgpu_bo_move() argument 470 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move() 471 new_mem->mem_type == AMDGPU_PL_PREEMPT) { in amdgpu_bo_move() 472 r = amdgpu_ttm_backend_bind(bo->bdev, bo->ttm, new_mem); in amdgpu_bo_move() 485 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move() [all …]
|
| D | amdgpu_object.c | 1265 struct ttm_resource *new_mem) in amdgpu_bo_move_notify() argument 1288 if (!new_mem) in amdgpu_bo_move_notify() 1292 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify()
|
| D | amdgpu_object.h | 319 struct ttm_resource *new_mem);
|
| /Linux-v5.15/drivers/pci/hotplug/ |
| D | ibmphp_res.c | 188 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()
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| D | dr_icm_pool.c | 328 bool new_mem = false; in dr_icm_handle_buddies_get_mem() local 339 if (WARN_ON(new_mem)) { in dr_icm_handle_buddies_get_mem() 358 new_mem = true; in dr_icm_handle_buddies_get_mem()
|
| /Linux-v5.15/drivers/gpu/drm/ |
| D | drm_gem_vram_helper.c | 576 struct ttm_resource *new_mem) in drm_gem_vram_bo_driver_move() argument 579 return ttm_bo_move_memcpy(&gbo->bo, ctx, new_mem); in drm_gem_vram_bo_driver_move() 909 struct ttm_resource *new_mem, in bo_driver_move() argument 916 return drm_gem_vram_bo_driver_move(gbo, evict, ctx, new_mem); in bo_driver_move()
|
| /Linux-v5.15/drivers/gpu/drm/ttm/ |
| D | ttm_bo_util.c | 549 struct ttm_resource *new_mem) in ttm_bo_move_accel_cleanup() argument 553 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup() 567 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_accel_cleanup()
|
| /Linux-v5.15/drivers/gpu/drm/nouveau/ |
| D | nouveau_bo.c | 765 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local 774 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep() 775 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 783 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
|
| /Linux-v5.15/drivers/vfio/pci/ |
| D | vfio_pci_config.c | 567 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()
|