Home
last modified time | relevance | path

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

12345

/linux-6.12.1/arch/x86/xen/
Denlighten_pvh.c78 ram_pages += PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr); in pvh_reserve_extra_memory()
96 PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr)); in pvh_reserve_extra_memory()
98 if (pages != (PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr))) { in pvh_reserve_extra_memory()
118 xen_add_extra_mem(PFN_UP(e->addr), pages); in pvh_reserve_extra_memory()
/linux-6.12.1/drivers/gpu/drm/vmwgfx/device_include/
Dvm_basic_types.h104 (PFN_UP(MKS_GUEST_STAT_INSTANCE_MAX_STATS * \
107 (PFN_UP(MKS_GUEST_STAT_INSTANCE_MAX_STATS * \
111 (PFN_UP(MKS_GUEST_STAT_INSTANCE_MAX_STATS * \
/linux-6.12.1/drivers/gpu/drm/nouveau/
Dnouveau_bo85b5.c47 u32 page_count = PFN_UP(new_reg->size); in nva3_bo_move_copy()
50 page_count = PFN_UP(new_reg->size); in nva3_bo_move_copy()
Dnouveau_bo90b5.c40 u32 page_count = PFN_UP(new_reg->size); in nvc0_bo_move_copy()
43 page_count = PFN_UP(new_reg->size); in nvc0_bo_move_copy()
Dnouveau_bo0039.c55 u32 page_count = PFN_UP(new_reg->size); in nv04_bo_move_m2mf()
65 page_count = PFN_UP(new_reg->size); in nv04_bo_move_m2mf()
Dnouveau_bo9039.c45 u32 page_count = PFN_UP(new_reg->size); in nvc0_bo_move_m2mf()
48 page_count = PFN_UP(new_reg->size); in nvc0_bo_move_m2mf()
Dnouveau_mem.c195 u32 num_pages = PFN_UP(size); in nouveau_mem_intersects()
210 u32 num_pages = PFN_UP(size); in nouveau_mem_compatible()
Dnouveau_boa0b5.c61 LINE_COUNT, PFN_UP(new_reg->size)); in nve0_bo_move_copy()
/linux-6.12.1/arch/xtensa/mm/
Dinit.c55 min_low_pfn = PFN_UP(memblock_start_of_DRAM()); in bootmem_init()
56 min_low_pfn = max(min_low_pfn, PFN_UP(PHYS_OFFSET)); in bootmem_init()
92 unsigned long start = PFN_UP(range_start); in free_highpages()
/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_gmrid_manager.c76 gman->used_gmr_pages += PFN_UP((*res)->size); in vmw_gmrid_man_get_node()
119 gman->used_gmr_pages -= PFN_UP((*res)->size); in vmw_gmrid_man_get_node()
134 gman->used_gmr_pages -= PFN_UP(res->size); in vmw_gmrid_man_put_node()
Dvmwgfx_page_dirty.c233 pgoff_t num_pages = PFN_UP(vbo->tbo.resource->size); in vmw_bo_dirty_add()
397 if (unlikely(page_offset >= PFN_UP(bo->resource->size))) { in vmw_bo_vm_mkwrite()
439 if (page_offset >= PFN_UP(bo->resource->size) || in vmw_bo_vm_fault()
Dvmwgfx_bo.c217 bo->resource->start < PFN_UP(bo->resource->size) && in vmw_bo_pin_in_start_of_vram()
230 buf->places[0].lpfn = PFN_UP(bo->resource->size); in vmw_bo_pin_in_start_of_vram()
231 buf->busy_places[0].lpfn = PFN_UP(bo->resource->size); in vmw_bo_pin_in_start_of_vram()
369 ret = ttm_bo_kmap(bo, 0, PFN_UP(size), &vbo->map); in vmw_bo_map_and_cache_size()
/linux-6.12.1/drivers/gpu/drm/ttm/
Dttm_range_manager.c86 PFN_UP(node->base.size), in ttm_range_man_alloc()
122 u32 num_pages = PFN_UP(size); in ttm_range_man_intersects()
138 u32 num_pages = PFN_UP(size); in ttm_range_man_compatible()
/linux-6.12.1/arch/mips/kernel/
Dsetup.c177 return PFN_UP(end); in init_initrd()
289 ARCH_PFN_OFFSET = PFN_UP(ramstart); in bootmem_init()
297 if (PFN_UP(ramstart) > ARCH_PFN_OFFSET) { in bootmem_init()
299 (unsigned long)((PFN_UP(ramstart) - ARCH_PFN_OFFSET) * sizeof(struct page)), in bootmem_init()
300 (unsigned long)(PFN_UP(ramstart) - ARCH_PFN_OFFSET)); in bootmem_init()
/linux-6.12.1/arch/powerpc/mm/
Dpgtable_32.c135 unsigned long numpages = PFN_UP((unsigned long)_einittext) - in __mark_initmem_nx()
174 numpages = PFN_UP((unsigned long)__end_rodata) - in __mark_rodata_ro()
/linux-6.12.1/tools/include/linux/
Dpfn.h7 #define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) macro
/linux-6.12.1/arch/xtensa/kernel/
Dhibernate.c10 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
/linux-6.12.1/include/linux/
Dpfn.h19 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) macro
/linux-6.12.1/arch/mips/power/
Dcpu.c40 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_scatterlist.c188 if (WARN_ON(overflows_type(PFN_UP(res->size), unsigned int))) { in i915_rsgt_from_buddy_resource()
193 if (sg_alloc_table(st, PFN_UP(res->size), GFP_KERNEL | __GFP_NOWARN)) { in i915_rsgt_from_buddy_resource()
/linux-6.12.1/arch/loongarch/power/
Dhibernate.c42 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gtt_mgr.c119 uint32_t num_pages = PFN_UP(tbo->base.size); in amdgpu_gtt_mgr_new()
147 node->mm_nodes[0].size = PFN_UP(node->base.size); in amdgpu_gtt_mgr_new()
/linux-6.12.1/arch/nios2/include/asm/
Dpage.h46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
/linux-6.12.1/arch/csky/kernel/
Dsetup.c29 min_low_pfn = PFN_UP(memblock_start_of_DRAM()); in csky_memblock_init()
/linux-6.12.1/arch/nios2/kernel/
Dsetup.c141 *min = PFN_UP(memblock_start_of_DRAM()); in find_limits()

12345