Home
last modified time | relevance | path

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

12345

/openbmc/linux/arch/x86/xen/
H A Denlighten_pvh.c100 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 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 * \
/openbmc/linux/drivers/gpu/drm/nouveau/
H A 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()
H A 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()
H A 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()
H A 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()
H A Dnouveau_mem.c197 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 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()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A 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()
H A 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()
H A Dvmwgfx_bo.c193 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 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()
/openbmc/linux/arch/mips/kernel/
H A Dsetup.c181 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 Dpgtable_32.c135 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 Dpfn.h7 #define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) macro
/openbmc/linux/arch/xtensa/kernel/
H A Dhibernate.c10 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
/openbmc/linux/include/linux/
H A Dpfn.h19 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) macro
/openbmc/linux/arch/mips/power/
H A Dcpu.c39 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
/openbmc/linux/arch/loongarch/power/
H A Dhibernate.c42 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
/openbmc/linux/drivers/gpu/drm/i915/
H A 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)) { in i915_rsgt_from_buddy_resource()
H A Di915_ttm_buddy_manager.c75 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 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()
/openbmc/linux/arch/nios2/include/asm/
H A Dpage.h46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
/openbmc/linux/arch/csky/kernel/
H A Dsetup.c41 min_low_pfn = PFN_UP(memblock_start_of_DRAM()); in csky_memblock_init()
/openbmc/linux/arch/nios2/kernel/
H A Dsetup.c146 *min = PFN_UP(memblock_start_of_DRAM()); in find_limits()

12345