Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c123 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 Dvmwgfx_ttm_buffer.c473 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 Dvmwgfx_resource.c840 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 Dttm_kunit_helpers.c65 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 Dradeon_ttm.c135 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 Dlsdc_ttm.c162 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 Damdgpu_ttm.c391 struct ttm_resource *new_mem, in amdgpu_move_blit() argument
405 dst.mem = new_mem; in amdgpu_move_blit()
416 new_mem->size, in amdgpu_move_blit()
439 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit()
441 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit()
511 struct ttm_resource *new_mem, in amdgpu_bo_move() argument
519 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move()
520 new_mem->mem_type == AMDGPU_PL_PREEMPT) { in amdgpu_bo_move()
530 r = amdgpu_ttm_backend_bind(bo->bdev, bo->ttm, new_mem); in amdgpu_bo_move()
540 amdgpu_bo_move_notify(bo, evict, new_mem); in amdgpu_bo_move()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_sriov_vf_ccs.h19 int xe_sriov_vf_ccs_attach_bo(struct xe_bo *bo, struct ttm_resource *new_mem);
H A Dxe_sriov_vf_ccs.c418 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 Dxe_migrate.h141 struct ttm_resource *new_mem,
/linux/drivers/pci/hotplug/
H A 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()
/linux/drivers/vfio/pci/
H A Dvfio_pci_config.c576 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 Dturbostat.c2077 struct pmt_domain_info *new_mem; in pmt_counter_resize_() local
2079new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_()
2080 if (!new_mem) { in pmt_counter_resize_()
2088 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_()
2091 pcounter->domains = new_mem; in pmt_counter_resize_()