| /Linux-v5.4/drivers/gpu/drm/ttm/ |
| D | ttm_bo_util.c | 55 struct ttm_mem_reg *new_mem) in ttm_bo_move_ttm() argument 77 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm() 81 if (new_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm() 82 ret = ttm_tt_bind(ttm, new_mem, ctx); in ttm_bo_move_ttm() 87 *old_mem = *new_mem; in ttm_bo_move_ttm() 88 new_mem->mm_node = NULL; in ttm_bo_move_ttm() 358 struct ttm_mem_reg *new_mem) in ttm_bo_move_memcpy() argument 361 struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type]; in ttm_bo_move_memcpy() 380 ret = ttm_mem_reg_ioremap(bdev, new_mem, &new_iomap); in ttm_bo_move_memcpy() 396 memset_io(new_iomap, 0, new_mem->num_pages*PAGE_SIZE); in ttm_bo_move_memcpy() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/radeon/ |
| D | radeon_ttm.c | 192 struct ttm_mem_reg *new_mem) in radeon_move_null() argument 197 *old_mem = *new_mem; in radeon_move_null() 198 new_mem->mm_node = NULL; in radeon_move_null() 203 struct ttm_mem_reg *new_mem, in radeon_move_blit() argument 215 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit() 228 switch (new_mem->mem_type) { in radeon_move_blit() 246 num_pages = new_mem->num_pages * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit() 251 r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, new_mem); in radeon_move_blit() 259 struct ttm_mem_reg *new_mem) in radeon_move_vram_ram() argument 268 tmp_mem = *new_mem; in radeon_move_vram_ram() [all …]
|
| D | radeon_object.h | 154 struct ttm_mem_reg *new_mem);
|
| D | radeon_object.c | 778 struct ttm_mem_reg *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()
|
| /Linux-v5.4/drivers/gpu/drm/qxl/ |
| D | qxl_ttm.c | 263 struct ttm_mem_reg *new_mem) in qxl_move_null() argument 268 *old_mem = *new_mem; in qxl_move_null() 269 new_mem->mm_node = NULL; in qxl_move_null() 274 struct ttm_mem_reg *new_mem) in qxl_bo_move() argument 284 qxl_move_null(bo, new_mem); in qxl_bo_move() 287 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move() 292 struct ttm_mem_reg *new_mem) in qxl_bo_move_notify() argument 303 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify()
|
| /Linux-v5.4/include/drm/ttm/ |
| D | ttm_bo_driver.h | 312 struct ttm_mem_reg *new_mem); 338 struct ttm_mem_reg *new_mem); 817 struct ttm_mem_reg *new_mem); 839 struct ttm_mem_reg *new_mem); 867 struct ttm_mem_reg *new_mem); 882 struct ttm_mem_reg *new_mem);
|
| /Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_ttm.c | 243 struct ttm_mem_reg *new_mem) in amdgpu_move_null() argument 248 *old_mem = *new_mem; in amdgpu_move_null() 249 new_mem->mm_node = NULL; in amdgpu_move_null() 426 struct ttm_mem_reg *new_mem, in amdgpu_move_blit() argument 437 dst.mem = new_mem; in amdgpu_move_blit() 442 new_mem->num_pages << PAGE_SHIFT, in amdgpu_move_blit() 465 r = ttm_bo_move_accel_cleanup(bo, fence, true, new_mem); in amdgpu_move_blit() 467 r = ttm_bo_pipeline_move(bo, fence, evict, new_mem); in amdgpu_move_blit() 485 struct ttm_mem_reg *new_mem) in amdgpu_move_vram_ram() argument 497 tmp_mem = *new_mem; in amdgpu_move_vram_ram() [all …]
|
| D | amdgpu_object.c | 1196 struct ttm_mem_reg *new_mem) in amdgpu_bo_move_notify() argument 1215 if (!new_mem) in amdgpu_bo_move_notify() 1219 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify()
|
| D | amdgpu_object.h | 266 struct ttm_mem_reg *new_mem);
|
| /Linux-v5.4/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.4/drivers/gpu/drm/nouveau/ |
| D | nouveau_bo.c | 1096 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local 1105 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep() 1106 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 1114 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
|
| /Linux-v5.4/drivers/vfio/pci/ |
| D | vfio_pci_config.c | 548 bool phys_mem, virt_mem, new_mem, phys_io, virt_io, new_io; in vfio_basic_config_write() local 559 new_mem = !!(new_cmd & PCI_COMMAND_MEMORY); in vfio_basic_config_write() 573 if ((new_mem && virt_mem && !phys_mem) || in vfio_basic_config_write()
|