/Linux-v4.19/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-v4.19/drivers/gpu/drm/virtio/ |
D | virtgpu_ttm.c | 345 struct ttm_mem_reg *new_mem) in virtio_gpu_move_null() argument 350 *old_mem = *new_mem; in virtio_gpu_move_null() 351 new_mem->mm_node = NULL; in virtio_gpu_move_null() 356 struct ttm_mem_reg *new_mem) in virtio_gpu_bo_move() argument 364 virtio_gpu_move_null(bo, new_mem); in virtio_gpu_bo_move() 370 struct ttm_mem_reg *new_mem) in virtio_gpu_bo_move_notify() argument 378 if (!new_mem || (new_mem->placement & TTM_PL_FLAG_SYSTEM)) { in virtio_gpu_bo_move_notify() 383 } else if (new_mem->placement & TTM_PL_FLAG_TT) { in virtio_gpu_bo_move_notify()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 245 struct ttm_mem_reg *new_mem) in radeon_move_null() argument 250 *old_mem = *new_mem; in radeon_move_null() 251 new_mem->mm_node = NULL; in radeon_move_null() 256 struct ttm_mem_reg *new_mem, in radeon_move_blit() argument 268 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit() 281 switch (new_mem->mem_type) { in radeon_move_blit() 299 num_pages = new_mem->num_pages * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit() 304 r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, new_mem); in radeon_move_blit() 312 struct ttm_mem_reg *new_mem) in radeon_move_vram_ram() argument 323 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 | 775 struct ttm_mem_reg *new_mem) in radeon_bo_move_notify() argument 787 if (!new_mem) in radeon_bo_move_notify() 791 radeon_update_memory_usage(rbo, new_mem->mem_type, 1); in radeon_bo_move_notify()
|
/Linux-v4.19/include/drm/ttm/ |
D | ttm_bo_driver.h | 313 struct ttm_mem_reg *new_mem); 339 struct ttm_mem_reg *new_mem); 783 struct ttm_mem_reg *new_mem); 805 struct ttm_mem_reg *new_mem); 833 struct ttm_mem_reg *new_mem); 848 struct ttm_mem_reg *new_mem);
|
/Linux-v4.19/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 314 struct ttm_mem_reg *new_mem) in qxl_move_null() argument 319 *old_mem = *new_mem; in qxl_move_null() 320 new_mem->mm_node = NULL; in qxl_move_null() 325 struct ttm_mem_reg *new_mem) in qxl_bo_move() argument 336 qxl_move_null(bo, new_mem); in qxl_bo_move() 339 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move() 344 struct ttm_mem_reg *new_mem) in qxl_bo_move_notify() argument 355 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify()
|
D | qxl_cmd.c | 459 struct ttm_mem_reg *new_mem) in qxl_hw_surface_alloc() argument 485 if (new_mem) { in qxl_hw_surface_alloc() 492 …cmd->u.surface_create.data |= (new_mem->start << PAGE_SHIFT) + surf->tbo.bdev->man[new_mem->mem_ty… in qxl_hw_surface_alloc()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ttm.c | 324 struct ttm_mem_reg *new_mem) in amdgpu_move_null() argument 329 *old_mem = *new_mem; in amdgpu_move_null() 330 new_mem->mm_node = NULL; in amdgpu_move_null() 507 struct ttm_mem_reg *new_mem, in amdgpu_move_blit() argument 518 dst.mem = new_mem; in amdgpu_move_blit() 523 new_mem->num_pages << PAGE_SHIFT, in amdgpu_move_blit() 528 r = ttm_bo_pipeline_move(bo, fence, evict, new_mem); in amdgpu_move_blit() 546 struct ttm_mem_reg *new_mem) in amdgpu_move_vram_ram() argument 558 tmp_mem = *new_mem; in amdgpu_move_vram_ram() 591 r = ttm_bo_move_ttm(bo, ctx, new_mem); in amdgpu_move_vram_ram() [all …]
|
D | amdgpu_object.c | 1244 struct ttm_mem_reg *new_mem) in amdgpu_bo_move_notify() argument 1263 if (!new_mem) in amdgpu_bo_move_notify() 1267 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify()
|
D | amdgpu_object.h | 278 struct ttm_mem_reg *new_mem);
|
/Linux-v4.19/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-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 1066 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local 1075 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep() 1076 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 1084 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
|
/Linux-v4.19/drivers/vfio/pci/ |
D | vfio_pci_config.c | 552 bool phys_mem, virt_mem, new_mem, phys_io, virt_io, new_io; in vfio_basic_config_write() local 563 new_mem = !!(new_cmd & PCI_COMMAND_MEMORY); in vfio_basic_config_write() 577 if ((new_mem && virt_mem && !phys_mem) || in vfio_basic_config_write()
|