Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/gpu/drm/i915/
H A 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()
83 if (pages > lpfn) in i915_ttm_buddy_man_alloc()
84 lpfn = pages; in i915_ttm_buddy_man_alloc()
182 GEM_BUG_ON(!place->lpfn); in i915_ttm_buddy_man_intersects()
197 unsigned long lpfn = fpfn + in i915_ttm_buddy_man_intersects() local
200 if (place->fpfn < lpfn && place->lpfn > fpfn) in i915_ttm_buddy_man_intersects()
220 GEM_BUG_ON(!place->lpfn); in i915_ttm_buddy_man_compatible()
[all …]
H A Dintel_region_ttm.c217 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()
227 if (WARN_ON(overflows_type(mem->io_size >> PAGE_SHIFT, place.lpfn))) { in intel_region_ttm_resource_alloc()
231 place.lpfn = mem->io_size >> PAGE_SHIFT; in intel_region_ttm_resource_alloc()
/openbmc/linux/drivers/gpu/drm/ttm/
H A 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()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vram_mgr.c431 u64 size, remaining_size, lpfn, fpfn; in amdgpu_vram_mgr_new() local
437 lpfn = (u64)place->lpfn << PAGE_SHIFT; in amdgpu_vram_mgr_new()
438 if (!lpfn) in amdgpu_vram_mgr_new()
439 lpfn = man->size; in amdgpu_vram_mgr_new()
477 if (fpfn || lpfn != mgr->mm.size) in amdgpu_vram_mgr_new()
519 lpfn, in amdgpu_vram_mgr_new()
785 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_intersects() local
788 if (place->fpfn < lpfn && in amdgpu_vram_mgr_intersects()
789 (!place->lpfn || place->lpfn > fpfn)) in amdgpu_vram_mgr_intersects()
818 unsigned long lpfn = fpfn + in amdgpu_vram_mgr_compatible() local
[all …]
H A Damdgpu_object.c143 places[c].lpfn = adev->gmc.mem_partitions[mem_id].range.lpfn + 1; in amdgpu_bo_placement_from_domain()
152 places[c].lpfn = min_not_zero(places[c].lpfn, visible_pfn); in amdgpu_bo_placement_from_domain()
163 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
171 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
181 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
189 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
197 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
205 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
213 places[c].lpfn = 0; in amdgpu_bo_placement_from_domain()
970 (lpfn && lpfn < bo->placements[i].lpfn)) in amdgpu_bo_pin_restricted()
[all …]
H A 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()
H A Damdgpu_vce.c605 unsigned int i, fpfn, lpfn; in amdgpu_vce_validate_bo() local
615 lpfn = 0x100000000ULL >> PAGE_SHIFT; in amdgpu_vce_validate_bo()
618 lpfn = (0x100000000ULL - PAGE_ALIGN(offset)) >> PAGE_SHIFT; in amdgpu_vce_validate_bo()
630 bo->placements[i].lpfn = bo->placements[i].lpfn ? in amdgpu_vce_validate_bo()
631 min(bo->placements[i].lpfn, lpfn) : lpfn; in amdgpu_vce_validate_bo()
H A Damdgpu_gmc.h189 uint32_t lpfn; member
H A Damdgpu_ttm.c97 .lpfn = 0, in amdgpu_evict_flags()
151 abo->placements[0].lpfn = 0; in amdgpu_evict_flags()
543 hop->lpfn = 0; in amdgpu_bo_move()
990 placements.lpfn = adev->gmc.gart_size >> PAGE_SHIFT; in amdgpu_ttm_alloc_gart()
H A Damdgpu_vm.c1511 uint64_t tmp, lpfn; in amdgpu_vm_verify_parameters() local
1528 lpfn = (saddr + size - 1) >> AMDGPU_GPU_PAGE_SHIFT; in amdgpu_vm_verify_parameters()
1529 if (lpfn >= adev->vm_manager.max_pfn) in amdgpu_vm_verify_parameters()
H A Dgmc_v9_0.c1958 mem_ranges[i].range.lpfn = start_addr + size - 1; in gmc_v9_0_init_sw_mem_ranges()
1963 mem_ranges[adev->gmc.num_mem_partitions - 1].range.lpfn = in gmc_v9_0_init_sw_mem_ranges()
/openbmc/linux/drivers/gpu/drm/radeon/
H A 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()
H A Dradeon_ttm.c86 .lpfn = 0, in radeon_evict_flags()
240 hop->lpfn = 0; in radeon_bo_move()
H A 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()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.c206 buf->places[0].lpfn = PFN_UP(bo->resource->size); in vmw_bo_pin_in_start_of_vram()
207 buf->busy_places[0].lpfn = PFN_UP(bo->resource->size); in vmw_bo_pin_in_start_of_vram()
294 pl.lpfn = 0; in vmw_bo_pin_reserved()
768 pl[n].lpfn = 0; in set_placement_list()
775 pl[n].lpfn = 0; in set_placement_list()
782 pl[n].lpfn = 0; in set_placement_list()
789 pl[n].lpfn = 0; in set_placement_list()
796 pl[n].lpfn = 0; in set_placement_list()
805 pl[n].lpfn = 0; in set_placement_list()
H A Dvmwgfx_ttm_buffer.c34 .lpfn = 0,
41 .lpfn = 0,
48 .lpfn = 0,
63 .lpfn = 0,
68 .lpfn = 0,
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_mem.c201 (place->lpfn && place->lpfn <= res->start)) in nouveau_mem_intersects()
215 (place->lpfn && (res->start + num_pages) > place->lpfn)) in nouveau_mem_compatible()
H A Dnouveau_bo.c420 unsigned i, fpfn, lpfn; in set_placement_range() local
433 lpfn = ~0; in set_placement_range()
436 lpfn = (vram_size / 2) >> PAGE_SHIFT; in set_placement_range()
440 nvbo->placements[i].lpfn = lpfn; in set_placement_range()
444 nvbo->busy_placements[i].lpfn = lpfn; in set_placement_range()
1102 hop->lpfn = 0; in nouveau_bo_move()
1301 nvbo->placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
1306 nvbo->busy_placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
/openbmc/linux/include/drm/ttm/
H A Dttm_placement.h79 unsigned lpfn; member
/openbmc/linux/mm/
H A Dswap_state.c721 unsigned long faddr, pfn, fpfn, lpfn, rpfn; in swap_ra_info() local
746 lpfn = fpfn; in swap_ra_info()
749 lpfn = fpfn - win + 1; in swap_ra_info()
754 lpfn = fpfn - left; in swap_ra_info()
757 start = max3(lpfn, PFN_DOWN(vma->vm_start), in swap_ra_info()
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_ttm.c60 .lpfn = 0,
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()
152 WARN_ON(overflows_type(mr->io_size >> PAGE_SHIFT, place->lpfn)); in i915_ttm_place_from_region()
153 place->lpfn = mr->io_size >> PAGE_SHIFT; in i915_ttm_place_from_region()
/openbmc/linux/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c56 .lpfn = 0, in qxl_evict_flags()
H A Dqxl_object.c92 qbo->placements[i].lpfn = 0; in qxl_ttm_placement_from_domain()
/openbmc/linux/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c84 lbo->placements[i].lpfn = 0; in lsdc_bo_set_placement()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_gem_vram_helper.c167 gbo->placements[i].lpfn = 0; in drm_gem_vram_placement()

12