Lines Matching refs:resv

269 	bp.resv = NULL;  in amdgpu_bo_create_reserved()
553 .resv = bp->resv in amdgpu_bo_create()
623 bp->resv, bp->destroy); in amdgpu_bo_create()
639 r = amdgpu_fill_buffer(bo, 0, bo->tbo.base.resv, &fence, true); in amdgpu_bo_create()
643 dma_resv_add_fence(bo->tbo.base.resv, fence, in amdgpu_bo_create()
647 if (!bp->resv) in amdgpu_bo_create()
660 if (!bp->resv) in amdgpu_bo_create()
661 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_create()
791 r = dma_resv_wait_timeout(bo->tbo.base.resv, DMA_RESV_USAGE_KERNEL, in amdgpu_bo_kmap()
1154 dma_resv_assert_held(bo->tbo.base.resv); in amdgpu_bo_get_tiling_flags()
1356 && bo->base.resv != &bo->base._resv); in amdgpu_bo_release_notify()
1357 if (bo->base.resv == &bo->base._resv) in amdgpu_bo_release_notify()
1365 if (WARN_ON_ONCE(!dma_resv_trylock(bo->base.resv))) in amdgpu_bo_release_notify()
1368 r = amdgpu_fill_buffer(abo, AMDGPU_POISON, bo->base.resv, &fence, true); in amdgpu_bo_release_notify()
1374 dma_resv_unlock(bo->base.resv); in amdgpu_bo_release_notify()
1443 struct dma_resv *resv = bo->tbo.base.resv; in amdgpu_bo_fence() local
1446 r = dma_resv_reserve_fences(resv, 1); in amdgpu_bo_fence()
1453 dma_resv_add_fence(resv, fence, shared ? DMA_RESV_USAGE_READ : in amdgpu_bo_fence()
1471 int amdgpu_bo_sync_wait_resv(struct amdgpu_device *adev, struct dma_resv *resv, in amdgpu_bo_sync_wait_resv() argument
1479 amdgpu_sync_resv(adev, &sync, resv, sync_mode, owner); in amdgpu_bo_sync_wait_resv()
1499 return amdgpu_bo_sync_wait_resv(adev, bo->tbo.base.resv, in amdgpu_bo_sync_wait()
1516 WARN_ON_ONCE(!dma_resv_is_locked(bo->tbo.base.resv) && in amdgpu_bo_gpu_offset()
1591 if (dma_resv_trylock(bo->tbo.base.resv)) { in amdgpu_bo_print_info()
1609 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_print_info()