Lines Matching refs:resv
77 dma_resv_assert_held(bo->base.resv); in ttm_bo_move_to_lru_tail()
101 dma_resv_assert_held(bo->base.resv); in ttm_bo_set_bulk_move()
149 ret = dma_resv_reserve_fences(bo->base.resv, 1); in ttm_bo_handle_move_mem()
191 if (bo->base.resv == &bo->base._resv) in ttm_bo_individualize_resv()
196 r = dma_resv_copy_fences(&bo->base._resv, bo->base.resv); in ttm_bo_individualize_resv()
207 bo->base.resv = &bo->base._resv; in ttm_bo_individualize_resv()
216 struct dma_resv *resv = &bo->base._resv; in ttm_bo_flush_all_fences() local
220 dma_resv_iter_begin(&cursor, resv, DMA_RESV_USAGE_BOOKKEEP); in ttm_bo_flush_all_fences()
238 dma_resv_wait_timeout(bo->base.resv, DMA_RESV_USAGE_BOOKKEEP, false, in ttm_bo_delayed_delete()
240 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_delayed_delete()
242 dma_resv_unlock(bo->base.resv); in ttm_bo_delayed_delete()
262 dma_resv_wait_timeout(bo->base.resv, in ttm_bo_release()
273 if (!dma_resv_test_signaled(bo->base.resv, in ttm_bo_release()
277 !dma_resv_trylock(bo->base.resv)) { in ttm_bo_release()
312 dma_resv_unlock(bo->base.resv); in ttm_bo_release()
367 dma_resv_assert_held(bo->base.resv); in ttm_bo_evict()
425 dma_resv_assert_held(bo->base.resv); in ttm_bo_eviction_valuable()
479 dma_resv_unlock(bo->base.resv); in ttm_bo_evict_first()
622 dma_resv_assert_held(bo->base.resv); in ttm_bo_pin()
641 dma_resv_assert_held(bo->base.resv); in ttm_bo_unpin()
679 dma_resv_add_fence(bo->base.resv, fence, DMA_RESV_USAGE_KERNEL); in ttm_bo_add_move_fence()
681 ret = dma_resv_reserve_fences(bo->base.resv, 1); in ttm_bo_add_move_fence()
715 ticket = dma_resv_locking_ctx(bo->base.resv); in ttm_bo_alloc_resource()
716 ret = dma_resv_reserve_fences(bo->base.resv, 1); in ttm_bo_alloc_resource()
822 dma_resv_assert_held(bo->base.resv); in ttm_bo_validate()
926 struct sg_table *sg, struct dma_resv *resv, in ttm_bo_init_reserved() argument
939 if (resv) in ttm_bo_init_reserved()
940 bo->base.resv = resv; in ttm_bo_init_reserved()
942 bo->base.resv = &bo->base._resv; in ttm_bo_init_reserved()
959 if (!resv) in ttm_bo_init_reserved()
960 WARN_ON(!dma_resv_trylock(bo->base.resv)); in ttm_bo_init_reserved()
962 dma_resv_assert_held(resv); in ttm_bo_init_reserved()
971 if (!resv) in ttm_bo_init_reserved()
972 dma_resv_unlock(bo->base.resv); in ttm_bo_init_reserved()
1019 struct sg_table *sg, struct dma_resv *resv, in ttm_bo_init_validate() argument
1026 sg, resv, destroy); in ttm_bo_init_validate()
1030 if (!resv) in ttm_bo_init_validate()
1070 if (dma_resv_test_signaled(bo->base.resv, in ttm_bo_wait_ctx()
1077 ret = dma_resv_wait_timeout(bo->base.resv, DMA_RESV_USAGE_BOOKKEEP, in ttm_bo_wait_ctx()
1257 dma_resv_assert_held(bo->base.resv); in ttm_bo_populate()