Lines Matching refs:resv

336 	if (bo->tbo.base.resv != vm->root.bo->tbo.base.resv)
339 dma_resv_assert_held(vm->root.bo->tbo.base.resv);
515 if (dma_resv_locking_ctx(bo->tbo.base.resv) != ticket) {
921 dma_resv_add_fence(vm->root.bo->tbo.base.resv, *fence,
935 * @resv: fences we need to sync to
952 struct dma_resv *resv, uint64_t start, uint64_t last,
1015 r = vm->update_funcs->prepare(&params, resv, sync_mode);
1104 if (bo->tbo.base.resv != vm->root.bo->tbo.base.resv &&
1105 !dma_resv_trylock(bo->tbo.base.resv))
1109 if (bo->tbo.base.resv != vm->root.bo->tbo.base.resv)
1110 dma_resv_unlock(bo->tbo.base.resv);
1162 struct dma_resv *resv;
1169 resv = vm->root.bo->tbo.base.resv;
1173 resv = bo->tbo.base.resv;
1206 if (clear || (bo && bo->tbo.base.resv ==
1207 vm->root.bo->tbo.base.resv))
1237 !uncached, resv, mapping->start, mapping->last,
1249 if (bo && bo->tbo.base.resv == vm->root.bo->tbo.base.resv) {
1387 struct dma_resv *resv = vm->root.bo->tbo.base.resv;
1391 dma_resv_for_each_fence(&cursor, resv, DMA_RESV_USAGE_BOOKKEEP, fence) {
1417 struct dma_resv *resv = vm->root.bo->tbo.base.resv;
1429 resv, mapping->start, mapping->last,
1469 struct dma_resv *resv;
1489 resv = bo_va->base.bo->tbo.base.resv;
1493 if (!adev->debug_vm && dma_resv_trylock(resv)) {
1497 } else if (ticket && dma_resv_locking_ctx(resv) == ticket) {
1509 dma_resv_unlock(resv);
1609 dma_resv_assert_held(bo->tbo.base.resv);
1643 if (bo && bo->tbo.base.resv == vm->root.bo->tbo.base.resv &&
1945 if (bo && bo->tbo.base.resv == vm->root.bo->tbo.base.resv &&
1960 if (bo && bo->tbo.base.resv == vm->root.bo->tbo.base.resv &&
2009 if (dma_resv_locking_ctx(bo->tbo.base.resv) !=
2036 dma_resv_assert_held(vm->root.bo->tbo.base.resv);
2039 dma_resv_assert_held(bo->tbo.base.resv);
2040 if (bo->tbo.base.resv == vm->root.bo->tbo.base.resv)
2095 if (!dma_resv_test_signaled(bo->tbo.base.resv, DMA_RESV_USAGE_BOOKKEEP))
2134 if (evicted && bo->tbo.base.resv == vm->root.bo->tbo.base.resv) {
2145 else if (bo->tbo.base.resv == vm->root.bo->tbo.base.resv)
2275 timeout = dma_resv_wait_timeout(vm->root.bo->tbo.base.resv,
2464 r = dma_resv_reserve_fences(root_bo->tbo.base.resv, 1);
2832 r = dma_resv_reserve_fences(root->tbo.base.resv, 1);