Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/i915/
Di915_ttm_buddy_manager.c62 if (place->fpfn || lpfn != man->size) in i915_ttm_buddy_man_alloc()
75 if (place->fpfn + PFN_UP(bman_res->base.size) != 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()
179 if (!place->fpfn && !place->lpfn) in i915_ttm_buddy_man_intersects()
189 if (!place->fpfn && in i915_ttm_buddy_man_intersects()
195 unsigned long fpfn = in i915_ttm_buddy_man_intersects() local
197 unsigned long lpfn = fpfn + in i915_ttm_buddy_man_intersects()
200 if (place->fpfn < lpfn && place->lpfn > fpfn) in i915_ttm_buddy_man_intersects()
217 if (!place->fpfn && !place->lpfn) in i915_ttm_buddy_man_compatible()
222 if (!place->fpfn && in i915_ttm_buddy_man_compatible()
[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.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.c431 u64 size, remaining_size, lpfn, fpfn; in amdgpu_vram_mgr_new() local
441 fpfn = (u64)place->fpfn << PAGE_SHIFT; in amdgpu_vram_mgr_new()
477 if (fpfn || lpfn != mgr->mm.size) in amdgpu_vram_mgr_new()
501 if (fpfn + size != (u64)place->lpfn << PAGE_SHIFT) { in amdgpu_vram_mgr_new()
518 r = drm_buddy_alloc_blocks(mm, fpfn, in amdgpu_vram_mgr_new()
783 unsigned long fpfn = in amdgpu_vram_mgr_intersects() local
785 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_intersects()
788 if (place->fpfn < lpfn && in amdgpu_vram_mgr_intersects()
789 (!place->lpfn || place->lpfn > fpfn)) in amdgpu_vram_mgr_intersects()
816 unsigned long fpfn = in amdgpu_vram_mgr_compatible() local
[all …]
Damdgpu_object.c138 places[c].fpfn = adev->gmc.mem_partitions[mem_id].range.fpfn; in amdgpu_bo_placement_from_domain()
145 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain()
162 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain()
170 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain()
180 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain()
188 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain()
196 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain()
204 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain()
212 places[c].fpfn = 0; in amdgpu_bo_placement_from_domain()
406 (*bo_ptr)->placements[i].fpfn = offset >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at()
[all …]
Damdgpu_vce.c605 unsigned int i, fpfn, lpfn; in amdgpu_vce_validate_bo() local
614 fpfn = PAGE_ALIGN(offset) >> PAGE_SHIFT; in amdgpu_vce_validate_bo()
617 fpfn = 0; in amdgpu_vce_validate_bo()
629 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.h188 uint32_t fpfn; member
Damdgpu_ttm.c96 .fpfn = 0, in amdgpu_evict_flags()
150 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags()
523 hop->fpfn = 0; in amdgpu_bo_move()
973 placements.fpfn = 0; in amdgpu_ttm_alloc_gart()
Dgmc_v9_0.c1956 mem_ranges[i].range.fpfn = start_addr; in gmc_v9_0_init_sw_mem_ranges()
1967 ((u64)mem_ranges[adev->gmc.num_mem_partitions - 1].range.fpfn in gmc_v9_0_init_sw_mem_ranges()
Damdgpu_uvd.c547 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
/linux-6.6.21/mm/
Dswap_state.c721 unsigned long faddr, pfn, fpfn, lpfn, rpfn; in swap_ra_info() local
733 fpfn = PFN_DOWN(faddr); in swap_ra_info()
738 ra_info->win = win = __swapin_nr_pages(pfn, fpfn, hits, in swap_ra_info()
745 if (fpfn == pfn + 1) { in swap_ra_info()
746 lpfn = fpfn; in swap_ra_info()
747 rpfn = fpfn + win; in swap_ra_info()
748 } else if (pfn == fpfn + 1) { in swap_ra_info()
749 lpfn = fpfn - win + 1; in swap_ra_info()
750 rpfn = fpfn + 1; in swap_ra_info()
754 lpfn = fpfn - left; in swap_ra_info()
[all …]
/linux-6.6.21/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.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_bo.c292 pl.fpfn = 0; in vmw_bo_pin_reserved()
756 pl[n].fpfn = 0; in set_placement_list()
763 pl[n].fpfn = 0; in set_placement_list()
770 pl[n].fpfn = 0; in set_placement_list()
777 pl[n].fpfn = 0; in set_placement_list()
784 pl[n].fpfn = 0; in set_placement_list()
793 pl[n].fpfn = 0; in set_placement_list()
Dvmwgfx_ttm_buffer.c33 .fpfn = 0,
40 .fpfn = 0,
47 .fpfn = 0,
62 .fpfn = 0,
67 .fpfn = 0,
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_object.c88 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()
Dradeon_ttm.c85 .fpfn = 0, in radeon_evict_flags()
107 unsigned fpfn = rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_evict_flags() local
120 if (rbo->placements[i].fpfn < fpfn) in radeon_evict_flags()
121 rbo->placements[i].fpfn = fpfn; in radeon_evict_flags()
239 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.6.21/include/drm/ttm/
Dttm_placement.h78 unsigned fpfn; member
/linux-6.6.21/drivers/gpu/drm/nouveau/
Dnouveau_bo.c426 unsigned i, fpfn, lpfn; in set_placement_range() local
438 fpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range()
441 fpfn = 0; in set_placement_range()
445 nvbo->placements[i].fpfn = fpfn; in set_placement_range()
449 nvbo->busy_placements[i].fpfn = fpfn; in set_placement_range()
1107 hop->fpfn = 0; in nouveau_bo_move()
1304 nvbo->placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify()
1309 nvbo->busy_placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify()
Dnouveau_mem.c200 if (place->fpfn >= (res->start + num_pages) || in nouveau_mem_intersects()
214 if (res->start < place->fpfn || in nouveau_mem_compatible()
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.c59 .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.6.21/drivers/gpu/drm/qxl/
Dqxl_ttm.c55 .fpfn = 0, in qxl_evict_flags()
Dqxl_object.c91 qbo->placements[i].fpfn = 0; in qxl_ttm_placement_from_domain()
/linux-6.6.21/drivers/gpu/drm/loongson/
Dlsdc_ttm.c83 lbo->placements[i].fpfn = 0; in lsdc_bo_set_placement()
/linux-6.6.21/drivers/gpu/drm/
Ddrm_gem_vram_helper.c166 gbo->placements[i].fpfn = 0; in drm_gem_vram_placement()