Lines Matching refs:resv

66 					     struct dma_resv *resv,  in dma_resv_kunit_active_fence_init()  argument
74 dma_resv_lock(resv, NULL); in dma_resv_kunit_active_fence_init()
75 dma_resv_reserve_fences(resv, 1); in dma_resv_kunit_active_fence_init()
76 dma_resv_add_fence(resv, fence, usage); in dma_resv_kunit_active_fence_init()
77 dma_resv_unlock(resv); in dma_resv_kunit_active_fence_init()
127 dma_resv_unlock(bo->base.resv); in ttm_bo_init_reserved_sys_man()
139 KUNIT_EXPECT_NOT_NULL(test, (void *)bo->base.resv->fences); in ttm_bo_init_reserved_sys_man()
176 dma_resv_unlock(bo->base.resv); in ttm_bo_init_reserved_mock_man()
202 struct dma_resv resv; in ttm_bo_init_reserved_resv() local
212 dma_resv_init(&resv); in ttm_bo_init_reserved_resv()
213 dma_resv_lock(&resv, NULL); in ttm_bo_init_reserved_resv()
216 PAGE_SIZE, &ctx, NULL, &resv, in ttm_bo_init_reserved_resv()
218 dma_resv_unlock(bo->base.resv); in ttm_bo_init_reserved_resv()
221 KUNIT_EXPECT_PTR_EQ(test, bo->base.resv, &resv); in ttm_bo_init_reserved_resv()
258 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_basic()
291 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_invalid_placement()
320 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_failed_alloc()
348 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_pinned()
354 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_pinned()
401 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_same_placement()
446 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_busy_placement()
492 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_multihop()
575 struct dma_resv *resv = bo->base.resv; in threaded_dma_resv_signal() local
579 dma_resv_iter_begin(&cursor, resv, DMA_RESV_USAGE_BOOKKEEP); in threaded_dma_resv_signal()
614 dma_resv_kunit_active_fence_init(test, bo->base.resv, usage); in ttm_bo_validate_no_placement_not_signaled()
632 KUNIT_ASSERT_PTR_EQ(test, bo->base.resv, &bo->base._resv); in ttm_bo_validate_no_placement_not_signaled()
635 dma_resv_wait_timeout(bo->base.resv, usage, false, MAX_SCHEDULE_TIMEOUT); in ttm_bo_validate_no_placement_not_signaled()
743 dma_resv_unlock(bo->base.resv); in ttm_bo_validate_move_fence_not_signaled()
790 dma_resv_unlock(bo_small->base.resv); in ttm_bo_validate_swapout()
794 dma_resv_lock(bo_big->base.resv, NULL); in ttm_bo_validate_swapout()
796 dma_resv_unlock(bo_big->base.resv); in ttm_bo_validate_swapout()
841 dma_resv_unlock(bos[i].base.resv); in ttm_bo_validate_happy_evict()
893 dma_resv_unlock(bo_big->base.resv); in ttm_bo_validate_all_pinned_evict()
908 dma_resv_unlock(bo_big->base.resv); in ttm_bo_validate_all_pinned_evict()
943 dma_resv_unlock(bo_pinned->base.resv); in ttm_bo_validate_allowed_only_evict()
953 dma_resv_unlock(bo_evictable->base.resv); in ttm_bo_validate_allowed_only_evict()
973 dma_resv_unlock(bo_pinned->base.resv); in ttm_bo_validate_allowed_only_evict()
1009 dma_resv_unlock(bo_big->base.resv); in ttm_bo_validate_deleted_evict()
1064 dma_resv_unlock(bo_init->base.resv); in ttm_bo_validate_busy_domain_evict()
1108 dma_resv_unlock(bo_evict->base.resv); in ttm_bo_validate_evict_gutting()
1159 dma_resv_unlock(bo_tt->base.resv); in ttm_bo_validate_recrusive_evict()
1166 dma_resv_unlock(bo_mock->base.resv); in ttm_bo_validate_recrusive_evict()