| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_ttm.c | 123 struct ttm_resource *new_mem) in qxl_bo_move_notify() argument 134 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify() 139 struct ttm_resource *new_mem, in qxl_bo_move() argument 146 if (new_mem->mem_type != TTM_PL_SYSTEM) { in qxl_bo_move() 152 ttm_bo_move_null(bo, new_mem); in qxl_bo_move() 156 qxl_bo_move_notify(bo, new_mem); in qxl_bo_move() 163 ttm_bo_move_null(bo, new_mem); in qxl_bo_move() 166 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_ttm_buffer.c | 473 struct ttm_resource *new_mem) in vmw_move_notify() argument 475 vmw_bo_move_notify(bo, new_mem); in vmw_move_notify() 476 vmw_query_move_notify(bo, old_mem, new_mem); in vmw_move_notify() 499 struct ttm_resource *new_mem, in vmw_move() argument 506 new_man = ttm_manager_type(bo->bdev, new_mem->mem_type); in vmw_move() 510 if (new_man->use_tt && !vmw_memtype_is_system(new_mem->mem_type)) { in vmw_move() 511 ret = vmw_ttm_bind(bo->bdev, bo->ttm, new_mem); in vmw_move() 518 ttm_bo_move_null(bo, new_mem); in vmw_move() 522 vmw_move_notify(bo, bo->resource, new_mem); in vmw_move() 526 ttm_bo_move_null(bo, new_mem); in vmw_move() [all …]
|
| H A D | vmwgfx_drv.h | 812 struct ttm_resource *new_mem);
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_ttm.c | 135 struct ttm_resource *new_mem, in radeon_move_blit() argument 147 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit() 160 switch (new_mem->mem_type) { in radeon_move_blit() 178 num_pages = PFN_UP(new_mem->size) * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit() 183 r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, false, new_mem); in radeon_move_blit() 190 struct ttm_resource *new_mem, in radeon_bo_move() argument 197 if (new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move() 198 r = radeon_ttm_tt_bind(bo->bdev, bo->ttm, new_mem); in radeon_bo_move() 210 ttm_bo_move_null(bo, new_mem); in radeon_bo_move() 214 new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move() [all …]
|
| /linux/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_kunit_helpers.c | 65 struct ttm_resource *new_mem, in mock_move() argument 71 ttm_bo_move_null(bo, new_mem); in mock_move() 76 new_mem->mem_type == TTM_PL_SYSTEM) { in mock_move() 85 new_mem->mem_type == TTM_PL_TT) || in mock_move() 87 new_mem->mem_type == TTM_PL_SYSTEM)) { in mock_move() 88 ttm_bo_move_null(bo, new_mem); in mock_move() 92 return ttm_bo_move_memcpy(bo, ctx, new_mem); in mock_move()
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_ttm.c | 162 struct ttm_resource *new_mem, in lsdc_bo_move() argument 181 lbo, lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move() 183 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move() 188 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move() 195 new_mem->mem_type == TTM_PL_TT) { in lsdc_bo_move() 198 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move() 203 new_mem->mem_type == TTM_PL_SYSTEM) { in lsdc_bo_move() 207 ttm_bo_assign_mem(tbo, new_mem); in lsdc_bo_move() 214 lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move() 217 return ttm_bo_move_memcpy(tbo, ctx, new_mem); in lsdc_bo_move()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ttm.c | 384 struct ttm_resource *new_mem, in amdgpu_move_blit() argument 396 dst.mem = new_mem; in amdgpu_move_blit() 403 new_mem->size, in amdgpu_move_blit() 428 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit() 430 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit() 500 struct ttm_resource *new_mem, in amdgpu_bo_move() argument 508 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move() 509 new_mem->mem_type == AMDGPU_PL_PREEMPT) { in amdgpu_bo_move() 510 r = amdgpu_ttm_backend_bind(bo->bdev, bo->ttm, new_mem); in amdgpu_bo_move() 520 amdgpu_bo_move_notify(bo, evict, new_mem); in amdgpu_bo_move() [all …]
|
| H A D | amdgpu_vm.h | 548 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem,
|
| H A D | amdgpu_vm.c | 2315 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem, in amdgpu_vm_bo_move() argument 2325 amdgpu_vm_update_stats_locked(bo_base, new_mem, +1); in amdgpu_vm_bo_move()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_bo.c | 840 struct ttm_resource *new_mem, in xe_bo_move() argument 859 if (new_mem->mem_type == XE_PL_TT) in xe_bo_move() 862 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 867 if (new_mem->mem_type == XE_PL_SYSTEM) in xe_bo_move() 870 ret = xe_bo_move_dmabuf(ttm_bo, new_mem); in xe_bo_move() 882 if (new_mem->mem_type == XE_PL_TT) { in xe_bo_move() 889 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 894 new_mem->mem_type == XE_PL_SYSTEM) { in xe_bo_move() 898 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 907 if (old_mem_type == XE_PL_SYSTEM && new_mem->mem_type == XE_PL_TT && !handle_system_ccs) { in xe_bo_move() [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_gem_vram_helper.c | 506 struct ttm_resource *new_mem) in drm_gem_vram_bo_driver_move() argument 509 return ttm_bo_move_memcpy(&gbo->bo, ctx, new_mem); in drm_gem_vram_bo_driver_move() 769 struct ttm_resource *new_mem, in bo_driver_move() argument 775 if (new_mem->mem_type != TTM_PL_SYSTEM) { in bo_driver_move() 781 ttm_bo_move_null(bo, new_mem); in bo_driver_move() 787 return drm_gem_vram_bo_driver_move(gbo, evict, ctx, new_mem); in bo_driver_move()
|
| /linux/drivers/gpu/drm/ttm/ |
| H A D | ttm_bo_util.c | 704 struct ttm_resource *new_mem) in ttm_bo_move_accel_cleanup() argument 708 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup() 722 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_accel_cleanup() 738 struct ttm_resource *new_mem) in ttm_bo_move_sync_cleanup() argument 741 ttm_manager_type(bo->bdev, new_mem->mem_type); in ttm_bo_move_sync_cleanup() 748 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_sync_cleanup()
|
| /linux/drivers/pci/hotplug/ |
| H A 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/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_icm_pool.c | 391 bool new_mem = false; in dr_icm_handle_buddies_get_mem() local 402 if (WARN_ON(new_mem)) { in dr_icm_handle_buddies_get_mem() 421 new_mem = true; in dr_icm_handle_buddies_get_mem()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_bo.c | 908 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local 917 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep() 918 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 926 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
|
| /linux/drivers/vfio/pci/ |
| H A D | vfio_pci_config.c | 576 bool phys_mem, virt_mem, new_mem, phys_io, virt_io, new_io; in vfio_basic_config_write() local 591 new_mem = !!(new_cmd & PCI_COMMAND_MEMORY); in vfio_basic_config_write() 593 if (!new_mem) { in vfio_basic_config_write() 609 if ((new_mem && virt_mem && !phys_mem && in vfio_basic_config_write()
|
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 2074 struct pmt_domain_info *new_mem; in pmt_counter_resize_() local 2076 …new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_() 2077 if (!new_mem) { in pmt_counter_resize_() 2085 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_() 2088 pcounter->domains = new_mem; in pmt_counter_resize_()
|