Lines Matching full:place
320 * @place: placement of the resource
326 const struct ttm_place *place, in ttm_resource_init() argument
333 res->mem_type = place->mem_type; in ttm_resource_init()
334 res->placement = place->flags; in ttm_resource_init()
341 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init()
375 const struct ttm_place *place, in ttm_resource_alloc() argument
380 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc()
390 ret = man->func->alloc(man, bo, place, res_ptr); in ttm_resource_alloc()
432 * @place: The placement to test
435 * Test if @res intersects with @place and @size. Used for testing if evictions
438 * Returns true if the res placement intersects with @place and @size.
442 const struct ttm_place *place, in ttm_resource_intersects() argument
451 if (!place || !man->func->intersects) in ttm_resource_intersects()
454 return man->func->intersects(man, res, place, size); in ttm_resource_intersects()
478 const struct ttm_place *place = &placement->placement[i]; in ttm_resource_compatible() local
481 if (res->mem_type != place->mem_type) in ttm_resource_compatible()
484 if (place->flags & (evicting ? TTM_PL_FLAG_DESIRED : in ttm_resource_compatible()
488 if (place->flags & TTM_PL_FLAG_CONTIGUOUS && in ttm_resource_compatible()
494 !man->func->compatible(man, res, place, bo->base.size)) in ttm_resource_compatible()