/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_ttm_buddy_manager.c | 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() 101 err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT, in i915_ttm_buddy_man_alloc() 142 if (place->lpfn - place->fpfn == n_pages) in i915_ttm_buddy_man_alloc() 143 bman_res->base.start = place->fpfn; in i915_ttm_buddy_man_alloc() 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() [all …]
|
D | intel_region_ttm.c | 212 place.fpfn = offset >> PAGE_SHIFT; in intel_region_ttm_resource_alloc() 213 place.lpfn = place.fpfn + (size >> PAGE_SHIFT); in intel_region_ttm_resource_alloc() 218 place.fpfn = 0; in intel_region_ttm_resource_alloc()
|
/linux-6.1.9/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ttm_buffer.c | 33 .fpfn = 0, 40 .fpfn = 0, 47 .fpfn = 0, 54 .fpfn = 0, 69 .fpfn = 0, 74 .fpfn = 0, 83 .fpfn = 0, 88 .fpfn = 0, 96 .fpfn = 0, 132 .fpfn = 0, [all …]
|
D | vmwgfx_bo.c | 310 pl.fpfn = 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 402 fpfn = (u64)place->fpfn << PAGE_SHIFT; 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() 478 r = drm_buddy_alloc_blocks(mm, fpfn, in amdgpu_vram_mgr_new() 743 unsigned long fpfn = in amdgpu_vram_mgr_intersects() local 745 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_intersects() 748 if (place->fpfn < lpfn && in amdgpu_vram_mgr_intersects() 749 (!place->lpfn || place->lpfn > fpfn)) in amdgpu_vram_mgr_intersects() 776 unsigned long fpfn = in amdgpu_vram_mgr_compatible() local [all …]
|
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() 387 (*bo_ptr)->placements[i].fpfn = offset >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at() 935 unsigned fpfn, lpfn; in amdgpu_bo_pin_restricted() local 937 fpfn = min_offset >> PAGE_SHIFT; in amdgpu_bo_pin_restricted() [all …]
|
D | amdgpu_vce.c | 606 unsigned i, fpfn, lpfn; in amdgpu_vce_validate_bo() local 615 fpfn = PAGE_ALIGN(offset) >> PAGE_SHIFT; in amdgpu_vce_validate_bo() 618 fpfn = 0; in amdgpu_vce_validate_bo() 630 bo->placements[i].fpfn = max(bo->placements[i].fpfn, fpfn); in amdgpu_vce_validate_bo()
|
D | amdgpu_gtt_mgr.c | 138 0, place->fpfn, place->lpfn, in amdgpu_gtt_mgr_new()
|
D | amdgpu_ttm.c | 97 .fpfn = 0, in amdgpu_evict_flags() 150 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags() 533 hop->fpfn = 0; in amdgpu_bo_move() 941 placements.fpfn = 0; in amdgpu_ttm_alloc_gart()
|
D | amdgpu_uvd.c | 551 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
|
/linux-6.1.9/mm/ |
D | swap_state.c | 717 unsigned long faddr, pfn, fpfn; in swap_ra_info() local 735 fpfn = PFN_DOWN(faddr); in swap_ra_info() 740 ra_info->win = win = __swapin_nr_pages(pfn, fpfn, hits, in swap_ra_info() 751 if (fpfn == pfn + 1) in swap_ra_info() 752 swap_ra_clamp_pfn(vma, faddr, fpfn, fpfn + win, &start, &end); in swap_ra_info() 753 else if (pfn == fpfn + 1) in swap_ra_info() 754 swap_ra_clamp_pfn(vma, faddr, fpfn - win + 1, fpfn + 1, in swap_ra_info() 758 swap_ra_clamp_pfn(vma, faddr, fpfn - left, fpfn + win - left, in swap_ra_info() 762 ra_info->offset = fpfn - start; in swap_ra_info()
|
/linux-6.1.9/drivers/gpu/drm/ttm/ |
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.1.9/drivers/gpu/drm/radeon/ |
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()
|
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()
|
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.1.9/include/drm/ttm/ |
D | ttm_placement.h | 78 unsigned fpfn; member
|
/linux-6.1.9/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 375 unsigned i, fpfn, lpfn; in set_placement_range() local 387 fpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range() 390 fpfn = 0; in set_placement_range() 394 nvbo->placements[i].fpfn = fpfn; in set_placement_range() 398 nvbo->busy_placements[i].fpfn = fpfn; in set_placement_range() 1046 hop->fpfn = 0; in nouveau_bo_move() 1243 nvbo->placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify() 1248 nvbo->busy_placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify()
|
D | nouveau_mem.c | 199 if (place->fpfn >= (res->start + num_pages) || in nouveau_mem_intersects() 213 if (res->start < place->fpfn || in nouveau_mem_compatible()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_ttm.c | 59 .fpfn = 0, 143 place->fpfn = offset >> PAGE_SHIFT; in i915_ttm_place_from_region() 144 place->lpfn = place->fpfn + (size >> PAGE_SHIFT); in i915_ttm_place_from_region() 149 place->fpfn = 0; in i915_ttm_place_from_region()
|
/linux-6.1.9/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 55 .fpfn = 0, in qxl_evict_flags()
|
D | qxl_object.c | 91 qbo->placements[i].fpfn = 0; in qxl_ttm_placement_from_domain()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_gem_vram_helper.c | 165 gbo->placements[i].fpfn = 0; in drm_gem_vram_placement()
|