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()
205 struct amdgpu_bo_va *bo_va; in amdgpu_gem_object_close() local
223 bo_va = amdgpu_vm_bo_find(vm, bo); in amdgpu_gem_object_close()
224 if (!bo_va || --bo_va->ref_count) in amdgpu_gem_object_close()
227 amdgpu_vm_bo_del(adev, bo_va); in amdgpu_gem_object_close()
604 struct amdgpu_bo_va *bo_va, in amdgpu_gem_va_update_vm() argument
618 r = amdgpu_vm_bo_update(adev, bo_va, false); in amdgpu_gem_va_update_vm()
675 struct amdgpu_bo_va *bo_va; in amdgpu_gem_va_ioctl() local
755 bo_va = amdgpu_vm_bo_find(&fpriv->vm, abo); in amdgpu_gem_va_ioctl()
756 if (!bo_va) { in amdgpu_gem_va_ioctl()
761 bo_va = fpriv->prt_va; in amdgpu_gem_va_ioctl()
763 bo_va = NULL; in amdgpu_gem_va_ioctl()
769 r = amdgpu_vm_bo_map(adev, bo_va, args->va_address, in amdgpu_gem_va_ioctl()
774 r = amdgpu_vm_bo_unmap(adev, bo_va, args->va_address); in amdgpu_gem_va_ioctl()
784 r = amdgpu_vm_bo_replace_map(adev, bo_va, args->va_address, in amdgpu_gem_va_ioctl()
792 amdgpu_gem_va_update_vm(adev, &fpriv->vm, bo_va, in amdgpu_gem_va_ioctl()