/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 587 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nve0_bo_move_copy() argument 600 OUT_RING (chan, new_mem->num_pages); in nve0_bo_move_copy() 619 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nvc0_bo_move_copy() argument 624 u32 page_count = new_mem->num_pages; in nvc0_bo_move_copy() 627 page_count = new_mem->num_pages; in nvc0_bo_move_copy() 657 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nvc0_bo_move_m2mf() argument 662 u32 page_count = new_mem->num_pages; in nvc0_bo_move_m2mf() 665 page_count = new_mem->num_pages; in nvc0_bo_move_m2mf() 696 struct ttm_mem_reg *old_mem, struct ttm_mem_reg *new_mem) in nva3_bo_move_copy() argument 701 u32 page_count = new_mem->num_pages; in nva3_bo_move_copy() [all …]
|
/drivers/gpu/drm/ttm/ |
D | ttm_bo_util.c | 49 bool no_wait_gpu, struct ttm_mem_reg *new_mem) in ttm_bo_move_ttm() argument 63 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm() 67 if (new_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm() 68 ret = ttm_tt_bind(ttm, new_mem); in ttm_bo_move_ttm() 73 *old_mem = *new_mem; in ttm_bo_move_ttm() 74 new_mem->mm_node = NULL; in ttm_bo_move_ttm() 325 struct ttm_mem_reg *new_mem) in ttm_bo_move_memcpy() argument 328 struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type]; in ttm_bo_move_memcpy() 343 ret = ttm_mem_reg_ioremap(bdev, new_mem, &new_iomap); in ttm_bo_move_memcpy() 359 memset_io(new_iomap, 0, new_mem->num_pages*PAGE_SIZE); in ttm_bo_move_memcpy() [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 221 struct ttm_mem_reg *new_mem) in radeon_move_null() argument 226 *old_mem = *new_mem; in radeon_move_null() 227 new_mem->mm_node = NULL; in radeon_move_null() 232 struct ttm_mem_reg *new_mem, in radeon_move_blit() argument 244 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit() 257 switch (new_mem->mem_type) { in radeon_move_blit() 275 num_pages = new_mem->num_pages * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit() 281 evict, no_wait_gpu, new_mem); in radeon_move_blit() 289 struct ttm_mem_reg *new_mem) in radeon_move_vram_ram() argument 299 tmp_mem = *new_mem; in radeon_move_vram_ram() [all …]
|
D | radeon_object.c | 736 struct ttm_mem_reg *new_mem) in radeon_bo_move_notify() argument 748 if (!new_mem) in radeon_bo_move_notify() 752 radeon_update_memory_usage(rbo, new_mem->mem_type, 1); in radeon_bo_move_notify()
|
D | radeon_object.h | 155 struct ttm_mem_reg *new_mem);
|
/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 338 struct ttm_mem_reg *new_mem) in qxl_move_null() argument 343 *old_mem = *new_mem; in qxl_move_null() 344 new_mem->mm_node = NULL; in qxl_move_null() 350 struct ttm_mem_reg *new_mem) in qxl_bo_move() argument 354 qxl_move_null(bo, new_mem); in qxl_bo_move() 357 return ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); in qxl_bo_move() 361 struct ttm_mem_reg *new_mem) in qxl_bo_move_notify() argument 372 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify()
|
D | qxl_cmd.c | 487 struct ttm_mem_reg *new_mem) in qxl_hw_surface_alloc() argument 513 if (new_mem) { in qxl_hw_surface_alloc() 520 …cmd->u.surface_create.data |= (new_mem->start << PAGE_SHIFT) + surf->tbo.bdev->man[new_mem->mem_ty… in qxl_hw_surface_alloc()
|
/drivers/pci/hotplug/ |
D | ibmphp_res.c | 208 struct resource_node *new_mem = NULL; in ibmphp_rsrc_init() local 307 new_mem = alloc_resources (curr); in ibmphp_rsrc_init() 308 if (!new_mem) in ibmphp_rsrc_init() 310 new_mem->type = MEM; in ibmphp_rsrc_init() 318 if (ibmphp_add_resource (new_mem) < 0) { in ibmphp_rsrc_init() 322 newbus->firstMem = new_mem; in ibmphp_rsrc_init() 324 new_mem->rangeno = -1; in ibmphp_rsrc_init() 326 …y resource for device %x, bus %x, [%x - %x]\n", new_mem->devfunc, new_mem->busno, new_mem->start, … in ibmphp_rsrc_init()
|
/drivers/gpu/drm/ast/ |
D | ast_ttm.c | 192 struct ttm_mem_reg *new_mem) in ast_bo_move() argument 195 r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); in ast_bo_move()
|
/drivers/gpu/drm/cirrus/ |
D | cirrus_ttm.c | 192 struct ttm_mem_reg *new_mem) in cirrus_bo_move() argument 195 r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); in cirrus_bo_move()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_ttm.c | 192 struct ttm_mem_reg *new_mem) in mgag200_bo_move() argument 195 r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); in mgag200_bo_move()
|
/drivers/gpu/drm/bochs/ |
D | bochs_mm.c | 171 struct ttm_mem_reg *new_mem) in bochs_bo_move() argument 173 return ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); in bochs_bo_move()
|
/drivers/vfio/pci/ |
D | vfio_pci_config.c | 504 bool phys_mem, virt_mem, new_mem, phys_io, virt_io, new_io; in vfio_basic_config_write() local 515 new_mem = !!(new_cmd & PCI_COMMAND_MEMORY); in vfio_basic_config_write() 529 if ((new_mem && virt_mem && !phys_mem) || in vfio_basic_config_write()
|