Lines Matching refs:bo_va
166 struct amdgpu_bo_va *bo_va; in amdgpu_gem_object_open() local
182 bo_va = amdgpu_vm_bo_find(vm, abo); in amdgpu_gem_object_open()
183 if (!bo_va) in amdgpu_gem_object_open()
184 bo_va = amdgpu_vm_bo_add(adev, vm, abo); in amdgpu_gem_object_open()
186 ++bo_va->ref_count; in amdgpu_gem_object_open()
233 struct amdgpu_bo_va *bo_va; in amdgpu_gem_object_close() local
250 bo_va = amdgpu_vm_bo_find(vm, bo); in amdgpu_gem_object_close()
251 if (!bo_va || --bo_va->ref_count) in amdgpu_gem_object_close()
254 amdgpu_vm_bo_del(adev, bo_va); in amdgpu_gem_object_close()
643 struct amdgpu_bo_va *bo_va, in amdgpu_gem_va_update_vm() argument
657 r = amdgpu_vm_bo_update(adev, bo_va, false); in amdgpu_gem_va_update_vm()
714 struct amdgpu_bo_va *bo_va; in amdgpu_gem_va_ioctl() local
793 bo_va = amdgpu_vm_bo_find(&fpriv->vm, abo); in amdgpu_gem_va_ioctl()
794 if (!bo_va) { in amdgpu_gem_va_ioctl()
799 bo_va = fpriv->prt_va; in amdgpu_gem_va_ioctl()
801 bo_va = NULL; in amdgpu_gem_va_ioctl()
807 r = amdgpu_vm_bo_map(adev, bo_va, args->va_address, in amdgpu_gem_va_ioctl()
812 r = amdgpu_vm_bo_unmap(adev, bo_va, args->va_address); in amdgpu_gem_va_ioctl()
822 r = amdgpu_vm_bo_replace_map(adev, bo_va, args->va_address, in amdgpu_gem_va_ioctl()
830 amdgpu_gem_va_update_vm(adev, &fpriv->vm, bo_va, in amdgpu_gem_va_ioctl()