Lines Matching full:place
129 struct ttm_place *place, in i915_ttm_place_from_region() argument
134 memset(place, 0, sizeof(*place)); in i915_ttm_place_from_region()
135 place->mem_type = intel_region_to_ttm_type(mr); in i915_ttm_place_from_region()
141 place->flags |= TTM_PL_FLAG_CONTIGUOUS; in i915_ttm_place_from_region()
143 WARN_ON(overflows_type(offset >> PAGE_SHIFT, place->fpfn)); in i915_ttm_place_from_region()
144 place->fpfn = offset >> PAGE_SHIFT; in i915_ttm_place_from_region()
145 WARN_ON(overflows_type(place->fpfn + (size >> PAGE_SHIFT), place->lpfn)); in i915_ttm_place_from_region()
146 place->lpfn = place->fpfn + (size >> PAGE_SHIFT); in i915_ttm_place_from_region()
149 place->flags |= TTM_PL_FLAG_TOPDOWN; in i915_ttm_place_from_region()
151 place->fpfn = 0; in i915_ttm_place_from_region()
152 WARN_ON(overflows_type(mr->io_size >> PAGE_SHIFT, place->lpfn)); in i915_ttm_place_from_region()
153 place->lpfn = mr->io_size >> PAGE_SHIFT; in i915_ttm_place_from_region()
362 const struct ttm_place *place) in i915_ttm_eviction_valuable() argument
381 return ttm_bo_eviction_valuable(bo, place); in i915_ttm_eviction_valuable()
432 struct ttm_placement place = {}; in i915_ttm_purge() local
438 ret = ttm_bo_validate(bo, &place, &ctx); in i915_ttm_purge()
472 struct ttm_placement place = {}; in i915_ttm_shrink() local
498 ret = ttm_bo_validate(bo, &place, &ctx); in i915_ttm_shrink()
1000 * If we need to place an LMEM resource which doesn't need CPU in i915_ttm_adjust_lru()