Lines Matching refs:place
49 const struct ttm_place *place, in xe_ttm_vram_mgr_new() argument
59 lpfn = place->lpfn; in xe_ttm_vram_mgr_new()
63 if (tbo->base.size >> PAGE_SHIFT > (lpfn - place->fpfn)) in xe_ttm_vram_mgr_new()
70 ttm_resource_init(tbo, place, &vres->base); in xe_ttm_vram_mgr_new()
80 if (place->flags & TTM_PL_FLAG_TOPDOWN) in xe_ttm_vram_mgr_new()
83 if (place->fpfn || lpfn != man->size >> PAGE_SHIFT) in xe_ttm_vram_mgr_new()
124 if (place->fpfn + (size >> PAGE_SHIFT) != place->lpfn && in xe_ttm_vram_mgr_new()
125 place->flags & TTM_PL_FLAG_CONTIGUOUS) { in xe_ttm_vram_mgr_new()
129 lpfn = max_t(unsigned long, place->fpfn + (size >> PAGE_SHIFT), lpfn); in xe_ttm_vram_mgr_new()
140 err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT, in xe_ttm_vram_mgr_new()
152 if (place->flags & TTM_PL_FLAG_CONTIGUOUS) { in xe_ttm_vram_mgr_new()
247 const struct ttm_place *place, in xe_ttm_vram_mgr_intersects() argument
256 if (!place->fpfn && !place->lpfn) in xe_ttm_vram_mgr_intersects()
259 if (!place->fpfn && place->lpfn == mgr->visible_size >> PAGE_SHIFT) in xe_ttm_vram_mgr_intersects()
268 if (place->fpfn < lpfn && place->lpfn > fpfn) in xe_ttm_vram_mgr_intersects()
277 const struct ttm_place *place, in xe_ttm_vram_mgr_compatible() argument
286 if (!place->fpfn && !place->lpfn) in xe_ttm_vram_mgr_compatible()
289 if (!place->fpfn && place->lpfn == mgr->visible_size >> PAGE_SHIFT) in xe_ttm_vram_mgr_compatible()
298 if (fpfn < place->fpfn || lpfn > place->lpfn) in xe_ttm_vram_mgr_compatible()