Searched refs:mock_res (Results 1 – 2 of 2) sorted by relevance
33 struct ttm_mock_resource *mock_res; in ttm_mock_manager_alloc() local38 mock_res = kzalloc_obj(*mock_res); in ttm_mock_manager_alloc()40 if (!mock_res) in ttm_mock_manager_alloc()46 ttm_resource_init(bo, place, &mock_res->base); in ttm_mock_manager_alloc()47 INIT_LIST_HEAD(&mock_res->blocks); in ttm_mock_manager_alloc()50 mock_res->flags |= DRM_BUDDY_TOPDOWN_ALLOCATION; in ttm_mock_manager_alloc()53 mock_res->flags |= DRM_BUDDY_CONTIGUOUS_ALLOCATION; in ttm_mock_manager_alloc()55 alloc_size = (uint64_t)mock_res->base.size; in ttm_mock_manager_alloc()59 &mock_res->blocks, in ttm_mock_manager_alloc()60 mock_res->flags); in ttm_mock_manager_alloc()[all …]
390 static LIST_HEAD(mock_res);399 list_for_each_entry_safe(res, _res, &mock_res, list) { in depopulate_all_mock_resources()427 list_add(&res->list, &mock_res); in alloc_mock_res()