Lines Matching full:place
281 * @place: placement of the resource
287 const struct ttm_place *place, in ttm_resource_init() argument
294 res->mem_type = place->mem_type; in ttm_resource_init()
295 res->placement = place->flags; in ttm_resource_init()
302 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init()
336 const struct ttm_place *place, in ttm_resource_alloc() argument
340 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc()
343 ret = man->func->alloc(man, bo, place, res_ptr); in ttm_resource_alloc()
375 * @place: The placement to test
378 * Test if @res intersects with @place and @size. Used for testing if evictions
381 * Returns true if the res placement intersects with @place and @size.
385 const struct ttm_place *place, in ttm_resource_intersects() argument
394 if (!place || !man->func->intersects) in ttm_resource_intersects()
397 return man->func->intersects(man, res, place, size); in ttm_resource_intersects()
421 const struct ttm_place *place = &placement->placement[i]; in ttm_resource_compatible() local
424 if (res->mem_type != place->mem_type) in ttm_resource_compatible()
427 if (place->flags & (evicting ? TTM_PL_FLAG_DESIRED : in ttm_resource_compatible()
431 if (place->flags & TTM_PL_FLAG_CONTIGUOUS && in ttm_resource_compatible()
437 !man->func->compatible(man, res, place, bo->base.size)) in ttm_resource_compatible()