Lines Matching full:exported
29 static void check_residency(struct kunit *test, struct xe_bo *exported, in check_residency() argument
36 xe_bo_assert_held(exported); in check_residency()
51 if (!xe_bo_is_mem_type(exported, mem_type)) { in check_residency()
52 KUNIT_FAIL(test, "Exported bo was not in expected memory type.\n"); in check_residency()
56 if (xe_bo_is_pinned(exported)) in check_residency()
62 * functionality, so hack that up here. Evicting the exported bo will in check_residency()
67 swap(exported->ttm.base.dma_buf, dmabuf); in check_residency()
68 ret = xe_bo_evict(exported, true); in check_residency()
69 swap(exported->ttm.base.dma_buf, dmabuf); in check_residency()
78 if (exported != imported && !xe_bo_is_mem_type(imported, XE_PL_SYSTEM)) { in check_residency()
98 KUNIT_EXPECT_TRUE(test, xe_bo_is_mem_type(exported, XE_PL_TT)); in check_residency()
100 KUNIT_EXPECT_TRUE(test, xe_bo_is_mem_type(exported, mem_type)); in check_residency()
105 KUNIT_EXPECT_TRUE(test, exported == imported); in check_residency()