Lines Matching refs:resv

76 	dma_resv_assert_held(bo->base.resv);  in ttm_bo_move_to_lru_tail()
100 dma_resv_assert_held(bo->base.resv); in ttm_bo_set_bulk_move()
148 ret = dma_resv_reserve_fences(bo->base.resv, 1); in ttm_bo_handle_move_mem()
190 if (bo->base.resv == &bo->base._resv) in ttm_bo_individualize_resv()
195 r = dma_resv_copy_fences(&bo->base._resv, bo->base.resv); in ttm_bo_individualize_resv()
206 bo->base.resv = &bo->base._resv; in ttm_bo_individualize_resv()
215 struct dma_resv *resv = &bo->base._resv; in ttm_bo_flush_all_fences() local
219 dma_resv_iter_begin(&cursor, resv, DMA_RESV_USAGE_BOOKKEEP); in ttm_bo_flush_all_fences()
237 dma_resv_wait_timeout(bo->base.resv, DMA_RESV_USAGE_BOOKKEEP, false, in ttm_bo_delayed_delete()
239 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_delayed_delete()
241 dma_resv_unlock(bo->base.resv); in ttm_bo_delayed_delete()
261 dma_resv_wait_timeout(bo->base.resv, in ttm_bo_release()
272 if (!dma_resv_test_signaled(bo->base.resv, in ttm_bo_release()
276 !dma_resv_trylock(bo->base.resv)) { in ttm_bo_release()
311 dma_resv_unlock(bo->base.resv); in ttm_bo_release()
366 dma_resv_assert_held(bo->base.resv); in ttm_bo_evict()
424 dma_resv_assert_held(bo->base.resv); in ttm_bo_eviction_valuable()
478 dma_resv_unlock(bo->base.resv); in ttm_bo_evict_first()
592 dma_resv_assert_held(bo->base.resv); in ttm_bo_pin()
610 dma_resv_assert_held(bo->base.resv); in ttm_bo_unpin()
647 dma_resv_add_fence(bo->base.resv, fence, DMA_RESV_USAGE_KERNEL); in ttm_bo_add_move_fence()
649 ret = dma_resv_reserve_fences(bo->base.resv, 1); in ttm_bo_add_move_fence()
683 ticket = dma_resv_locking_ctx(bo->base.resv); in ttm_bo_alloc_resource()
684 ret = dma_resv_reserve_fences(bo->base.resv, 1); in ttm_bo_alloc_resource()
784 dma_resv_assert_held(bo->base.resv); in ttm_bo_validate()
888 struct sg_table *sg, struct dma_resv *resv, in ttm_bo_init_reserved() argument
901 if (resv) in ttm_bo_init_reserved()
902 bo->base.resv = resv; in ttm_bo_init_reserved()
904 bo->base.resv = &bo->base._resv; in ttm_bo_init_reserved()
921 if (!resv) in ttm_bo_init_reserved()
922 WARN_ON(!dma_resv_trylock(bo->base.resv)); in ttm_bo_init_reserved()
924 dma_resv_assert_held(resv); in ttm_bo_init_reserved()
933 if (!resv) in ttm_bo_init_reserved()
934 dma_resv_unlock(bo->base.resv); in ttm_bo_init_reserved()
981 struct sg_table *sg, struct dma_resv *resv, in ttm_bo_init_validate() argument
988 sg, resv, destroy); in ttm_bo_init_validate()
992 if (!resv) in ttm_bo_init_validate()
1032 if (dma_resv_test_signaled(bo->base.resv, in ttm_bo_wait_ctx()
1039 ret = dma_resv_wait_timeout(bo->base.resv, DMA_RESV_USAGE_BOOKKEEP, in ttm_bo_wait_ctx()