Lines Matching refs:resv

108 		dma_resv_assert_held(bo->base.resv);  in ttm_bo_move_to_lru_tail()
149 dma_resv_assert_held(pos->first->base.resv); in ttm_bo_bulk_move_lru_tail()
150 dma_resv_assert_held(pos->last->base.resv); in ttm_bo_bulk_move_lru_tail()
164 dma_resv_assert_held(pos->first->base.resv); in ttm_bo_bulk_move_lru_tail()
165 dma_resv_assert_held(pos->last->base.resv); in ttm_bo_bulk_move_lru_tail()
246 if (bo->base.resv == &bo->base._resv) in ttm_bo_individualize_resv()
251 r = dma_resv_copy_fences(&bo->base._resv, bo->base.resv); in ttm_bo_individualize_resv()
262 bo->base.resv = &bo->base._resv; in ttm_bo_individualize_resv()
271 struct dma_resv *resv = &bo->base._resv; in ttm_bo_flush_all_fences() local
275 dma_resv_iter_begin(&cursor, resv, true); in ttm_bo_flush_all_fences()
301 struct dma_resv *resv = &bo->base._resv; in ttm_bo_cleanup_refs() local
304 if (dma_resv_test_signaled(resv, true)) in ttm_bo_cleanup_refs()
313 dma_resv_unlock(bo->base.resv); in ttm_bo_cleanup_refs()
316 lret = dma_resv_wait_timeout(resv, true, interruptible, in ttm_bo_cleanup_refs()
325 if (unlock_resv && !dma_resv_trylock(bo->base.resv)) { in ttm_bo_cleanup_refs()
342 dma_resv_unlock(bo->base.resv); in ttm_bo_cleanup_refs()
353 dma_resv_unlock(bo->base.resv); in ttm_bo_cleanup_refs()
381 if (remove_all || bo->base.resv != &bo->base._resv) { in ttm_bo_delayed_delete()
383 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_delayed_delete()
388 } else if (dma_resv_trylock(bo->base.resv)) { in ttm_bo_delayed_delete()
419 dma_resv_wait_timeout(bo->base.resv, true, false, in ttm_bo_release()
430 if (!dma_resv_test_signaled(bo->base.resv, true) || in ttm_bo_release()
431 !dma_resv_trylock(bo->base.resv)) { in ttm_bo_release()
466 dma_resv_unlock(bo->base.resv); in ttm_bo_release()
529 dma_resv_assert_held(bo->base.resv); in ttm_bo_evict()
576 dma_resv_assert_held(bo->base.resv); in ttm_bo_eviction_valuable()
608 if (bo->base.resv == ctx->resv) { in ttm_bo_evict_swapout_allowable()
609 dma_resv_assert_held(bo->base.resv); in ttm_bo_evict_swapout_allowable()
616 ret = dma_resv_trylock(bo->base.resv); in ttm_bo_evict_swapout_allowable()
626 dma_resv_unlock(bo->base.resv); in ttm_bo_evict_swapout_allowable()
653 r = dma_resv_lock_interruptible(busy_bo->base.resv, in ttm_mem_evict_wait_busy()
656 r = dma_resv_lock(busy_bo->base.resv, ticket); in ttm_mem_evict_wait_busy()
664 dma_resv_unlock(busy_bo->base.resv); in ttm_mem_evict_wait_busy()
688 dma_resv_locking_ctx(bo->base.resv)) in ttm_mem_evict_first()
695 dma_resv_unlock(bo->base.resv); in ttm_mem_evict_first()
761 dma_resv_add_shared_fence(bo->base.resv, fence); in ttm_bo_add_move_fence()
763 ret = dma_resv_reserve_shared(bo->base.resv, 1); in ttm_bo_add_move_fence()
789 ticket = dma_resv_locking_ctx(bo->base.resv); in ttm_bo_mem_force_space()
822 ret = dma_resv_reserve_shared(bo->base.resv, 1); in ttm_bo_mem_space()
891 dma_resv_assert_held(bo->base.resv); in ttm_bo_move_buffer()
926 dma_resv_assert_held(bo->base.resv); in ttm_bo_validate()
962 struct dma_resv *resv, in ttm_bo_init_reserved() argument
980 if (resv) { in ttm_bo_init_reserved()
981 bo->base.resv = resv; in ttm_bo_init_reserved()
982 dma_resv_assert_held(bo->base.resv); in ttm_bo_init_reserved()
984 bo->base.resv = &bo->base._resv; in ttm_bo_init_reserved()
1006 if (!resv) { in ttm_bo_init_reserved()
1007 locked = dma_resv_trylock(bo->base.resv); in ttm_bo_init_reserved()
1015 if (!resv) in ttm_bo_init_reserved()
1036 struct dma_resv *resv, in ttm_bo_init() argument
1043 page_alignment, &ctx, sg, resv, destroy); in ttm_bo_init()
1047 if (!resv) in ttm_bo_init()
1073 if (dma_resv_test_signaled(bo->base.resv, true)) in ttm_bo_wait()
1079 timeout = dma_resv_wait_timeout(bo->base.resv, true, interruptible, in ttm_bo_wait()
1087 dma_resv_add_excl_fence(bo->base.resv, NULL); in ttm_bo_wait()
1115 dma_resv_unlock(bo->base.resv); in ttm_bo_swapout()
1175 dma_resv_unlock(bo->base.resv); in ttm_bo_swapout()