Lines Matching refs:resv
260 bp.resv = NULL; in amdgpu_bo_create_reserved()
635 .resv = bp->resv in amdgpu_bo_create()
705 bp->resv, bp->destroy); in amdgpu_bo_create()
720 r = amdgpu_ttm_clear_buffer(bo, bo->tbo.base.resv, &fence); in amdgpu_bo_create()
724 dma_resv_add_fence(bo->tbo.base.resv, fence, in amdgpu_bo_create()
728 if (!bp->resv) in amdgpu_bo_create()
741 if (!bp->resv) in amdgpu_bo_create()
742 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_create()
826 r = dma_resv_wait_timeout(bo->tbo.base.resv, DMA_RESV_USAGE_KERNEL, in amdgpu_bo_kmap()
1143 dma_resv_assert_held(bo->tbo.base.resv); in amdgpu_bo_get_tiling_flags()
1390 struct dma_resv *resv = bo->tbo.base.resv; in amdgpu_bo_fence() local
1393 r = dma_resv_reserve_fences(resv, 1); in amdgpu_bo_fence()
1400 dma_resv_add_fence(resv, fence, shared ? DMA_RESV_USAGE_READ : in amdgpu_bo_fence()
1418 int amdgpu_bo_sync_wait_resv(struct amdgpu_device *adev, struct dma_resv *resv, in amdgpu_bo_sync_wait_resv() argument
1426 amdgpu_sync_resv(adev, &sync, resv, sync_mode, owner); in amdgpu_bo_sync_wait_resv()
1446 return amdgpu_bo_sync_wait_resv(adev, bo->tbo.base.resv, in amdgpu_bo_sync_wait()
1463 WARN_ON_ONCE(!dma_resv_is_locked(bo->tbo.base.resv) && in amdgpu_bo_gpu_offset()
1602 if (dma_resv_trylock(bo->tbo.base.resv)) { in amdgpu_bo_print_info()
1637 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_print_info()
1666 if (dma_resv_trylock(bo->tbo.base.resv)) { in amdgpu_bo_print_info()
1667 dma_resv_describe(bo->tbo.base.resv, m); in amdgpu_bo_print_info()
1668 dma_resv_unlock(bo->tbo.base.resv); in amdgpu_bo_print_info()