Home
last modified time | relevance | path

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

/linux-6.1.9/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 + 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 …]
Dintel_region_ttm.c212 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/
Dvmwgfx_ttm_buffer.c33 .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 …]
Dvmwgfx_bo.c310 pl.fpfn = 0; in vmw_bo_pin_reserved()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.c392 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 …]
Damdgpu_object.c135 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 …]
Damdgpu_vce.c606 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()
Damdgpu_gtt_mgr.c138 0, place->fpfn, place->lpfn, in amdgpu_gtt_mgr_new()
Damdgpu_ttm.c97 .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()
Damdgpu_uvd.c551 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
/linux-6.1.9/mm/
Dswap_state.c717 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/
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.1.9/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.c86 .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()
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.1.9/include/drm/ttm/
Dttm_placement.h78 unsigned fpfn; member
/linux-6.1.9/drivers/gpu/drm/nouveau/
Dnouveau_bo.c375 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()
Dnouveau_mem.c199 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/
Di915_gem_ttm.c59 .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/
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.1.9/drivers/gpu/drm/
Ddrm_gem_vram_helper.c165 gbo->placements[i].fpfn = 0; in drm_gem_vram_placement()