| /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_resource.c | 840 struct ttm_resource *new_mem) in vmw_query_move_notify() argument 850 new_mem->mem_type == TTM_PL_SYSTEM && in vmw_query_move_notify()
|
| /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/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/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 | 398 struct ttm_resource *new_mem, in amdgpu_move_blit() argument 412 dst.mem = new_mem; in amdgpu_move_blit() 423 new_mem->size, in amdgpu_move_blit() 446 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit() 448 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit() 518 struct ttm_resource *new_mem, in amdgpu_bo_move() argument 526 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move() 527 new_mem->mem_type == AMDGPU_PL_PREEMPT) { in amdgpu_bo_move() 537 r = amdgpu_ttm_backend_bind(bo->bdev, bo->ttm, new_mem); in amdgpu_bo_move() 547 amdgpu_bo_move_notify(bo, evict, new_mem); in amdgpu_bo_move() [all...] |
| H A D | amdgpu_object.c | 1271 struct ttm_resource *new_mem) in amdgpu_bo_move_notify() argument 1280 amdgpu_vm_bo_move(abo, new_mem, evict); in amdgpu_bo_move_notify() 1289 trace_amdgpu_bo_move(abo, new_mem ? new_mem->mem_type : -1, in amdgpu_bo_move_notify()
|
| H A D | amdgpu_vm.h | 546 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem,
|
| H A D | amdgpu_vm.c | 2333 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem, in amdgpu_vm_bo_move() argument 2343 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 | 1058 struct ttm_resource *new_mem, in xe_bo_move() 1085 ttm_resource_free(ttm_bo, &new_mem); in xe_bo_move() 1091 if (new_mem->mem_type == XE_PL_TT) in xe_bo_move() 1094 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 1099 if (new_mem->mem_type == XE_PL_SYSTEM) in xe_bo_move() 1102 ret = xe_bo_move_dmabuf(ttm_bo, new_mem); in xe_bo_move() 1114 if (new_mem->mem_type == XE_PL_TT) { in xe_bo_move() 1121 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 1126 new_mem->mem_type == XE_PL_SYSTEM) { in xe_bo_move() 1130 ttm_bo_move_null(ttm_bo, new_mem); in xe_bo_move() 964 xe_bo_move(struct ttm_buffer_object * ttm_bo,bool evict,struct ttm_operation_ctx * ctx,struct ttm_resource * new_mem,struct ttm_place * hop) xe_bo_move() argument [all...] |
| H A D | xe_sriov_vf_ccs.h | 19 int xe_sriov_vf_ccs_attach_bo(struct xe_bo *bo, struct ttm_resource *new_mem);
|
| H A D | xe_sriov_vf_ccs.c | 418 int xe_sriov_vf_ccs_attach_bo(struct xe_bo *bo, struct ttm_resource *new_mem) in xe_sriov_vf_ccs_attach_bo() argument 437 err = xe_migrate_ccs_rw_copy(tile, ctx->mig_q, bo, new_mem, ctx_id); in xe_sriov_vf_ccs_attach_bo()
|
| H A D | xe_migrate.h | 141 struct ttm_resource *new_mem,
|
| /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 | 909 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local 918 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep() 919 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 927 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 | 2082 struct pmt_domain_info *new_mem; in pmt_counter_resize_() 2084 new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->domains)); in pmt_counter_resize_() 2085 if (!new_mem) { in pmt_counter_resize_() 2093 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); 2096 pcounter->domains = new_mem; in pmt_counter_resize() 2077 struct pmt_domain_info *new_mem; pmt_counter_resize_() local
|