Lines Matching refs:place
127 struct ttm_place *place, in i915_ttm_place_from_region() argument
132 memset(place, 0, sizeof(*place)); in i915_ttm_place_from_region()
133 place->mem_type = intel_region_to_ttm_type(mr); in i915_ttm_place_from_region()
139 place->flags |= TTM_PL_FLAG_CONTIGUOUS; in i915_ttm_place_from_region()
141 WARN_ON(overflows_type(offset >> PAGE_SHIFT, place->fpfn)); in i915_ttm_place_from_region()
142 place->fpfn = offset >> PAGE_SHIFT; in i915_ttm_place_from_region()
143 WARN_ON(overflows_type(place->fpfn + (size >> PAGE_SHIFT), place->lpfn)); in i915_ttm_place_from_region()
144 place->lpfn = place->fpfn + (size >> PAGE_SHIFT); in i915_ttm_place_from_region()
147 place->flags |= TTM_PL_FLAG_TOPDOWN; in i915_ttm_place_from_region()
149 place->fpfn = 0; in i915_ttm_place_from_region()
150 WARN_ON(overflows_type(resource_size(&mr->io) >> PAGE_SHIFT, place->lpfn)); in i915_ttm_place_from_region()
151 place->lpfn = resource_size(&mr->io) >> PAGE_SHIFT; in i915_ttm_place_from_region()
355 const struct ttm_place *place) in i915_ttm_eviction_valuable() argument
374 return ttm_bo_eviction_valuable(bo, place); in i915_ttm_eviction_valuable()
425 struct ttm_placement place = {}; in i915_ttm_purge() local
431 ret = ttm_bo_validate(bo, &place, &ctx); in i915_ttm_purge()
465 struct ttm_placement place = {}; in i915_ttm_shrink() local
491 ret = ttm_bo_validate(bo, &place, &ctx); in i915_ttm_shrink()