Searched refs:ttm_devs (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_device_test.c | 50 struct ttm_device *ttm_devs; in ttm_device_init_multiple() local 54 ttm_devs = kunit_kcalloc(test, num_dev, sizeof(*ttm_devs), GFP_KERNEL); in ttm_device_init_multiple() 55 KUNIT_ASSERT_NOT_NULL(test, ttm_devs); in ttm_device_init_multiple() 58 err = ttm_device_kunit_init(priv, &ttm_devs[i], false, false); in ttm_device_init_multiple() 61 KUNIT_EXPECT_PTR_EQ(test, ttm_devs[i].dev_mapping, in ttm_device_init_multiple() 63 KUNIT_ASSERT_NOT_NULL(test, ttm_devs[i].wq); in ttm_device_init_multiple() 64 KUNIT_EXPECT_PTR_EQ(test, ttm_devs[i].funcs, &ttm_dev_funcs); in ttm_device_init_multiple() 65 KUNIT_ASSERT_NOT_NULL(test, ttm_devs[i].man_drv[TTM_PL_SYSTEM]); in ttm_device_init_multiple() 68 KUNIT_ASSERT_EQ(test, list_count_nodes(&ttm_devs[0].device_list), num_dev); in ttm_device_init_multiple() 71 ttm_device_fini(&ttm_devs[i]); in ttm_device_init_multiple()
|