| /linux/arch/x86/xen/ |
| H A D | enlighten_pvh.c | 80 ram_pages += PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr); in pvh_reserve_extra_memory() 98 PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr)); in pvh_reserve_extra_memory() 100 if (pages != (PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr))) { in pvh_reserve_extra_memory() 120 xen_add_extra_mem(PFN_UP(e->addr), pages); in pvh_reserve_extra_memory()
|
| /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 * \
|
| /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 | 195 u32 num_pages = PFN_UP(size); in nouveau_mem_intersects() 210 u32 num_pages = PFN_UP(size); in nouveau_mem_compatible()
|
| H A D | nouveau_boa0b5.c | 61 LINE_COUNT, PFN_UP(new_reg->size)); in nve0_bo_move_copy()
|
| /linux/drivers/gpu/drm/ttm/ |
| H A D | ttm_range_manager.c | 88 PFN_UP(node->base.size), in ttm_range_man_alloc() 124 u32 num_pages = PFN_UP(size); in ttm_range_man_intersects() 140 u32 num_pages = PFN_UP(size); in ttm_range_man_compatible()
|
| H A D | ttm_bo_util.c | 191 ttm_move_memcpy(clear, PFN_UP(dst_mem->size), dst_iter, src_iter); in ttm_bo_move_memcpy() 398 if (page + 1 > PFN_UP(bo->resource->size)) in ttm_bo_kmap_try_from_panic() 434 if (num_pages > PFN_UP(res->size)) in ttm_bo_kmap() 436 if ((start_page + num_pages) > PFN_UP(res->size)) in ttm_bo_kmap()
|
| /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 | 219 pgoff_t num_pages = PFN_UP(vbo->tbo.resource->size); in vmw_bo_dirty_add() 423 if (unlikely(page_offset >= PFN_UP(bo->resource->size))) { in vmw_bo_vm_mkwrite() 465 if (page_offset >= PFN_UP(bo->resource->size) || in vmw_bo_vm_fault()
|
| /linux/arch/powerpc/mm/ |
| H A D | pgtable_32.c | 130 unsigned long numpages = PFN_UP((unsigned long)_einittext) - in __mark_initmem_nx() 169 numpages = PFN_UP((unsigned long)__end_rodata) - in __mark_rodata_ro()
|
| /linux/tools/include/linux/ |
| H A D | pfn.h | 7 #define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) macro
|
| /linux/arch/xtensa/kernel/ |
| H A D | hibernate.c | 10 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
|
| /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 | __GFP_NOWARN)) { in i915_rsgt_from_buddy_resource()
|
| /linux/arch/mips/power/ |
| H A D | cpu.c | 40 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
|
| /linux/arch/loongarch/power/ |
| H A D | hibernate.c | 45 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); in pfn_is_nosave()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_gtt_mgr.c | 121 uint32_t num_pages = PFN_UP(tbo->base.size); in amdgpu_gtt_mgr_new() 149 node->mm_nodes[0].size = PFN_UP(node->base.size); in amdgpu_gtt_mgr_new()
|
| /linux/drivers/staging/media/ipu7/ |
| H A D | ipu7-dma.c | 302 size_t count = PFN_UP(size); in ipu7_dma_mmap() 395 npages += PFN_UP(sg_dma_len(sg)); in ipu7_dma_map_sg() 443 iova_addr += PFN_UP(sg_dma_len(sg)); in ipu7_dma_map_sg()
|
| /linux/drivers/media/pci/intel/ipu6/ |
| H A D | ipu6-dma.c | 302 size_t count = PFN_UP(size); in ipu6_dma_mmap() 395 npages += PFN_UP(sg_dma_len(sg)); in ipu6_dma_map_sg() 425 iova_addr += PFN_UP(sg_dma_len(sg)); in ipu6_dma_map_sg()
|
| /linux/arch/um/kernel/ |
| H A D | physmem.c | 96 min_low_pfn = PFN_UP(__pa(reserve_end)); in setup_physmem()
|
| /linux/arch/x86/platform/efi/ |
| H A D | efi_32.c | 45 end_pfn = PFN_UP(end); in efi_map_region()
|
| /linux/arch/nios2/kernel/ |
| H A D | setup.c | 141 *min = PFN_UP(memblock_start_of_DRAM()); in find_limits()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_ttm_sys_mgr.c | 50 node->base.mm_nodes[0].size = PFN_UP(node->base.base.size); in xe_ttm_sys_mgr_new()
|