Home
last modified time | relevance | path

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

/drivers/gpu/drm/ttm/tests/
Dttm_device_test.c21 struct ttm_device *ttm_dev; in ttm_device_init_basic() local
25 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL); in ttm_device_init_basic()
26 KUNIT_ASSERT_NOT_NULL(test, ttm_dev); in ttm_device_init_basic()
28 err = ttm_device_kunit_init(priv, ttm_dev, false, false); in ttm_device_init_basic()
31 KUNIT_EXPECT_PTR_EQ(test, ttm_dev->funcs, &ttm_dev_funcs); in ttm_device_init_basic()
32 KUNIT_ASSERT_NOT_NULL(test, ttm_dev->wq); in ttm_device_init_basic()
33 KUNIT_ASSERT_NOT_NULL(test, ttm_dev->man_drv[TTM_PL_SYSTEM]); in ttm_device_init_basic()
35 ttm_sys_man = &ttm_dev->sysman; in ttm_device_init_basic()
41 KUNIT_EXPECT_PTR_EQ(test, ttm_dev->dev_mapping, in ttm_device_init_basic()
44 ttm_device_fini(ttm_dev); in ttm_device_init_basic()
[all …]
Dttm_kunit_helpers.c39 bo->bdev = devs->ttm_dev; in ttm_bo_kunit_init()
67 struct ttm_device *ttm_dev; in ttm_test_devices_all() local
72 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL); in ttm_test_devices_all()
73 KUNIT_ASSERT_NOT_NULL(test, ttm_dev); in ttm_test_devices_all()
75 err = ttm_device_kunit_init(devs, ttm_dev, false, false); in ttm_test_devices_all()
78 devs->ttm_dev = ttm_dev; in ttm_test_devices_all()
86 if (devs->ttm_dev) in ttm_test_devices_put()
87 ttm_device_fini(devs->ttm_dev); in ttm_test_devices_put()
Dttm_kunit_helpers.h20 struct ttm_device *ttm_dev; member