/openbmc/linux/arch/x86/xen/ |
H A D | enlighten_pvh.c | 100 ram_pages += PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr); in xen_reserve_extra_memory() 118 PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr)); in xen_reserve_extra_memory() 120 if (pages != (PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr))) { in xen_reserve_extra_memory() 140 xen_add_extra_mem(PFN_UP(e->addr), pages); in xen_reserve_extra_memory()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/device_include/ |
H A D | vm_basic_types.h | 104 (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 * \
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo85b5.c | 47 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()
|
H A D | nouveau_bo90b5.c | 40 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()
|
H A D | nouveau_bo9039.c | 45 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()
|
H A D | nouveau_bo0039.c | 55 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()
|
H A D | nouveau_mem.c | 197 u32 num_pages = PFN_UP(size); in nouveau_mem_intersects() 212 u32 num_pages = PFN_UP(size); in nouveau_mem_compatible()
|
/openbmc/linux/arch/xtensa/mm/ |
H A D | init.c | 55 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()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_gmrid_manager.c | 76 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()
|
H A D | vmwgfx_page_dirty.c | 233 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()
|
H A D | vmwgfx_bo.c | 193 bo->resource->start < PFN_UP(bo->resource->size) && in vmw_bo_pin_in_start_of_vram() 206 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() 340 ret = ttm_bo_kmap(bo, 0, PFN_UP(bo->base.size), &vbo->map); in vmw_bo_map_and_cache()
|
/openbmc/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_range_manager.c | 86 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()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | setup.c | 181 return PFN_UP(end); in init_initrd() 293 ARCH_PFN_OFFSET = PFN_UP(ramstart); in bootmem_init() 301 if (PFN_UP(ramstart) > ARCH_PFN_OFFSET) { in bootmem_init() 303 (unsigned long)((PFN_UP(ramstart) - ARCH_PFN_OFFSET) * sizeof(struct page)), in bootmem_init() 304 (unsigned long)(PFN_UP(ramstart) - ARCH_PFN_OFFSET)); in bootmem_init()
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | pgtable_32.c | 135 unsigned long numpages = PFN_UP((unsigned long)_einittext) - in mark_initmem_nx() 165 numpages = PFN_UP((unsigned long)__end_rodata) - in mark_rodata_ro()
|
/openbmc/linux/tools/include/linux/ |
H A D | pfn.h | 7 #define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) macro
|
/openbmc/linux/arch/xtensa/kernel/ |
H A D | hibernate.c | 10 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
|
/openbmc/linux/include/linux/ |
H A D | pfn.h | 19 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) macro
|
/openbmc/linux/arch/mips/power/ |
H A D | cpu.c | 39 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
|
/openbmc/linux/arch/loongarch/power/ |
H A D | hibernate.c | 42 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_scatterlist.c | 188 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)) { in i915_rsgt_from_buddy_resource()
|
H A D | i915_ttm_buddy_manager.c | 75 if (place->fpfn + PFN_UP(bman_res->base.size) != place->lpfn && in i915_ttm_buddy_man_alloc() 119 bman_res->used_visible_size = PFN_UP(bman_res->base.size); in i915_ttm_buddy_man_alloc() 224 return bman_res->used_visible_size == PFN_UP(res->size); in i915_ttm_buddy_man_compatible()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gtt_mgr.c | 119 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()
|
/openbmc/linux/arch/nios2/include/asm/ |
H A D | page.h | 46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
|
/openbmc/linux/arch/csky/kernel/ |
H A D | setup.c | 41 min_low_pfn = PFN_UP(memblock_start_of_DRAM()); in csky_memblock_init()
|
/openbmc/linux/arch/nios2/kernel/ |
H A D | setup.c | 146 *min = PFN_UP(memblock_start_of_DRAM()); in find_limits()
|