Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/i915/
H A Dintel_region_ttm.c205 struct ttm_buffer_object mock_bo = {}; in intel_region_ttm_resource_alloc() local
235 mock_bo.base.size = size; in intel_region_ttm_resource_alloc()
236 mock_bo.bdev = &mem->i915->bdev; in intel_region_ttm_resource_alloc()
238 ret = man->func->alloc(man, &mock_bo, &place, &res); in intel_region_ttm_resource_alloc()
259 struct ttm_buffer_object mock_bo = {}; in intel_region_ttm_resource_free() local
261 mock_bo.base.size = res->size; in intel_region_ttm_resource_free()
262 mock_bo.bdev = &mem->i915->bdev; in intel_region_ttm_resource_free()
263 res->bo = &mock_bo; in intel_region_ttm_resource_free()
/openbmc/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_pool_test.c22 struct ttm_buffer_object *mock_bo; member
62 priv->mock_bo = bo; in ttm_tt_kunit_init()
67 err = ttm_tt_init(tt, priv->mock_bo, page_flags, caching, 0); in ttm_tt_kunit_init()