/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A D | i915_ttm_buddy_manager.c | 186 if (!place->fpfn && !place->lpfn) in i915_ttm_buddy_man_intersects() 196 if (!place->fpfn && in i915_ttm_buddy_man_intersects() 202 unsigned long fpfn = in i915_ttm_buddy_man_intersects() local 204 unsigned long lpfn = fpfn + in i915_ttm_buddy_man_intersects() 207 if (place->fpfn < lpfn && place->lpfn > fpfn) in i915_ttm_buddy_man_intersects() 224 if (!place->fpfn && !place->lpfn) in i915_ttm_buddy_man_compatible() 229 if (!place->fpfn && in i915_ttm_buddy_man_compatible() 235 unsigned long fpfn = in i915_ttm_buddy_man_compatible() local 237 unsigned long lpfn = fpfn + in i915_ttm_buddy_man_compatible() 240 if (fpfn < place->fpfn || lpfn > place->lpfn) in i915_ttm_buddy_man_compatible() [all …]
|
A D | intel_region_ttm.c | 211 if (WARN_ON(overflows_type(offset >> PAGE_SHIFT, place.fpfn))) { in intel_region_ttm_resource_alloc() 215 place.fpfn = offset >> PAGE_SHIFT; in intel_region_ttm_resource_alloc() 216 if (WARN_ON(overflows_type(place.fpfn + (size >> PAGE_SHIFT), place.lpfn))) { in intel_region_ttm_resource_alloc() 220 place.lpfn = place.fpfn + (size >> PAGE_SHIFT); in intel_region_ttm_resource_alloc() 225 place.fpfn = 0; in intel_region_ttm_resource_alloc()
|
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_ttm_buffer.c | 32 .fpfn = 0, 39 .fpfn = 0, 46 .fpfn = 0, 53 .fpfn = 0, 68 .fpfn = 0, 73 .fpfn = 0, 82 .fpfn = 0, 87 .fpfn = 0, 95 .fpfn = 0, 131 .fpfn = 0, [all …]
|
A D | vmwgfx_bo.c | 310 pl.fpfn = 0; in vmw_bo_pin_reserved()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_vram_mgr.c | 392 u64 size, remaining_size, lpfn, fpfn; in amdgpu_vram_mgr_new() local 402 fpfn = (u64)place->fpfn << PAGE_SHIFT; in amdgpu_vram_mgr_new() 438 if (fpfn || lpfn != mgr->mm.size) in amdgpu_vram_mgr_new() 479 r = drm_buddy_alloc_blocks(mm, fpfn, in amdgpu_vram_mgr_new() 744 unsigned long fpfn = in amdgpu_vram_mgr_intersects() local 746 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_intersects() 749 if (place->fpfn < lpfn && in amdgpu_vram_mgr_intersects() 750 (!place->lpfn || place->lpfn > fpfn)) in amdgpu_vram_mgr_intersects() 777 unsigned long fpfn = in amdgpu_vram_mgr_compatible() local 779 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_compatible() [all …]
|
A D | amdgpu_object.c | 135 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 151 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 161 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 169 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 177 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 185 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 193 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 938 unsigned fpfn, lpfn; in amdgpu_bo_pin_restricted() local 940 fpfn = min_offset >> PAGE_SHIFT; in amdgpu_bo_pin_restricted() 943 if (fpfn > bo->placements[i].fpfn) in amdgpu_bo_pin_restricted() [all …]
|
A D | amdgpu_vce.c | 603 unsigned i, fpfn, lpfn; in amdgpu_vce_validate_bo() local 612 fpfn = PAGE_ALIGN(offset) >> PAGE_SHIFT; in amdgpu_vce_validate_bo() 615 fpfn = 0; in amdgpu_vce_validate_bo() 627 bo->placements[i].fpfn = max(bo->placements[i].fpfn, fpfn); in amdgpu_vce_validate_bo()
|
A D | amdgpu_gtt_mgr.c | 138 0, place->fpfn, place->lpfn, in amdgpu_gtt_mgr_new()
|
A D | amdgpu_ttm.c | 98 .fpfn = 0, in amdgpu_evict_flags() 151 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags() 525 hop->fpfn = 0; in amdgpu_bo_move() 939 placements.fpfn = 0; in amdgpu_ttm_alloc_gart()
|
A D | amdgpu_uvd.c | 546 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
|
/linux-6.3-rc2/mm/ |
A D | swap_state.c | 703 unsigned long faddr, pfn, fpfn, lpfn, rpfn; in swap_ra_info() local 719 fpfn = PFN_DOWN(faddr); in swap_ra_info() 734 if (fpfn == pfn + 1) { in swap_ra_info() 735 lpfn = fpfn; in swap_ra_info() 736 rpfn = fpfn + win; in swap_ra_info() 737 } else if (pfn == fpfn + 1) { in swap_ra_info() 738 lpfn = fpfn - win + 1; in swap_ra_info() 739 rpfn = fpfn + 1; in swap_ra_info() 743 lpfn = fpfn - left; in swap_ra_info() 744 rpfn = fpfn + win - left; in swap_ra_info() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ttm/ |
A D | ttm_range_manager.c | 88 place->fpfn, lpfn, mode); in ttm_range_man_alloc() 125 if (place->fpfn >= (node->start + num_pages) || in ttm_range_man_intersects() 140 if (node->start < place->fpfn || in ttm_range_man_compatible()
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A D | radeon_object.c | 88 rbo->placements[c].fpfn = in radeon_ttm_placement_from_domain() 94 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 100 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 106 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 111 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 122 !rbo->placements[i].fpfn) in radeon_ttm_placement_from_domain()
|
A D | radeon_ttm.c | 86 .fpfn = 0, in radeon_evict_flags() 108 unsigned fpfn = rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_evict_flags() local 121 if (rbo->placements[i].fpfn < fpfn) in radeon_evict_flags() 122 rbo->placements[i].fpfn = fpfn; in radeon_evict_flags() 243 hop->fpfn = 0; in radeon_bo_move()
|
A D | radeon_uvd.c | 310 rbo->placements[i].fpfn = 0 >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment() 324 rbo->placements[1].fpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
|
/linux-6.3-rc2/include/drm/ttm/ |
A D | ttm_placement.h | 78 unsigned fpfn; member
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/ |
A D | nouveau_bo.c | 376 unsigned i, fpfn, lpfn; in set_placement_range() local 388 fpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range() 391 fpfn = 0; in set_placement_range() 395 nvbo->placements[i].fpfn = fpfn; in set_placement_range() 399 nvbo->busy_placements[i].fpfn = fpfn; in set_placement_range() 1054 hop->fpfn = 0; in nouveau_bo_move() 1251 nvbo->placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify() 1256 nvbo->busy_placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify()
|
A D | nouveau_mem.c | 200 if (place->fpfn >= (res->start + num_pages) || in nouveau_mem_intersects() 214 if (res->start < place->fpfn || in nouveau_mem_compatible()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_ttm.c | 59 .fpfn = 0, 143 WARN_ON(overflows_type(offset >> PAGE_SHIFT, place->fpfn)); in i915_ttm_place_from_region() 144 place->fpfn = offset >> PAGE_SHIFT; in i915_ttm_place_from_region() 145 WARN_ON(overflows_type(place->fpfn + (size >> PAGE_SHIFT), place->lpfn)); in i915_ttm_place_from_region() 146 place->lpfn = place->fpfn + (size >> PAGE_SHIFT); in i915_ttm_place_from_region() 151 place->fpfn = 0; in i915_ttm_place_from_region()
|
/linux-6.3-rc2/drivers/gpu/drm/qxl/ |
A D | qxl_ttm.c | 55 .fpfn = 0, in qxl_evict_flags()
|
A D | qxl_object.c | 91 qbo->placements[i].fpfn = 0; in qxl_ttm_placement_from_domain()
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_gem_vram_helper.c | 166 gbo->placements[i].fpfn = 0; in drm_gem_vram_placement()
|