Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/gpu/drm/i915/
Di915_ttm_buddy_manager.c42 unsigned long n_pages, lpfn; in i915_ttm_buddy_man_alloc() local
47 lpfn = place->lpfn; in i915_ttm_buddy_man_alloc()
48 if (!lpfn) in i915_ttm_buddy_man_alloc()
49 lpfn = man->size; in i915_ttm_buddy_man_alloc()
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()
83 if (pages > lpfn) in i915_ttm_buddy_man_alloc()
84 lpfn = pages; in i915_ttm_buddy_man_alloc()
87 if (size > lpfn << PAGE_SHIFT) { in i915_ttm_buddy_man_alloc()
95 if (lpfn <= bman->visible_size && n_pages > bman->visible_avail) { in i915_ttm_buddy_man_alloc()
[all …]
Dintel_region_ttm.c213 place.lpfn = place.fpfn + (size >> PAGE_SHIFT); in intel_region_ttm_resource_alloc()
219 place.lpfn = mem->io_size >> PAGE_SHIFT; in intel_region_ttm_resource_alloc()
/linux-6.1.9/drivers/gpu/drm/ttm/
Dttm_range_manager.c67 unsigned long lpfn; in ttm_range_man_alloc() local
70 lpfn = place->lpfn; in ttm_range_man_alloc()
71 if (!lpfn) in ttm_range_man_alloc()
72 lpfn = man->size; in ttm_range_man_alloc()
88 place->fpfn, lpfn, mode); in ttm_range_man_alloc()
126 (place->lpfn && place->lpfn <= node->start)) in ttm_range_man_intersects()
141 (place->lpfn && (node->start + num_pages) > place->lpfn)) in ttm_range_man_compatible()
/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c34 .lpfn = 0,
41 .lpfn = 0,
48 .lpfn = 0,
55 .lpfn = 0,
70 .lpfn = 0,
75 .lpfn = 0,
84 .lpfn = 0,
89 .lpfn = 0,
97 .lpfn = 0,
133 .lpfn = 0,
[all …]
Dvmwgfx_bo.c197 place.lpfn = bo->resource->num_pages; in vmw_bo_pin_in_start_of_vram()
311 pl.lpfn = 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
398 lpfn = (u64)place->lpfn << PAGE_SHIFT; in amdgpu_vram_mgr_new()
399 if (!lpfn) in amdgpu_vram_mgr_new()
400 lpfn = man->size; 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()
479 lpfn, in amdgpu_vram_mgr_new()
745 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_intersects() local
748 if (place->fpfn < lpfn && in amdgpu_vram_mgr_intersects()
749 (!place->lpfn || place->lpfn > fpfn)) in amdgpu_vram_mgr_intersects()
[all …]
Damdgpu_object.c136 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
141 places[c].lpfn = visible_pfn; in amdgpu_bo_placement_from_domain()
152 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
162 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
170 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
178 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
186 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
194 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
388 (*bo_ptr)->placements[i].lpfn = (offset + size) >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at()
935 unsigned fpfn, lpfn; in amdgpu_bo_pin_restricted() local
[all …]
Damdgpu_gtt_mgr.c134 if (place->lpfn) { in amdgpu_gtt_mgr_new()
138 0, place->fpfn, place->lpfn, in amdgpu_gtt_mgr_new()
222 return !place->lpfn || amdgpu_gtt_mgr_has_gart_addr(res); in amdgpu_gtt_mgr_intersects()
240 return !place->lpfn || amdgpu_gtt_mgr_has_gart_addr(res); in amdgpu_gtt_mgr_compatible()
Damdgpu_vce.c606 unsigned i, fpfn, lpfn; in amdgpu_vce_validate_bo() local
616 lpfn = 0x100000000ULL >> PAGE_SHIFT; in amdgpu_vce_validate_bo()
619 lpfn = (0x100000000ULL - PAGE_ALIGN(offset)) >> PAGE_SHIFT; in amdgpu_vce_validate_bo()
631 bo->placements[i].lpfn = bo->placements[i].lpfn ? in amdgpu_vce_validate_bo()
632 min(bo->placements[i].lpfn, lpfn) : lpfn; in amdgpu_vce_validate_bo()
Damdgpu_ttm.c98 .lpfn = 0, in amdgpu_evict_flags()
151 abo->placements[0].lpfn = 0; in amdgpu_evict_flags()
534 hop->lpfn = 0; in amdgpu_bo_move()
942 placements.lpfn = adev->gmc.gart_size >> PAGE_SHIFT; in amdgpu_ttm_alloc_gart()
Damdgpu_uvd.c552 abo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_object.c123 rbo->placements[i].lpfn = in radeon_ttm_placement_from_domain()
126 rbo->placements[i].lpfn = 0; in radeon_ttm_placement_from_domain()
314 bo->placements[i].lpfn = in radeon_bo_pin_restricted()
317 bo->placements[i].lpfn = max_offset >> PAGE_SHIFT; in radeon_bo_pin_restricted()
729 unsigned long offset, size, lpfn; in radeon_bo_fault_reserve_notify() local
751 lpfn = rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_bo_fault_reserve_notify()
755 (!rbo->placements[i].lpfn || rbo->placements[i].lpfn > lpfn)) in radeon_bo_fault_reserve_notify()
756 rbo->placements[i].lpfn = lpfn; in radeon_bo_fault_reserve_notify()
Dradeon_ttm.c87 .lpfn = 0, in radeon_evict_flags()
244 hop->lpfn = 0; in radeon_bo_move()
Dradeon_uvd.c311 rbo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
325 rbo->placements[1].lpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
/linux-6.1.9/drivers/gpu/drm/nouveau/
Dnouveau_mem.c200 (place->lpfn && place->lpfn <= res->start)) in nouveau_mem_intersects()
214 (place->lpfn && (res->start + num_pages) > place->lpfn)) in nouveau_mem_compatible()
Dnouveau_bo.c375 unsigned i, fpfn, lpfn; in set_placement_range() local
388 lpfn = ~0; in set_placement_range()
391 lpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range()
395 nvbo->placements[i].lpfn = lpfn; in set_placement_range()
399 nvbo->busy_placements[i].lpfn = lpfn; in set_placement_range()
1047 hop->lpfn = 0; in nouveau_bo_move()
1244 nvbo->placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
1249 nvbo->busy_placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
/linux-6.1.9/include/drm/ttm/
Dttm_placement.h79 unsigned lpfn; member
/linux-6.1.9/drivers/gpu/drm/qxl/
Dqxl_ttm.c56 .lpfn = 0, in qxl_evict_flags()
Dqxl_object.c92 qbo->placements[i].lpfn = 0; in qxl_ttm_placement_from_domain()
/linux-6.1.9/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.c60 .lpfn = 0,
144 place->lpfn = place->fpfn + (size >> PAGE_SHIFT); in i915_ttm_place_from_region()
150 place->lpfn = mr->io_size >> PAGE_SHIFT; in i915_ttm_place_from_region()
/linux-6.1.9/mm/
Dswap_state.c701 unsigned long lpfn, in swap_ra_clamp_pfn() argument
706 *start = max3(lpfn, PFN_DOWN(vma->vm_start), in swap_ra_clamp_pfn()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_gem_vram_helper.c166 gbo->placements[i].lpfn = 0; in drm_gem_vram_placement()