/linux-6.12.1/drivers/gpu/drm/i915/ |
D | i915_ttm_buddy_manager.c | 65 if (place->fpfn || lpfn != man->size) in i915_ttm_buddy_man_alloc() 92 err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT, in i915_ttm_buddy_man_alloc() 162 if (!place->fpfn && !place->lpfn) in i915_ttm_buddy_man_intersects() 172 if (!place->fpfn && in i915_ttm_buddy_man_intersects() 178 unsigned long fpfn = in i915_ttm_buddy_man_intersects() local 180 unsigned long lpfn = fpfn + in i915_ttm_buddy_man_intersects() 183 if (place->fpfn < lpfn && place->lpfn > fpfn) in i915_ttm_buddy_man_intersects() 200 if (!place->fpfn && !place->lpfn) in i915_ttm_buddy_man_compatible() 205 if (!place->fpfn && in i915_ttm_buddy_man_compatible() 211 unsigned long fpfn = in i915_ttm_buddy_man_compatible() local [all …]
|
D | intel_region_ttm.c | 212 if (WARN_ON(overflows_type(offset >> PAGE_SHIFT, place.fpfn))) { in intel_region_ttm_resource_alloc() 216 place.fpfn = offset >> PAGE_SHIFT; in intel_region_ttm_resource_alloc() 217 if (WARN_ON(overflows_type(place.fpfn + (size >> PAGE_SHIFT), place.lpfn))) { in intel_region_ttm_resource_alloc() 221 place.lpfn = place.fpfn + (size >> PAGE_SHIFT); in intel_region_ttm_resource_alloc() 226 place.fpfn = 0; in intel_region_ttm_resource_alloc()
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_ttm_vram_mgr.c | 63 if (tbo->base.size >> PAGE_SHIFT > (lpfn - place->fpfn)) 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() 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() 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() 263 unsigned long fpfn = in xe_ttm_vram_mgr_intersects() local 265 unsigned long lpfn = fpfn + in xe_ttm_vram_mgr_intersects() 268 if (place->fpfn < lpfn && place->lpfn > fpfn) in xe_ttm_vram_mgr_intersects() [all …]
|
D | xe_bo.c | 41 .fpfn = 0, 54 .fpfn = 0, 60 .fpfn = 0, 188 place.fpfn = 0; in add_vram() 742 hop->fpfn = 0; in xe_bo_move() 799 bo->placements->fpfn); in xe_bo_move() 1403 place->fpfn = start >> PAGE_SHIFT; in __xe_bo_fixed_placement() 1763 place->fpfn = (xe_bo_addr(bo, 0, PAGE_SIZE) - in xe_bo_pin() 1765 place->lpfn = place->fpfn + (bo->size >> PAGE_SHIFT); in xe_bo_pin()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vram_mgr.c | 458 u64 size, remaining_size, lpfn, fpfn; in amdgpu_vram_mgr_new() local 469 fpfn = (u64)place->fpfn << PAGE_SHIFT; in amdgpu_vram_mgr_new() 511 if (fpfn || lpfn != mgr->mm.size) in amdgpu_vram_mgr_new() 546 r = drm_buddy_alloc_blocks(mm, fpfn, in amdgpu_vram_mgr_new() 805 unsigned long fpfn = in amdgpu_vram_mgr_intersects() local 807 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_intersects() 810 if (place->fpfn < lpfn && in amdgpu_vram_mgr_intersects() 811 (!place->lpfn || place->lpfn > fpfn)) in amdgpu_vram_mgr_intersects() 838 unsigned long fpfn = in amdgpu_vram_mgr_compatible() local 840 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_compatible() [all …]
|
D | amdgpu_object.c | 120 places[c].fpfn = adev->gmc.mem_partitions[mem_id].range.fpfn; in amdgpu_bo_placement_from_domain() 127 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 146 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 154 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 171 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 179 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 187 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 195 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 203 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain() 394 (*bo_ptr)->placements[i].fpfn = offset >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at()
|
D | amdgpu_vce.c | 606 unsigned int 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_gmc.h | 192 uint32_t fpfn; member
|
D | amdgpu_ttm.c | 96 .fpfn = 0, in amdgpu_evict_flags() 146 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags() 560 hop->fpfn = 0; in amdgpu_bo_move() 1002 placements.fpfn = 0; in amdgpu_ttm_alloc_gart()
|
/linux-6.12.1/drivers/gpu/drm/ttm/tests/ |
D | ttm_kunit_helpers.c | 10 .fpfn = 0, 17 .fpfn = 0, 24 .fpfn = 0, 76 hop->fpfn = 0; in mock_move()
|
D | ttm_mock_manager.c | 31 u64 lpfn, fpfn, alloc_size; in ttm_mock_manager_alloc() local 39 fpfn = 0; in ttm_mock_manager_alloc() 53 err = drm_buddy_alloc_blocks(mm, fpfn, lpfn, alloc_size, in ttm_mock_manager_alloc()
|
/linux-6.12.1/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.12.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_bo.c | 317 pl.fpfn = 0; in vmw_bo_pin_reserved() 765 pl[n].fpfn = 0; in set_placement_list() 773 pl[n].fpfn = 0; in set_placement_list() 781 pl[n].fpfn = 0; in set_placement_list() 789 pl[n].fpfn = 0; in set_placement_list() 797 pl[n].fpfn = 0; in set_placement_list() 806 pl[n].fpfn = 0; in set_placement_list()
|
D | vmwgfx_ttm_buffer.c | 33 .fpfn = 0, 40 .fpfn = 0,
|
/linux-6.12.1/drivers/gpu/drm/radeon/ |
D | radeon_object.c | 87 rbo->placements[c].fpfn = in radeon_ttm_placement_from_domain() 93 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 99 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 105 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 110 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 120 !rbo->placements[i].fpfn) in radeon_ttm_placement_from_domain()
|
D | radeon_ttm.c | 86 .fpfn = 0, in radeon_evict_flags() 106 unsigned fpfn = rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_evict_flags() local 118 if (rbo->placements[i].fpfn < fpfn) in radeon_evict_flags() 119 rbo->placements[i].fpfn = fpfn; in radeon_evict_flags() 232 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.12.1/include/drm/ttm/ |
D | ttm_placement.h | 84 unsigned fpfn; member
|
/linux-6.12.1/drivers/gpu/drm/nouveau/ |
D | nouveau_mem.c | 198 if (place->fpfn >= (res->start + num_pages) || in nouveau_mem_intersects() 212 if (res->start < place->fpfn || in nouveau_mem_compatible()
|
D | nouveau_bo.c | 406 unsigned i, fpfn, lpfn; in set_placement_range() local 418 fpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range() 421 fpfn = 0; in set_placement_range() 425 nvbo->placements[i].fpfn = fpfn; in set_placement_range() 1118 hop->fpfn = 0; in nouveau_bo_move() 1318 nvbo->placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify()
|
/linux-6.12.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_ttm.c | 59 .fpfn = 0, 141 WARN_ON(overflows_type(offset >> PAGE_SHIFT, place->fpfn)); in i915_ttm_place_from_region() 142 place->fpfn = offset >> PAGE_SHIFT; in i915_ttm_place_from_region() 143 WARN_ON(overflows_type(place->fpfn + (size >> PAGE_SHIFT), place->lpfn)); 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.12.1/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 55 .fpfn = 0, in qxl_evict_flags()
|
D | qxl_object.c | 86 qbo->placements[i].fpfn = 0; in qxl_ttm_placement_from_domain()
|
/linux-6.12.1/drivers/gpu/drm/loongson/ |
D | lsdc_ttm.c | 81 lbo->placements[i].fpfn = 0; in lsdc_bo_set_placement()
|