Searched refs:vmbo (Results 1 – 7 of 7) sorted by relevance
/openbsd/sys/dev/pci/drm/amd/amdgpu/ |
H A D | amdgpu_vm_sdma.c | 232 struct amdgpu_bo_vm *vmbo, uint64_t pe, in amdgpu_vm_sdma_update() argument 236 struct amdgpu_bo *bo = &vmbo->bo; in amdgpu_vm_sdma_update() 272 if (vmbo->shadow) in amdgpu_vm_sdma_update() 273 amdgpu_vm_sdma_set_ptes(p, vmbo->shadow, pe, addr, in amdgpu_vm_sdma_update() 282 (vmbo->shadow ? 2 : 1); in amdgpu_vm_sdma_update() 297 if (vmbo->shadow) in amdgpu_vm_sdma_update() 298 amdgpu_vm_sdma_copy_ptes(p, vmbo->shadow, pe, nptes); in amdgpu_vm_sdma_update()
|
H A D | amdgpu_vm_pt.c | 376 struct amdgpu_bo_vm *vmbo, bool immediate) in amdgpu_vm_pt_clear() argument 381 struct amdgpu_bo *ancestor = &vmbo->bo; in amdgpu_vm_pt_clear() 383 struct amdgpu_bo *bo = &vmbo->bo; in amdgpu_vm_pt_clear() 423 if (vmbo->shadow) { in amdgpu_vm_pt_clear() 424 struct amdgpu_bo *shadow = vmbo->shadow; in amdgpu_vm_pt_clear() 434 r = vm->update_funcs->map_table(vmbo); in amdgpu_vm_pt_clear() 544 r = amdgpu_bo_create_vm(adev, &bp, vmbo); in amdgpu_vm_pt_create() 548 bo = &(*vmbo)->bo; in amdgpu_vm_pt_create() 550 (*vmbo)->shadow = NULL; in amdgpu_vm_pt_create() 567 r = amdgpu_bo_create(adev, &bp, &(*vmbo)->shadow); in amdgpu_vm_pt_create() [all …]
|
H A D | amdgpu_vm_cpu.c | 72 struct amdgpu_bo_vm *vmbo, uint64_t pe, in amdgpu_vm_cpu_update() argument 80 r = dma_resv_wait_timeout(vmbo->bo.tbo.base.resv, DMA_RESV_USAGE_KERNEL, in amdgpu_vm_cpu_update() 85 pe += (unsigned long)amdgpu_bo_kptr(&vmbo->bo); in amdgpu_vm_cpu_update()
|
H A D | amdgpu_object.c | 84 struct amdgpu_bo_vm *vmbo; in amdgpu_bo_vm_destroy() local 87 vmbo = to_amdgpu_bo_vm(bo); in amdgpu_bo_vm_destroy() 89 if (!list_empty(&vmbo->shadow_list)) { in amdgpu_bo_vm_destroy() 91 list_del_init(&vmbo->shadow_list); in amdgpu_bo_vm_destroy() 736 void amdgpu_bo_add_to_shadow_list(struct amdgpu_bo_vm *vmbo) in amdgpu_bo_add_to_shadow_list() argument 738 struct amdgpu_device *adev = amdgpu_ttm_adev(vmbo->bo.tbo.bdev); in amdgpu_bo_add_to_shadow_list() 741 list_add_tail(&vmbo->shadow_list, &adev->shadow_list); in amdgpu_bo_add_to_shadow_list() 742 vmbo->shadow->parent = amdgpu_bo_ref(&vmbo->bo); in amdgpu_bo_add_to_shadow_list() 743 vmbo->shadow->tbo.destroy = &amdgpu_bo_vm_destroy; in amdgpu_bo_add_to_shadow_list()
|
H A D | amdgpu_vm.h | 493 struct amdgpu_bo_vm *vmbo, bool immediate); 495 int level, bool immediate, struct amdgpu_bo_vm **vmbo,
|
H A D | amdgpu_object.h | 347 void amdgpu_bo_add_to_shadow_list(struct amdgpu_bo_vm *vmbo);
|
H A D | amdgpu_device.c | 4591 struct amdgpu_bo_vm *vmbo; in amdgpu_device_recover_vram() local 4601 list_for_each_entry(vmbo, &adev->shadow_list, shadow_list) { in amdgpu_device_recover_vram() 4603 if (!vmbo->shadow) in amdgpu_device_recover_vram() 4605 shadow = vmbo->shadow; in amdgpu_device_recover_vram()
|