Lines Matching full:place
298 * @place: placement of the resource
304 const struct ttm_place *place, in ttm_resource_init() argument
311 res->mem_type = place->mem_type; in ttm_resource_init()
312 res->placement = place->flags; in ttm_resource_init()
319 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init()
353 const struct ttm_place *place, in ttm_resource_alloc() argument
358 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc()
368 ret = man->func->alloc(man, bo, place, res_ptr); in ttm_resource_alloc()
410 * @place: The placement to test
413 * Test if @res intersects with @place and @size. Used for testing if evictions
416 * Returns true if the res placement intersects with @place and @size.
420 const struct ttm_place *place, in ttm_resource_intersects() argument
429 if (!place || !man->func->intersects) in ttm_resource_intersects()
432 return man->func->intersects(man, res, place, size); in ttm_resource_intersects()
456 const struct ttm_place *place = &placement->placement[i]; in ttm_resource_compatible() local
459 if (res->mem_type != place->mem_type) in ttm_resource_compatible()
462 if (place->flags & (evicting ? TTM_PL_FLAG_DESIRED : in ttm_resource_compatible()
466 if (place->flags & TTM_PL_FLAG_CONTIGUOUS && in ttm_resource_compatible()
472 !man->func->compatible(man, res, place, bo->base.size)) in ttm_resource_compatible()