Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/ttm/tests/
A Dttm_mock_manager.c29 struct ttm_mock_resource *mock_res; in ttm_mock_manager_alloc() local
34 mock_res = kzalloc(sizeof(*mock_res), GFP_KERNEL); in ttm_mock_manager_alloc()
36 if (!mock_res) in ttm_mock_manager_alloc()
42 ttm_resource_init(bo, place, &mock_res->base); in ttm_mock_manager_alloc()
43 INIT_LIST_HEAD(&mock_res->blocks); in ttm_mock_manager_alloc()
51 alloc_size = (uint64_t)mock_res->base.size; in ttm_mock_manager_alloc()
55 &mock_res->blocks, in ttm_mock_manager_alloc()
56 mock_res->flags); in ttm_mock_manager_alloc()
62 *res = &mock_res->base; in ttm_mock_manager_alloc()
67 ttm_resource_fini(man, &mock_res->base); in ttm_mock_manager_alloc()
[all …]
/linux/tools/testing/cxl/test/
A Dcxl.c385 static LIST_HEAD(mock_res);
394 list_for_each_entry_safe(res, _res, &mock_res, list) { in depopulate_all_mock_resources()
422 list_add(&res->list, &mock_res); in alloc_mock_res()

Completed in 11 milliseconds