Lines Matching full:place
50 const struct ttm_place *place, in xe_ttm_vram_mgr_new() argument
60 lpfn = place->lpfn; in xe_ttm_vram_mgr_new()
64 if (tbo->base.size >> PAGE_SHIFT > (lpfn - place->fpfn)) in xe_ttm_vram_mgr_new()
71 ttm_resource_init(tbo, place, &vres->base); in xe_ttm_vram_mgr_new()
81 if (place->flags & TTM_PL_FLAG_TOPDOWN) in xe_ttm_vram_mgr_new()
84 if (place->fpfn || lpfn != man->size >> PAGE_SHIFT) in xe_ttm_vram_mgr_new()
113 if (place->fpfn + (size >> PAGE_SHIFT) != lpfn && in xe_ttm_vram_mgr_new()
114 place->flags & TTM_PL_FLAG_CONTIGUOUS) { in xe_ttm_vram_mgr_new()
118 lpfn = max_t(unsigned long, place->fpfn + (size >> PAGE_SHIFT), lpfn); in xe_ttm_vram_mgr_new()
121 err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT, in xe_ttm_vram_mgr_new()
127 if (place->flags & TTM_PL_FLAG_CONTIGUOUS) { in xe_ttm_vram_mgr_new()
220 const struct ttm_place *place, in xe_ttm_vram_mgr_intersects() argument
229 if (!place->fpfn && !place->lpfn) in xe_ttm_vram_mgr_intersects()
232 if (!place->fpfn && place->lpfn == mgr->visible_size >> PAGE_SHIFT) in xe_ttm_vram_mgr_intersects()
241 if (place->fpfn < lpfn && place->lpfn > fpfn) in xe_ttm_vram_mgr_intersects()
250 const struct ttm_place *place, in xe_ttm_vram_mgr_compatible() argument
259 if (!place->fpfn && !place->lpfn) in xe_ttm_vram_mgr_compatible()
262 if (!place->fpfn && place->lpfn == mgr->visible_size >> PAGE_SHIFT) in xe_ttm_vram_mgr_compatible()
271 if (fpfn < place->fpfn || lpfn > place->lpfn) in xe_ttm_vram_mgr_compatible()