Lines Matching refs:resv
70 dma_resv_unlock(bo->base.resv); in ttm_bo_reserve_optimistic_no_ticket()
83 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_reserve_locked_no_sleep()
86 dma_resv_unlock(bo->base.resv); in ttm_bo_reserve_locked_no_sleep()
126 dma_resv_unlock(bo->base.resv); in ttm_bo_reserve_double_resv()
151 ww_mutex_base_lock(&bo2->base.resv->lock.base); in ttm_bo_reserve_deadlock()
154 lock_release(&bo2->base.resv->lock.base.dep_map, 1); in ttm_bo_reserve_deadlock()
156 bo2->base.resv->lock.ctx = &ctx2; in ttm_bo_reserve_deadlock()
166 dma_resv_unlock(bo1->base.resv); in ttm_bo_reserve_deadlock()
225 mutex_lock(&bo->base.resv->lock.base); in ttm_bo_reserve_interrupted()
231 mutex_unlock(&bo->base.resv->lock.base); in ttm_bo_reserve_interrupted()
269 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_unreserve_basic()
300 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_unreserve_pinned()
330 struct dma_resv *resv; in ttm_bo_unreserve_bulk() local
342 resv = kunit_kzalloc(test, sizeof(*resv), GFP_KERNEL); in ttm_bo_unreserve_bulk()
349 dma_resv_init(resv); in ttm_bo_unreserve_bulk()
351 bo1 = ttm_bo_kunit_init(test, test->priv, BO_SIZE, resv); in ttm_bo_unreserve_bulk()
352 bo2 = ttm_bo_kunit_init(test, test->priv, BO_SIZE, resv); in ttm_bo_unreserve_bulk()
354 dma_resv_lock(bo1->base.resv, NULL); in ttm_bo_unreserve_bulk()
356 dma_resv_unlock(bo1->base.resv); in ttm_bo_unreserve_bulk()
362 dma_resv_lock(bo2->base.resv, NULL); in ttm_bo_unreserve_bulk()
364 dma_resv_unlock(bo2->base.resv); in ttm_bo_unreserve_bulk()
379 dma_resv_fini(resv); in ttm_bo_unreserve_bulk()
408 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_put_basic()
410 dma_resv_unlock(bo->base.resv); in ttm_bo_put_basic()
464 bo->base.resv = external_resv; in ttm_bo_put_shared_resv()
487 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_pin_basic()
489 dma_resv_unlock(bo->base.resv); in ttm_bo_pin_basic()
525 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_pin_unpin_resource()
528 dma_resv_unlock(bo->base.resv); in ttm_bo_pin_unpin_resource()
536 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_pin_unpin_resource()
538 dma_resv_unlock(bo->base.resv); in ttm_bo_pin_unpin_resource()
576 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_multiple_pin_one_unpin()
583 dma_resv_unlock(bo->base.resv); in ttm_bo_multiple_pin_one_unpin()
591 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_multiple_pin_one_unpin()
593 dma_resv_unlock(bo->base.resv); in ttm_bo_multiple_pin_one_unpin()
599 dma_resv_lock(bo->base.resv, NULL); in ttm_bo_multiple_pin_one_unpin()
601 dma_resv_unlock(bo->base.resv); in ttm_bo_multiple_pin_one_unpin()