Lines Matching full:place

152 	struct ttm_place place = { .mem_type = mem_type };  in add_vram()  local
168 place.flags |= TTM_PL_FLAG_CONTIGUOUS; in add_vram()
172 place.fpfn = 0; in add_vram()
173 place.lpfn = io_size >> PAGE_SHIFT; in add_vram()
175 place.flags |= TTM_PL_FLAG_TOPDOWN; in add_vram()
178 places[*c] = place; in add_vram()
813 struct ttm_place place = { in xe_bo_evict_pinned() local
817 .placement = &place, in xe_bo_evict_pinned()
1335 struct ttm_place *place = bo->placements; in __xe_bo_fixed_placement() local
1340 place->flags = TTM_PL_FLAG_CONTIGUOUS; in __xe_bo_fixed_placement()
1341 place->fpfn = start >> PAGE_SHIFT; in __xe_bo_fixed_placement()
1342 place->lpfn = end >> PAGE_SHIFT; in __xe_bo_fixed_placement()
1346 place->mem_type = XE_PL_VRAM0; in __xe_bo_fixed_placement()
1349 place->mem_type = XE_PL_VRAM1; in __xe_bo_fixed_placement()
1352 place->mem_type = XE_PL_STOLEN; in __xe_bo_fixed_placement()
1362 .placement = place, in __xe_bo_fixed_placement()
1364 .busy_placement = place, in __xe_bo_fixed_placement()
1666 struct ttm_place *place = &(bo->placements[0]); in xe_bo_pin() local
1668 if (mem_type_is_vram(place->mem_type)) { in xe_bo_pin()
1669 xe_assert(xe, place->flags & TTM_PL_FLAG_CONTIGUOUS); in xe_bo_pin()
1671 place->fpfn = (xe_bo_addr(bo, 0, PAGE_SIZE) - in xe_bo_pin()
1673 place->lpfn = place->fpfn + (bo->size >> PAGE_SHIFT); in xe_bo_pin()
1734 struct ttm_place *place = &(bo->placements[0]); in xe_bo_unpin() local
1736 if (mem_type_is_vram(place->mem_type)) { in xe_bo_unpin()
2078 static void xe_place_from_ttm_type(u32 mem_type, struct ttm_place *place) in xe_place_from_ttm_type() argument
2080 memset(place, 0, sizeof(*place)); in xe_place_from_ttm_type()
2081 place->mem_type = mem_type; in xe_place_from_ttm_type()