Searched refs:svm_bo (Results 1 – 5 of 5) sorted by relevance
67 if (prange->svm_bo) { in svm_range_unlink()68 spin_lock(&prange->svm_bo->list_lock); in svm_range_unlink()70 spin_unlock(&prange->svm_bo->list_lock); in svm_range_unlink()155 amdgpu_ttm_adev(prange->svm_bo->bo->tbo.bdev); in svm_range_dma_map_dev()317 static bool svm_bo_ref_unless_zero(struct svm_range_bo *svm_bo) in svm_bo_ref_unless_zero() argument319 if (!svm_bo || !kref_get_unless_zero(&svm_bo->kref)) in svm_bo_ref_unless_zero()327 struct svm_range_bo *svm_bo; in svm_range_bo_release() local329 svm_bo = container_of(kref, struct svm_range_bo, kref); in svm_range_bo_release()330 spin_lock(&svm_bo->list_lock); in svm_range_bo_release()331 while (!list_empty(&svm_bo->range_list)) { in svm_range_bo_release()[all …]
121 struct svm_range_bo *svm_bo; member153 static inline struct svm_range_bo *svm_range_bo_ref(struct svm_range_bo *svm_bo) in svm_range_bo_ref() argument155 if (svm_bo) in svm_range_bo_ref()156 kref_get(&svm_bo->kref); in svm_range_bo_ref()158 return svm_bo; in svm_range_bo_ref()197 void svm_range_bo_unref(struct svm_range_bo *svm_bo);
221 svm_range_bo_ref(prange->svm_bo); in svm_migrate_get_vram_page()222 page->zone_device_data = prange->svm_bo; in svm_migrate_get_vram_page()506 struct svm_range_bo *svm_bo = page->zone_device_data; in svm_migrate_page_free() local508 if (svm_bo) { in svm_migrate_page_free()509 pr_debug("svm_bo ref left: %d\n", kref_read(&svm_bo->kref)); in svm_migrate_page_free()510 svm_range_bo_unref(svm_bo); in svm_migrate_page_free()783 struct svm_range_bo *svm_bo; in svm_migrate_to_ram() local791 svm_bo = vmf->page->zone_device_data; in svm_migrate_to_ram()792 if (!svm_bo) { in svm_migrate_to_ram()796 if (!mmget_not_zero(svm_bo->eviction_fence->mm)) { in svm_migrate_to_ram()[all …]
65 struct svm_range_bo *svm_bo) in amdgpu_amdkfd_fence_create() argument78 fence->svm_bo = svm_bo; in amdgpu_amdkfd_fence_create()129 if (!fence->svm_bo) { in amdkfd_fence_enable_signaling()
92 struct svm_range_bo *svm_bo; member169 struct svm_range_bo *svm_bo);