Home
last modified time | relevance | path

Searched refs:bo_small (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_bo_validate_test.c764 struct ttm_buffer_object *bo_small, *bo_big; in ttm_bo_validate_swapout() local
781 bo_small = kunit_kzalloc(test, sizeof(*bo_small), GFP_KERNEL); in ttm_bo_validate_swapout()
782 KUNIT_ASSERT_NOT_NULL(test, bo_small); in ttm_bo_validate_swapout()
784 drm_gem_private_object_init(priv->drm, &bo_small->base, size); in ttm_bo_validate_swapout()
786 err = ttm_bo_init_reserved(priv->ttm_dev, bo_small, bo_type, placement, in ttm_bo_validate_swapout()
790 dma_resv_unlock(bo_small->base.resv); in ttm_bo_validate_swapout()
801 KUNIT_EXPECT_EQ(test, bo_small->resource->mem_type, TTM_PL_SYSTEM); in ttm_bo_validate_swapout()
802 KUNIT_EXPECT_TRUE(test, bo_small->ttm->page_flags & TTM_TT_FLAG_SWAPPED); in ttm_bo_validate_swapout()
805 ttm_bo_put(bo_small); in ttm_bo_validate_swapout()
870 struct ttm_buffer_object *bo_big, *bo_small; in ttm_bo_validate_all_pinned_evict() local
[all …]