Lines Matching refs:resv

269 	bp.resv = NULL;  in amdgpu_bo_create_reserved()
553 .resv = bp->resv in amdgpu_bo_create()
625 bp->resv, bp->destroy); in amdgpu_bo_create()
640 r = amdgpu_fill_buffer(bo, 0, bo->tbo.base.resv, &fence, true); in amdgpu_bo_create()
644 dma_resv_add_fence(bo->tbo.base.resv, fence, in amdgpu_bo_create()
648 if (!bp->resv) in amdgpu_bo_create()
661 if (!bp->resv) in amdgpu_bo_create()
662 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_create()
792 r = dma_resv_wait_timeout(bo->tbo.base.resv, DMA_RESV_USAGE_KERNEL, in amdgpu_bo_kmap()
1155 dma_resv_assert_held(bo->tbo.base.resv); in amdgpu_bo_get_tiling_flags()
1363 && bo->base.resv != &bo->base._resv); in amdgpu_bo_release_notify()
1364 if (bo->base.resv == &bo->base._resv) in amdgpu_bo_release_notify()
1372 if (WARN_ON_ONCE(!dma_resv_trylock(bo->base.resv))) in amdgpu_bo_release_notify()
1375 r = amdgpu_fill_buffer(abo, AMDGPU_POISON, bo->base.resv, &fence, true); in amdgpu_bo_release_notify()
1381 dma_resv_unlock(bo->base.resv); in amdgpu_bo_release_notify()
1447 struct dma_resv *resv = bo->tbo.base.resv; in amdgpu_bo_fence() local
1450 r = dma_resv_reserve_fences(resv, 1); in amdgpu_bo_fence()
1457 dma_resv_add_fence(resv, fence, shared ? DMA_RESV_USAGE_READ : in amdgpu_bo_fence()
1475 int amdgpu_bo_sync_wait_resv(struct amdgpu_device *adev, struct dma_resv *resv, in amdgpu_bo_sync_wait_resv() argument
1483 amdgpu_sync_resv(adev, &sync, resv, sync_mode, owner); in amdgpu_bo_sync_wait_resv()
1503 return amdgpu_bo_sync_wait_resv(adev, bo->tbo.base.resv, in amdgpu_bo_sync_wait()
1520 WARN_ON_ONCE(!dma_resv_is_locked(bo->tbo.base.resv) && in amdgpu_bo_gpu_offset()
1596 if (dma_resv_trylock(bo->tbo.base.resv)) { in amdgpu_bo_print_info()
1615 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_print_info()