/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_ttm_buddy_manager.c | 42 unsigned long n_pages, lpfn; in i915_ttm_buddy_man_alloc() local 47 lpfn = place->lpfn; in i915_ttm_buddy_man_alloc() 48 if (!lpfn) in i915_ttm_buddy_man_alloc() 49 lpfn = man->size; in i915_ttm_buddy_man_alloc() 62 if (place->fpfn || lpfn != man->size) in i915_ttm_buddy_man_alloc() 75 if (place->fpfn + bman_res->base.num_pages != place->lpfn && in i915_ttm_buddy_man_alloc() 83 if (pages > lpfn) in i915_ttm_buddy_man_alloc() 84 lpfn = pages; in i915_ttm_buddy_man_alloc() 87 if (size > lpfn << PAGE_SHIFT) { in i915_ttm_buddy_man_alloc() 95 if (lpfn <= bman->visible_size && n_pages > bman->visible_avail) { in i915_ttm_buddy_man_alloc() [all …]
|
D | intel_region_ttm.c | 213 place.lpfn = place.fpfn + (size >> PAGE_SHIFT); in intel_region_ttm_resource_alloc() 219 place.lpfn = mem->io_size >> PAGE_SHIFT; in intel_region_ttm_resource_alloc()
|
/linux-6.1.9/drivers/gpu/drm/ttm/ |
D | ttm_range_manager.c | 67 unsigned long lpfn; in ttm_range_man_alloc() local 70 lpfn = place->lpfn; in ttm_range_man_alloc() 71 if (!lpfn) in ttm_range_man_alloc() 72 lpfn = man->size; in ttm_range_man_alloc() 88 place->fpfn, lpfn, mode); in ttm_range_man_alloc() 126 (place->lpfn && place->lpfn <= node->start)) in ttm_range_man_intersects() 141 (place->lpfn && (node->start + num_pages) > place->lpfn)) in ttm_range_man_compatible()
|
/linux-6.1.9/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ttm_buffer.c | 34 .lpfn = 0, 41 .lpfn = 0, 48 .lpfn = 0, 55 .lpfn = 0, 70 .lpfn = 0, 75 .lpfn = 0, 84 .lpfn = 0, 89 .lpfn = 0, 97 .lpfn = 0, 133 .lpfn = 0, [all …]
|
D | vmwgfx_bo.c | 197 place.lpfn = bo->resource->num_pages; in vmw_bo_pin_in_start_of_vram() 311 pl.lpfn = 0; in vmw_bo_pin_reserved()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vram_mgr.c | 392 u64 size, remaining_size, lpfn, fpfn; in amdgpu_vram_mgr_new() local 398 lpfn = (u64)place->lpfn << PAGE_SHIFT; in amdgpu_vram_mgr_new() 399 if (!lpfn) in amdgpu_vram_mgr_new() 400 lpfn = man->size; in amdgpu_vram_mgr_new() 438 if (fpfn || lpfn != mgr->mm.size) in amdgpu_vram_mgr_new() 461 if (fpfn + size != (u64)place->lpfn << PAGE_SHIFT) { in amdgpu_vram_mgr_new() 479 lpfn, in amdgpu_vram_mgr_new() 745 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_intersects() local 748 if (place->fpfn < lpfn && in amdgpu_vram_mgr_intersects() 749 (!place->lpfn || place->lpfn > fpfn)) in amdgpu_vram_mgr_intersects() [all …]
|
D | amdgpu_object.c | 136 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain() 141 places[c].lpfn = visible_pfn; in amdgpu_bo_placement_from_domain() 152 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain() 162 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain() 170 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain() 178 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain() 186 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain() 194 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain() 388 (*bo_ptr)->placements[i].lpfn = (offset + size) >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at() 935 unsigned fpfn, lpfn; in amdgpu_bo_pin_restricted() local [all …]
|
D | amdgpu_gtt_mgr.c | 134 if (place->lpfn) { in amdgpu_gtt_mgr_new() 138 0, place->fpfn, place->lpfn, in amdgpu_gtt_mgr_new() 222 return !place->lpfn || amdgpu_gtt_mgr_has_gart_addr(res); in amdgpu_gtt_mgr_intersects() 240 return !place->lpfn || amdgpu_gtt_mgr_has_gart_addr(res); in amdgpu_gtt_mgr_compatible()
|
D | amdgpu_vce.c | 606 unsigned i, fpfn, lpfn; in amdgpu_vce_validate_bo() local 616 lpfn = 0x100000000ULL >> PAGE_SHIFT; in amdgpu_vce_validate_bo() 619 lpfn = (0x100000000ULL - PAGE_ALIGN(offset)) >> PAGE_SHIFT; in amdgpu_vce_validate_bo() 631 bo->placements[i].lpfn = bo->placements[i].lpfn ? in amdgpu_vce_validate_bo() 632 min(bo->placements[i].lpfn, lpfn) : lpfn; in amdgpu_vce_validate_bo()
|
D | amdgpu_ttm.c | 98 .lpfn = 0, in amdgpu_evict_flags() 151 abo->placements[0].lpfn = 0; in amdgpu_evict_flags() 534 hop->lpfn = 0; in amdgpu_bo_move() 942 placements.lpfn = adev->gmc.gart_size >> PAGE_SHIFT; in amdgpu_ttm_alloc_gart()
|
D | amdgpu_uvd.c | 552 abo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_object.c | 123 rbo->placements[i].lpfn = in radeon_ttm_placement_from_domain() 126 rbo->placements[i].lpfn = 0; in radeon_ttm_placement_from_domain() 314 bo->placements[i].lpfn = in radeon_bo_pin_restricted() 317 bo->placements[i].lpfn = max_offset >> PAGE_SHIFT; in radeon_bo_pin_restricted() 729 unsigned long offset, size, lpfn; in radeon_bo_fault_reserve_notify() local 751 lpfn = rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_bo_fault_reserve_notify() 755 (!rbo->placements[i].lpfn || rbo->placements[i].lpfn > lpfn)) in radeon_bo_fault_reserve_notify() 756 rbo->placements[i].lpfn = lpfn; in radeon_bo_fault_reserve_notify()
|
D | radeon_ttm.c | 87 .lpfn = 0, in radeon_evict_flags() 244 hop->lpfn = 0; in radeon_bo_move()
|
D | radeon_uvd.c | 311 rbo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment() 325 rbo->placements[1].lpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/ |
D | nouveau_mem.c | 200 (place->lpfn && place->lpfn <= res->start)) in nouveau_mem_intersects() 214 (place->lpfn && (res->start + num_pages) > place->lpfn)) in nouveau_mem_compatible()
|
D | nouveau_bo.c | 375 unsigned i, fpfn, lpfn; in set_placement_range() local 388 lpfn = ~0; in set_placement_range() 391 lpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range() 395 nvbo->placements[i].lpfn = lpfn; in set_placement_range() 399 nvbo->busy_placements[i].lpfn = lpfn; in set_placement_range() 1047 hop->lpfn = 0; in nouveau_bo_move() 1244 nvbo->placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify() 1249 nvbo->busy_placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
|
/linux-6.1.9/include/drm/ttm/ |
D | ttm_placement.h | 79 unsigned lpfn; member
|
/linux-6.1.9/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 56 .lpfn = 0, in qxl_evict_flags()
|
D | qxl_object.c | 92 qbo->placements[i].lpfn = 0; in qxl_ttm_placement_from_domain()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_ttm.c | 60 .lpfn = 0, 144 place->lpfn = place->fpfn + (size >> PAGE_SHIFT); in i915_ttm_place_from_region() 150 place->lpfn = mr->io_size >> PAGE_SHIFT; in i915_ttm_place_from_region()
|
/linux-6.1.9/mm/ |
D | swap_state.c | 701 unsigned long lpfn, in swap_ra_clamp_pfn() argument 706 *start = max3(lpfn, PFN_DOWN(vma->vm_start), in swap_ra_clamp_pfn()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_gem_vram_helper.c | 166 gbo->placements[i].lpfn = 0; in drm_gem_vram_placement()
|