/kernel/linux/linux-5.10/include/drm/ttm/ |
H A D | ttm_bo_driver.h | 160 * @new_mem: the new memory region receiving the buffer 166 struct ttm_resource *new_mem); 192 struct ttm_resource *new_mem); 543 struct ttm_resource *new_mem) in ttm_bo_assign_mem() 545 bo->mem = *new_mem; in ttm_bo_assign_mem() 546 new_mem->mm_node = NULL; in ttm_bo_assign_mem() 552 * @new_mem: The memory to be assigned. 554 * Assign the memory from new_mem to the memory of the buffer object bo. 557 struct ttm_resource *new_mem) in ttm_bo_move_null() 562 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_null() 542 ttm_bo_assign_mem(struct ttm_buffer_object *bo, struct ttm_resource *new_mem) ttm_bo_assign_mem() argument 556 ttm_bo_move_null(struct ttm_buffer_object *bo, struct ttm_resource *new_mem) ttm_bo_move_null() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/ |
H A D | ttm_bo_util.c | 55 struct ttm_resource *new_mem) in ttm_bo_move_ttm() 75 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm() 79 if (new_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm() 85 ret = ttm_bo_tt_bind(bo, new_mem); in ttm_bo_move_ttm() 90 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_ttm() 219 struct ttm_resource *new_mem) in ttm_bo_move_memcpy() 222 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_memcpy() 241 ret = ttm_resource_ioremap(bdev, new_mem, &new_iomap); in ttm_bo_move_memcpy() 257 memset_io(new_iomap, 0, new_mem->num_pages*PAGE_SIZE); in ttm_bo_move_memcpy() 273 if ((old_mem->mem_type == new_mem in ttm_bo_move_memcpy() 53 ttm_bo_move_ttm(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem) ttm_bo_move_ttm() argument 217 ttm_bo_move_memcpy(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem) ttm_bo_move_memcpy() argument 606 ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo, struct dma_fence *fence, bool evict, bool pipeline, struct ttm_resource *new_mem) ttm_bo_move_accel_cleanup() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/ |
H A D | qxl_ttm.c | 124 struct ttm_resource *new_mem) in qxl_bo_move_notify() 135 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify() 140 struct ttm_resource *new_mem, in qxl_bo_move() 147 if (new_mem->mem_type != TTM_PL_SYSTEM) { in qxl_bo_move() 153 ttm_bo_move_null(bo, new_mem); in qxl_bo_move() 157 qxl_bo_move_notify(bo, new_mem); in qxl_bo_move() 164 ttm_bo_move_null(bo, new_mem); in qxl_bo_move() 167 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move() 123 qxl_bo_move_notify(struct ttm_buffer_object *bo, struct ttm_resource *new_mem) qxl_bo_move_notify() argument 138 qxl_bo_move(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem, struct ttm_place *hop) qxl_bo_move() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ttm_buffer.c | 481 * @new_mem: The struct ttm_resource indicating to what memory 489 struct ttm_resource *new_mem) in vmw_move_notify() 491 vmw_bo_move_notify(bo, new_mem); in vmw_move_notify() 492 vmw_query_move_notify(bo, old_mem, new_mem); in vmw_move_notify() 515 struct ttm_resource *new_mem, in vmw_move() 522 new_man = ttm_manager_type(bo->bdev, new_mem->mem_type); in vmw_move() 526 if (new_man->use_tt && !vmw_memtype_is_system(new_mem->mem_type)) { in vmw_move() 527 ret = vmw_ttm_bind(bo->bdev, bo->ttm, new_mem); in vmw_move() 534 ttm_bo_move_null(bo, new_mem); in vmw_move() 538 vmw_move_notify(bo, bo->resource, new_mem); in vmw_move() 487 vmw_move_notify(struct ttm_buffer_object *bo, struct ttm_resource *old_mem, struct ttm_resource *new_mem) vmw_move_notify() argument 512 vmw_move(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem, struct ttm_place *hop) vmw_move() argument [all...] |
H A D | vmwgfx_resource.c | 824 * @new_mem: The memory region @bo is moving to. 831 struct ttm_resource *new_mem) in vmw_query_move_notify() 841 new_mem->mem_type == TTM_PL_SYSTEM && in vmw_query_move_notify() 829 vmw_query_move_notify(struct ttm_buffer_object *bo, struct ttm_resource *old_mem, struct ttm_resource *new_mem) vmw_query_move_notify() argument
|
/kernel/linux/linux-6.6/include/drm/ttm/ |
H A D | ttm_bo.h | 299 struct ttm_resource *new_mem) in ttm_bo_assign_mem() 302 bo->resource = new_mem; in ttm_bo_assign_mem() 308 * @new_mem: The memory to be assigned. 310 * Assign the memory from new_mem to the memory of the buffer object bo. 313 struct ttm_resource *new_mem) in ttm_bo_move_null() 316 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_null() 415 struct ttm_resource *new_mem); 419 struct ttm_resource *new_mem); 421 struct ttm_resource *new_mem); 298 ttm_bo_assign_mem(struct ttm_buffer_object *bo, struct ttm_resource *new_mem) ttm_bo_assign_mem() argument 312 ttm_bo_move_null(struct ttm_buffer_object *bo, struct ttm_resource *new_mem) ttm_bo_move_null() argument
|
H A D | ttm_device.h | 143 * @new_mem: the new memory region receiving the buffer 151 struct ttm_resource *new_mem,
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_ttm.c | 140 struct ttm_resource *new_mem, in radeon_move_blit() 152 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit() 165 switch (new_mem->mem_type) { in radeon_move_blit() 183 num_pages = PFN_UP(new_mem->size) * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit() 188 r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, false, new_mem); in radeon_move_blit() 195 struct ttm_resource *new_mem, in radeon_bo_move() 203 if (new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move() 204 r = radeon_ttm_tt_bind(bo->bdev, bo->ttm, new_mem); in radeon_bo_move() 217 ttm_bo_move_null(bo, new_mem); in radeon_bo_move() 221 new_mem in radeon_bo_move() 138 radeon_move_blit(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem, struct ttm_resource *old_mem) radeon_move_blit() argument 193 radeon_bo_move(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem, struct ttm_place *hop) radeon_bo_move() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/loongson/ |
H A D | lsdc_ttm.c | 163 struct ttm_resource *new_mem, in lsdc_bo_move() 182 lbo, lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move() 184 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move() 189 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move() 196 new_mem->mem_type == TTM_PL_TT) { in lsdc_bo_move() 199 ttm_bo_move_null(tbo, new_mem); in lsdc_bo_move() 204 new_mem->mem_type == TTM_PL_SYSTEM) { in lsdc_bo_move() 208 ttm_bo_assign_mem(tbo, new_mem); in lsdc_bo_move() 215 lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move() 218 return ttm_bo_move_memcpy(tbo, ctx, new_mem); in lsdc_bo_move() 160 lsdc_bo_move(struct ttm_buffer_object *tbo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem, struct ttm_place *hop) lsdc_bo_move() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_ttm.c | 155 struct ttm_resource *new_mem, in radeon_move_blit() 167 new_start = (u64)new_mem->start << PAGE_SHIFT; in radeon_move_blit() 180 switch (new_mem->mem_type) { in radeon_move_blit() 198 num_pages = new_mem->num_pages * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit() 203 r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, false, new_mem); in radeon_move_blit() 211 struct ttm_resource *new_mem) in radeon_move_vram_ram() 220 tmp_mem = *new_mem; in radeon_move_vram_ram() 253 r = ttm_bo_move_ttm(bo, &ctx, new_mem); in radeon_move_vram_ram() 262 struct ttm_resource *new_mem) in radeon_move_ram_vram() 271 tmp_mem = *new_mem; in radeon_move_ram_vram() 153 radeon_move_blit(struct ttm_buffer_object *bo, bool evict, bool no_wait_gpu, struct ttm_resource *new_mem, struct ttm_resource *old_mem) radeon_move_blit() argument 208 radeon_move_vram_ram(struct ttm_buffer_object *bo, bool evict, bool interruptible, bool no_wait_gpu, struct ttm_resource *new_mem) radeon_move_vram_ram() argument 259 radeon_move_ram_vram(struct ttm_buffer_object *bo, bool evict, bool interruptible, bool no_wait_gpu, struct ttm_resource *new_mem) radeon_move_ram_vram() argument 298 radeon_bo_move(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem) radeon_bo_move() argument [all...] |
H A D | radeon_object.h | 168 struct ttm_resource *new_mem);
|
H A D | radeon_object.c | 778 struct ttm_resource *new_mem) in radeon_bo_move_notify() 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() 776 radeon_bo_move_notify(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem) radeon_bo_move_notify() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ttm.c | 463 struct ttm_resource *new_mem, in amdgpu_move_blit() 475 dst.mem = new_mem; in amdgpu_move_blit() 480 new_mem->num_pages << PAGE_SHIFT, in amdgpu_move_blit() 503 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit() 505 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit() 523 struct ttm_resource *new_mem) in amdgpu_move_vram_ram() 531 /* create space/pages for new_mem in GTT space */ in amdgpu_move_vram_ram() 532 tmp_mem = *new_mem; in amdgpu_move_vram_ram() 570 /* move BO (in tmp_mem) to new_mem */ in amdgpu_move_vram_ram() 571 r = ttm_bo_move_ttm(bo, ctx, new_mem); in amdgpu_move_vram_ram() 461 amdgpu_move_blit(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem, struct ttm_resource *old_mem) amdgpu_move_blit() argument 521 amdgpu_move_vram_ram(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem) amdgpu_move_vram_ram() argument 582 amdgpu_move_ram_vram(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem) amdgpu_move_ram_vram() argument 654 amdgpu_bo_move(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem) amdgpu_bo_move() argument [all...] |
H A D | amdgpu_object.h | 286 struct ttm_resource *new_mem);
|
H A D | amdgpu_object.c | 1276 * @new_mem: new information of the bufer object 1284 struct ttm_resource *new_mem) in amdgpu_bo_move_notify() 1307 if (!new_mem) in amdgpu_bo_move_notify() 1311 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify() 1282 amdgpu_bo_move_notify(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem) amdgpu_bo_move_notify() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ttm.c | 358 struct ttm_resource *new_mem, in amdgpu_move_blit() 370 dst.mem = new_mem; in amdgpu_move_blit() 375 new_mem->size, in amdgpu_move_blit() 398 r = ttm_bo_move_accel_cleanup(bo, fence, true, false, new_mem); in amdgpu_move_blit() 400 r = ttm_bo_move_accel_cleanup(bo, fence, evict, true, new_mem); in amdgpu_move_blit() 454 struct ttm_resource *new_mem, in amdgpu_bo_move() 462 if (new_mem->mem_type == TTM_PL_TT || in amdgpu_bo_move() 463 new_mem->mem_type == AMDGPU_PL_PREEMPT) { in amdgpu_bo_move() 464 r = amdgpu_ttm_backend_bind(bo->bdev, bo->ttm, new_mem); in amdgpu_bo_move() 474 ttm_bo_move_null(bo, new_mem); in amdgpu_bo_move() 356 amdgpu_move_blit(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem, struct ttm_resource *old_mem) amdgpu_move_blit() argument 452 amdgpu_bo_move(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem, struct ttm_place *hop) amdgpu_bo_move() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/ |
H A D | qxl_ttm.c | 158 struct ttm_resource *new_mem) in qxl_bo_move() 168 ttm_bo_move_null(bo, new_mem); in qxl_bo_move() 171 return ttm_bo_move_memcpy(bo, ctx, new_mem); in qxl_bo_move() 176 struct ttm_resource *new_mem) in qxl_bo_move_notify() 187 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify() 156 qxl_bo_move(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem) qxl_bo_move() argument 174 qxl_bo_move_notify(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem) qxl_bo_move_notify() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_gem_vram_helper.c | 567 struct ttm_resource *new_mem) in drm_gem_vram_bo_driver_move() 570 return ttm_bo_move_memcpy(&gbo->bo, ctx, new_mem); in drm_gem_vram_bo_driver_move() 914 struct ttm_resource *new_mem, in bo_driver_move() 920 if (new_mem->mem_type != TTM_PL_SYSTEM) { in bo_driver_move() 926 ttm_bo_move_null(bo, new_mem); in bo_driver_move() 932 return drm_gem_vram_bo_driver_move(gbo, evict, ctx, new_mem); in bo_driver_move() 564 drm_gem_vram_bo_driver_move(struct drm_gem_vram_object *gbo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem) drm_gem_vram_bo_driver_move() argument 911 bo_driver_move(struct ttm_buffer_object *bo, bool evict, struct ttm_operation_ctx *ctx, struct ttm_resource *new_mem, struct ttm_place *hop) bo_driver_move() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ttm/ |
H A D | ttm_bo_util.c | 135 * free any old aperture space, and set (@new_mem)->mm_node to NULL, 138 * memory space indicated by @new_mem. 633 * @new_mem: struct ttm_resource indicating where to move. 646 struct ttm_resource *new_mem) in ttm_bo_move_accel_cleanup() 650 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup() 664 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_accel_cleanup() 674 * @new_mem: struct ttm_resource indicating where to move. 680 struct ttm_resource *new_mem) in ttm_bo_move_sync_cleanup() 683 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_sync_cleanup() 690 ttm_bo_assign_mem(bo, new_mem); in ttm_bo_move_sync_cleanup() 642 ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo, struct dma_fence *fence, bool evict, bool pipeline, struct ttm_resource *new_mem) ttm_bo_move_accel_cleanup() argument 679 ttm_bo_move_sync_cleanup(struct ttm_buffer_object *bo, struct ttm_resource *new_mem) ttm_bo_move_sync_cleanup() argument [all...] |
/kernel/linux/linux-5.10/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 debug("Memory resource for device %x, bus %x, [%x - %x]\n", new_mem->devfunc, new_mem->busno, new_mem in ibmphp_rsrc_init() [all...] |
/kernel/linux/linux-6.6/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 debug("Memory resource for device %x, bus %x, [%x - %x]\n", new_mem->devfunc, new_mem->busno, new_mem in ibmphp_rsrc_init() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_icm_pool.c | 392 bool new_mem = false; in dr_icm_handle_buddies_get_mem() local 403 if (WARN_ON(new_mem)) { in dr_icm_handle_buddies_get_mem() 422 new_mem = true; in dr_icm_handle_buddies_get_mem()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_gem_vram_helper.c | 609 struct ttm_resource *new_mem) in drm_gem_vram_bo_driver_move_notify() 971 struct ttm_resource *new_mem) in bo_driver_move_notify() 981 drm_gem_vram_bo_driver_move_notify(gbo, evict, new_mem); in bo_driver_move_notify() 607 drm_gem_vram_bo_driver_move_notify(struct drm_gem_vram_object *gbo, bool evict, struct ttm_resource *new_mem) drm_gem_vram_bo_driver_move_notify() argument 969 bo_driver_move_notify(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem) bo_driver_move_notify() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo.c | 772 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local 781 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep() 782 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 790 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo.c | 818 struct nouveau_mem *new_mem = nouveau_mem(reg); in nouveau_bo_move_prep() local 827 ret = nvif_vmm_get(vmm, LAZY, false, new_mem->mem.page, 0, in nouveau_bo_move_prep() 828 new_mem->mem.size, &old_mem->vma[1]); in nouveau_bo_move_prep() 836 ret = nouveau_mem_map(new_mem, vmm, &old_mem->vma[1]); in nouveau_bo_move_prep()
|