Lines Matching refs:tt

57 	struct ttm_tt *tt;
64 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL);
65 KUNIT_ASSERT_NOT_NULL(test, tt);
67 err = ttm_tt_init(tt, priv->mock_bo, page_flags, caching, 0);
70 return tt;
80 struct ttm_tt *tt;
83 tt = ttm_tt_kunit_init(test, 0, caching, size);
84 KUNIT_ASSERT_NOT_NULL(test, tt);
91 err = ttm_pool_alloc(pool, tt, &simple_ctx);
94 ttm_pool_free(pool, tt);
95 ttm_tt_fini(tt);
139 struct ttm_tt *tt;
147 tt = ttm_tt_kunit_init(test, 0, caching, size);
148 KUNIT_ASSERT_NOT_NULL(test, tt);
160 err = ttm_pool_alloc(pool, tt, &simple_ctx);
162 KUNIT_ASSERT_EQ(test, tt->num_pages, expected_num_pages);
164 fst_page = tt->pages[0];
165 last_page = tt->pages[tt->num_pages - 1];
190 ttm_pool_free(pool, tt);
191 ttm_tt_fini(tt);
200 struct ttm_tt *tt;
209 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL);
210 KUNIT_ASSERT_NOT_NULL(test, tt);
215 err = ttm_sg_tt_init(tt, bo, 0, caching);
223 err = ttm_pool_alloc(pool, tt, &simple_ctx);
225 KUNIT_ASSERT_EQ(test, tt->num_pages, expected_num_pages);
227 dma1 = tt->dma_address[0];
228 dma2 = tt->dma_address[tt->num_pages - 1];
233 ttm_pool_free(pool, tt);
234 ttm_tt_fini(tt);
240 struct ttm_tt *tt;
253 tt = ttm_tt_kunit_init(test, 0, caching, size);
254 KUNIT_ASSERT_NOT_NULL(test, tt);
256 err = ttm_pool_alloc(pool, tt, &simple_ctx);
261 ttm_pool_free(pool, tt);
262 ttm_tt_fini(tt);
268 struct ttm_tt *tt;
282 tt = ttm_tt_kunit_init(test, 0, tt_caching, size);
283 KUNIT_ASSERT_NOT_NULL(test, tt);
288 err = ttm_pool_alloc(pool, tt, &simple_ctx);
291 ttm_pool_free(pool, tt);
292 ttm_tt_fini(tt);
302 struct ttm_tt *tt;
316 tt = ttm_tt_kunit_init(test, 0, caching, snd_size);
317 KUNIT_ASSERT_NOT_NULL(test, tt);
322 err = ttm_pool_alloc(pool, tt, &simple_ctx);
325 ttm_pool_free(pool, tt);
326 ttm_tt_fini(tt);
338 struct ttm_tt *tt;
345 tt = ttm_tt_kunit_init(test, 0, caching, size);
346 KUNIT_ASSERT_NOT_NULL(test, tt);
352 ttm_pool_alloc(pool, tt, &simple_ctx);
357 ttm_pool_free(pool, tt);
358 ttm_tt_fini(tt);
369 struct ttm_tt *tt;
376 tt = ttm_tt_kunit_init(test, 0, caching, size);
377 KUNIT_ASSERT_NOT_NULL(test, tt);
383 ttm_pool_alloc(pool, tt, &simple_ctx);
388 ttm_pool_free(pool, tt);
389 ttm_tt_fini(tt);