Home
last modified time | relevance | path

Searched refs:fpfn (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.12.1/drivers/gpu/drm/i915/
Di915_ttm_buddy_manager.c65 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 …]
Dintel_region_ttm.c212 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/
Dxe_ttm_vram_mgr.c63 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 …]
Dxe_bo.c41 .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/
Damdgpu_vram_mgr.c458 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 …]
Damdgpu_object.c120 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()
Damdgpu_vce.c606 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()
Damdgpu_gtt_mgr.c138 0, place->fpfn, place->lpfn, in amdgpu_gtt_mgr_new()
Damdgpu_gmc.h192 uint32_t fpfn; member
Damdgpu_ttm.c96 .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/
Dttm_kunit_helpers.c10 .fpfn = 0,
17 .fpfn = 0,
24 .fpfn = 0,
76 hop->fpfn = 0; in mock_move()
Dttm_mock_manager.c31 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/
Dttm_range_manager.c88 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/
Dvmwgfx_bo.c317 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()
Dvmwgfx_ttm_buffer.c33 .fpfn = 0,
40 .fpfn = 0,
/linux-6.12.1/drivers/gpu/drm/radeon/
Dradeon_object.c87 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()
Dradeon_ttm.c86 .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()
Dradeon_uvd.c310 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/
Dttm_placement.h84 unsigned fpfn; member
/linux-6.12.1/drivers/gpu/drm/nouveau/
Dnouveau_mem.c198 if (place->fpfn >= (res->start + num_pages) || in nouveau_mem_intersects()
212 if (res->start < place->fpfn || in nouveau_mem_compatible()
Dnouveau_bo.c406 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/
Di915_gem_ttm.c59 .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/
Dqxl_ttm.c55 .fpfn = 0, in qxl_evict_flags()
Dqxl_object.c86 qbo->placements[i].fpfn = 0; in qxl_ttm_placement_from_domain()
/linux-6.12.1/drivers/gpu/drm/loongson/
Dlsdc_ttm.c81 lbo->placements[i].fpfn = 0; in lsdc_bo_set_placement()

12