• Home
  • Raw
  • Download

Lines Matching refs:resv

163 	dma_resv_assert_held(bo->base.resv);  in ttm_bo_move_to_lru_tail()
196 dma_resv_assert_held(pos->first->base.resv); in ttm_bo_bulk_move_lru_tail()
197 dma_resv_assert_held(pos->last->base.resv); in ttm_bo_bulk_move_lru_tail()
211 dma_resv_assert_held(pos->first->base.resv); in ttm_bo_bulk_move_lru_tail()
212 dma_resv_assert_held(pos->last->base.resv); in ttm_bo_bulk_move_lru_tail()
226 dma_resv_assert_held(pos->first->base.resv); in ttm_bo_bulk_move_lru_tail()
227 dma_resv_assert_held(pos->last->base.resv); in ttm_bo_bulk_move_lru_tail()
333 if (bo->base.resv == &bo->base._resv) in ttm_bo_individualize_resv()
338 r = dma_resv_copy_fences(&bo->base._resv, bo->base.resv); in ttm_bo_individualize_resv()
349 bo->base.resv = &bo->base._resv; in ttm_bo_individualize_resv()
358 struct dma_resv *resv = &bo->base._resv; in ttm_bo_flush_all_fences() local
364 fobj = rcu_dereference(resv->fence); in ttm_bo_flush_all_fences()
365 fence = rcu_dereference(resv->fence_excl); in ttm_bo_flush_all_fences()
395 struct dma_resv *resv = &bo->base._resv; in ttm_bo_cleanup_refs() local
398 if (dma_resv_test_signaled_rcu(resv, true)) in ttm_bo_cleanup_refs()
407 dma_resv_unlock(bo->base.resv); in ttm_bo_cleanup_refs()
410 lret = dma_resv_wait_timeout_rcu(resv, true, interruptible, in ttm_bo_cleanup_refs()
419 if (unlock_resv && !dma_resv_trylock(bo->base.resv)) { in ttm_bo_cleanup_refs()
436 dma_resv_unlock(bo->base.resv); in ttm_bo_cleanup_refs()
447 dma_resv_unlock(bo->base.resv); in ttm_bo_cleanup_refs()
476 if (remove_all || bo->base.resv != &bo->base._resv) { in ttm_bo_delayed_delete()
478 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_delayed_delete()
483 } else if (dma_resv_trylock(bo->base.resv)) { in ttm_bo_delayed_delete()
523 dma_resv_wait_timeout_rcu(bo->base.resv, true, false, in ttm_bo_release()
534 if (!dma_resv_test_signaled_rcu(bo->base.resv, true) || in ttm_bo_release()
535 !dma_resv_trylock(bo->base.resv)) { in ttm_bo_release()
568 dma_resv_unlock(bo->base.resv); in ttm_bo_release()
606 dma_resv_assert_held(bo->base.resv); in ttm_bo_evict()
673 if (bo->base.resv == ctx->resv) { in ttm_bo_evict_swapout_allowable()
674 dma_resv_assert_held(bo->base.resv); in ttm_bo_evict_swapout_allowable()
681 ret = dma_resv_trylock(bo->base.resv); in ttm_bo_evict_swapout_allowable()
709 r = dma_resv_lock_interruptible(busy_bo->base.resv, in ttm_mem_evict_wait_busy()
712 r = dma_resv_lock(busy_bo->base.resv, ticket); in ttm_mem_evict_wait_busy()
720 dma_resv_unlock(busy_bo->base.resv); in ttm_mem_evict_wait_busy()
744 dma_resv_locking_ctx(bo->base.resv)) in ttm_mem_evict_first()
752 dma_resv_unlock(bo->base.resv); in ttm_mem_evict_first()
757 dma_resv_unlock(bo->base.resv); in ttm_mem_evict_first()
822 dma_resv_add_shared_fence(bo->base.resv, fence); in ttm_bo_add_move_fence()
824 ret = dma_resv_reserve_shared(bo->base.resv, 1); in ttm_bo_add_move_fence()
849 ticket = dma_resv_locking_ctx(bo->base.resv); in ttm_bo_mem_force_space()
944 ret = dma_resv_reserve_shared(bo->base.resv, 1); in ttm_bo_mem_space()
1013 dma_resv_assert_held(bo->base.resv); in ttm_bo_move_buffer()
1085 dma_resv_assert_held(bo->base.resv); in ttm_bo_validate()
1130 struct dma_resv *resv, in ttm_bo_init_reserved() argument
1178 if (resv) { in ttm_bo_init_reserved()
1179 bo->base.resv = resv; in ttm_bo_init_reserved()
1180 dma_resv_assert_held(bo->base.resv); in ttm_bo_init_reserved()
1182 bo->base.resv = &bo->base._resv; in ttm_bo_init_reserved()
1206 if (!resv) { in ttm_bo_init_reserved()
1207 locked = dma_resv_trylock(bo->base.resv); in ttm_bo_init_reserved()
1215 if (!resv) in ttm_bo_init_reserved()
1237 struct dma_resv *resv, in ttm_bo_init() argument
1245 sg, resv, destroy); in ttm_bo_init()
1249 if (!resv) in ttm_bo_init()
1488 if (dma_resv_test_signaled_rcu(bo->base.resv, true)) in ttm_bo_wait()
1494 timeout = dma_resv_wait_timeout_rcu(bo->base.resv, true, in ttm_bo_wait()
1502 dma_resv_add_excl_fence(bo->base.resv, NULL); in ttm_bo_wait()
1527 dma_resv_unlock(bo->base.resv); in ttm_bo_swapout()
1598 dma_resv_unlock(bo->base.resv); in ttm_bo_swapout()