Lines Matching refs:resv
202 r = __dma_resv_make_exclusive(bo->tbo.base.resv); in amdgpu_dma_buf_attach()
458 struct dma_resv *resv = dma_buf->resv; in amdgpu_dma_buf_create_obj() local
471 bp.resv = resv; in amdgpu_dma_buf_create_obj()
472 dma_resv_lock(resv, NULL); in amdgpu_dma_buf_create_obj()
475 0, ttm_bo_type_sg, resv, &gobj); in amdgpu_dma_buf_create_obj()
485 dma_resv_unlock(resv); in amdgpu_dma_buf_create_obj()
489 dma_resv_unlock(resv); in amdgpu_dma_buf_create_obj()
505 struct ww_acquire_ctx *ticket = dma_resv_locking_ctx(obj->resv); in amdgpu_dma_buf_move_notify()
524 struct dma_resv *resv = vm->root.base.bo->tbo.base.resv; in amdgpu_dma_buf_move_notify() local
531 r = dma_resv_lock(resv, ticket); in amdgpu_dma_buf_move_notify()
540 if (!dma_resv_trylock(resv)) in amdgpu_dma_buf_move_notify()
552 dma_resv_unlock(resv); in amdgpu_dma_buf_move_notify()