Lines Matching refs:resv
250 bp.resv = NULL; in amdgpu_bo_create_reserved()
534 .resv = bp->resv in amdgpu_bo_create()
597 bp->resv, bp->destroy); in amdgpu_bo_create()
613 r = amdgpu_fill_buffer(bo, 0, bo->tbo.base.resv, &fence); in amdgpu_bo_create()
617 dma_resv_add_fence(bo->tbo.base.resv, fence, in amdgpu_bo_create()
621 if (!bp->resv) in amdgpu_bo_create()
634 if (!bp->resv) in amdgpu_bo_create()
635 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_create()
768 r = dma_resv_wait_timeout(bo->tbo.base.resv, DMA_RESV_USAGE_KERNEL, in amdgpu_bo_kmap()
1131 dma_resv_assert_held(bo->tbo.base.resv); in amdgpu_bo_get_tiling_flags()
1312 && bo->base.resv != &bo->base._resv); in amdgpu_bo_release_notify()
1313 if (bo->base.resv == &bo->base._resv) in amdgpu_bo_release_notify()
1321 if (WARN_ON_ONCE(!dma_resv_trylock(bo->base.resv))) in amdgpu_bo_release_notify()
1324 r = amdgpu_fill_buffer(abo, AMDGPU_POISON, bo->base.resv, &fence); in amdgpu_bo_release_notify()
1330 dma_resv_unlock(bo->base.resv); in amdgpu_bo_release_notify()
1402 struct dma_resv *resv = bo->tbo.base.resv; in amdgpu_bo_fence() local
1405 r = dma_resv_reserve_fences(resv, 1); in amdgpu_bo_fence()
1412 dma_resv_add_fence(resv, fence, shared ? DMA_RESV_USAGE_READ : in amdgpu_bo_fence()
1430 int amdgpu_bo_sync_wait_resv(struct amdgpu_device *adev, struct dma_resv *resv, in amdgpu_bo_sync_wait_resv() argument
1438 amdgpu_sync_resv(adev, &sync, resv, sync_mode, owner); in amdgpu_bo_sync_wait_resv()
1458 return amdgpu_bo_sync_wait_resv(adev, bo->tbo.base.resv, in amdgpu_bo_sync_wait()
1475 WARN_ON_ONCE(!dma_resv_is_locked(bo->tbo.base.resv) && in amdgpu_bo_gpu_offset()