Lines Matching refs:bo2
141 struct ttm_buffer_object *bo1, *bo2; in ttm_bo_reserve_deadlock() local
148 bo2 = ttm_bo_kunit_init(test, test->priv, BO_SIZE, NULL); in ttm_bo_reserve_deadlock()
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()
163 err = ttm_bo_reserve(bo2, interruptible, no_wait, &ctx1); in ttm_bo_reserve_deadlock()
326 struct ttm_buffer_object *bo1, *bo2; in ttm_bo_unreserve_bulk() local
352 bo2 = ttm_bo_kunit_init(test, test->priv, BO_SIZE, resv); in ttm_bo_unreserve_bulk()
362 dma_resv_lock(bo2->base.resv, NULL); in ttm_bo_unreserve_bulk()
363 ttm_bo_set_bulk_move(bo2, &lru_bulk_move); in ttm_bo_unreserve_bulk()
364 dma_resv_unlock(bo2->base.resv); in ttm_bo_unreserve_bulk()
366 err = ttm_resource_alloc(bo2, place, &res2); in ttm_bo_unreserve_bulk()
368 bo2->resource = res2; in ttm_bo_unreserve_bulk()
377 ttm_resource_free(bo2, &res2); in ttm_bo_unreserve_bulk()