/linux-4.4.14/include/linux/ |
H A D | pfn.h | 9 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) macro
|
H A D | memblock.h | 359 return PFN_UP(reg->base); memblock_region_memory_base_pfn() 386 return PFN_UP(reg->base + reg->size); memblock_region_reserved_end_pfn()
|
H A D | efi.h | 1079 *npages = PFN_UP(*addr + (*npages<<EFI_PAGE_SHIFT)) - PFN_DOWN(*addr); memrange_efi_to_native()
|
/linux-4.4.14/arch/mips/power/ |
H A D | cpu.c | 40 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); pfn_is_nosave()
|
/linux-4.4.14/arch/m32r/mm/ |
H A D | discontig.c | 47 mp->start_pfn = PFN_UP(CONFIG_MEMORY_START); mem_prof_init() 50 mp->free_pfn = PFN_UP(__pa(_end)); mem_prof_init() 54 start_pfn = free_pfn = PFN_UP(CONFIG_IRAM_START); mem_prof_init() 68 mp->free_pfn = PFN_UP(CONFIG_IRAM_START); mem_prof_init()
|
/linux-4.4.14/arch/score/kernel/ |
H A D | setup.c | 49 start_pfn = PFN_UP(__pa(&_end)); bootmem_init() 51 min_low_pfn = PFN_UP(MEMORY_START); bootmem_init() 52 max_low_pfn = PFN_UP(MEMORY_START + MEMORY_SIZE); bootmem_init()
|
/linux-4.4.14/arch/mips/kernel/ |
H A D | setup.c | 246 return PFN_UP(end); init_initrd() 317 reserved_end = (unsigned long) PFN_UP(__pa_symbol(&_end)); bootmem_init() 335 start = PFN_UP(boot_mem_map.map[i].addr); bootmem_init() 347 if (initrd_end && end <= (unsigned long)PFN_UP(__pa(initrd_end))) bootmem_init() 384 mapstart = max(mapstart, (unsigned long)PFN_UP(__pa(initrd_end))); bootmem_init() 397 start = PFN_UP(boot_mem_map.map[i].addr); bootmem_init() 426 start = PFN_UP(boot_mem_map.map[i].addr); bootmem_init() 643 PFN_UP(__pa_symbol(&_edata)) << PAGE_SHIFT, arch_mem_init() 645 arch_mem_addpart(PFN_UP(__pa_symbol(&__init_begin)) << PAGE_SHIFT, arch_mem_init()
|
/linux-4.4.14/mm/ |
H A D | bootmem.c | 163 cursor = PFN_UP(physaddr); free_bootmem_late() 407 start = PFN_UP(physaddr); free_bootmem_node() 428 start = PFN_UP(physaddr); free_bootmem() 451 end = PFN_UP(physaddr + size); reserve_bootmem_node() 472 end = PFN_UP(addr + size); reserve_bootmem() 555 eidx = sidx + PFN_UP(size); alloc_bootmem_bdata() 578 bdata->hint_idx = PFN_UP(end_off); alloc_bootmem_bdata() 584 PFN_UP(end_off), BOOTMEM_EXCLUSIVE)) alloc_bootmem_bdata()
|
H A D | nobootmem.c | 85 cursor = PFN_UP(addr); free_bootmem_late() 113 unsigned long start_pfn = PFN_UP(start); __free_memory_core()
|
H A D | memblock.c | 1089 if (PFN_UP(r->base) >= PFN_DOWN(r->base + r->size)) __next_mem_pfn_range() 1100 *out_start_pfn = PFN_UP(r->base); __next_mem_pfn_range() 1422 cursor = PFN_UP(base); __memblock_free_late()
|
H A D | percpu.c | 349 return max_t(int, PFN_DOWN(end) - PFN_UP(off), 0); pcpu_count_occupied_pages() 525 page_end = PFN_UP(head + off + size); pcpu_fit_in_area() 528 pcpu_next_unpop(chunk, &rs, &re, PFN_UP(off + this_size)); pcpu_fit_in_area() 1001 page_end = PFN_UP(off + size); pcpu_alloc()
|
H A D | vmalloc.c | 1238 * Map PFN_UP(@size) pages at @addr. The VM area @addr and @size 1261 * Unmap PFN_UP(@size) pages at @addr. The VM area @addr and @size
|
H A D | memory_hotplug.c | 2046 ret = walk_memory_range(PFN_DOWN(start), PFN_UP(start + size - 1), NULL, remove_memory()
|
H A D | page_alloc.c | 957 unsigned long end_pfn = PFN_UP(end); reserve_bootmem_region()
|
/linux-4.4.14/arch/mn10300/kernel/ |
H A D | setup.c | 126 kstart_pfn = PFN_UP(__pa(&_text)); setup_arch() 127 free_pfn = PFN_UP(__pa(&_end)); setup_arch()
|
/linux-4.4.14/arch/h8300/kernel/ |
H A D | setup.c | 92 ram_start_pfn = PFN_UP(memory_start); 94 free_ram_start_pfn = PFN_UP(__pa(_end));
|
/linux-4.4.14/arch/nios2/include/asm/ |
H A D | page.h | 46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
|
/linux-4.4.14/arch/alpha/mm/ |
H A D | numa.c | 66 unsigned long node_datasz = PFN_UP(sizeof(pg_data_t)); setup_memory_node() 152 end_kernel_pfn = PFN_UP(virt_to_phys(kernel_end)); 245 printk(" reserving pages %ld:%ld\n", bootmap_start, bootmap_start+PFN_UP(bootmap_size));
|
/linux-4.4.14/arch/s390/kernel/ |
H A D | early.c | 116 end_pfn = PFN_UP(__pa(&_end)); create_kernel_nss() 127 einitrd_pfn = PFN_UP(__pa(INITRD_START + INITRD_SIZE)); create_kernel_nss() 204 end_pfn = PFN_UP(__pa(&_end)); init_kernel_storage_key()
|
H A D | setup.c | 649 unsigned long start_pfn = PFN_UP(__pa(&_end)); reserve_kernel()
|
/linux-4.4.14/arch/metag/mm/ |
H A D | init.c | 184 if (PFN_UP(reg->base + size) > highstart_pfn) for_each_memblock() 239 start_pfn = PFN_UP(__pa(heap_start)); init_and_reserve_mem()
|
/linux-4.4.14/arch/openrisc/kernel/ |
H A D | setup.c | 77 ram_start_pfn = PFN_UP(memory_start); 79 free_ram_start_pfn = PFN_UP(__pa(_end));
|
/linux-4.4.14/arch/m32r/kernel/ |
H A D | setup.c | 140 start_pfn = PFN_UP( __pa(_end) ); setup_memory() 160 curr_pfn = PFN_UP(__pa(memory_start)); setup_memory()
|
/linux-4.4.14/arch/nios2/kernel/ |
H A D | setup.c | 158 min_low_pfn = PFN_UP(memory_start); setup_arch()
|
/linux-4.4.14/arch/microblaze/mm/ |
H A D | init.c | 185 PFN_UP(TOPHYS((u32)klimit)), min_low_pfn, max_low_pfn); 186 memblock_reserve(PFN_UP(TOPHYS((u32)klimit)) << PAGE_SHIFT, map_size);
|
/linux-4.4.14/arch/tile/kernel/ |
H A D | setup.c | 489 NR_CPUS * (PFN_UP(per_cpu_size) >> PAGE_SHIFT); setup_memory() 544 min_low_pfn = PFN_UP((unsigned long)_end - PAGE_OFFSET); setup_memory() 794 node_free_pfn[i] += PFN_UP(memmap_size); for_each_online_node() 797 node_free_pfn[i] += PFN_UP(node_percpu[i]); for_each_online_node() 800 lowmem_end - PFN_UP(node_percpu[i]); for_each_online_node() 830 PFN_UP(node_percpu[i])); for_each_online_node() 1730 PFN_UP(m->addr + m->size - 1), 1);
|
/linux-4.4.14/arch/x86/xen/ |
H A D | setup.c | 218 s_pfn = PFN_UP(entry->addr); xen_find_pfn_range() 309 if (pfn >= PFN_UP(__pa(high_memory - 1))) xen_update_mem_tables() 478 unsigned long end_pfn = PFN_UP(end); xen_foreach_remap_area() 481 end_pfn = PFN_UP(entry->addr); xen_foreach_remap_area() 827 pfn_s = PFN_UP(addr); xen_memory_setup()
|
/linux-4.4.14/arch/metag/kernel/ |
H A D | setup.c | 360 min_low_pfn = PFN_UP(__pa(text_start)); setup_arch() 371 start_pfn = PFN_UP(__pa(heap_start)); setup_arch()
|
/linux-4.4.14/arch/mips/mm/ |
H A D | init.c | 386 addr = PFN_UP(boot_mem_map.map[i].addr); page_is_ram() 483 for (pfn = PFN_UP(begin); pfn < PFN_DOWN(end); pfn++) { free_init_pages()
|
/linux-4.4.14/arch/avr32/kernel/ |
H A D | setup.c | 447 unsigned long node_pages = PFN_UP(resource_size(mem)); find_bootmap_pfn() 492 first_pfn = PFN_UP(res->start); setup_bootmem()
|
/linux-4.4.14/drivers/acpi/ |
H A D | acpi_memhotplug.c | 175 return PFN_UP(info->start_addr + info->length-1); acpi_meminfo_end_pfn()
|
/linux-4.4.14/arch/um/kernel/ |
H A D | physmem.c | 83 unsigned long pfn = PFN_UP(__pa(reserve_end)); setup_physmem()
|
/linux-4.4.14/arch/x86/kernel/ |
H A D | e820.c | 691 if (pfn < PFN_UP(ei->addr)) e820_mark_nosave_regions() 692 register_nosave_region(pfn, PFN_UP(ei->addr)); e820_mark_nosave_regions() 697 register_nosave_region(PFN_UP(ei->addr), pfn); e820_mark_nosave_regions() 1148 start_pfn = min_t(unsigned long, PFN_UP(start), MAX_DMA_PFN); memblock_find_dma_reserve()
|
H A D | tboot.c | 168 map_size = PFN_UP(tboot->tboot_size); tboot_create_trampoline()
|
/linux-4.4.14/arch/mips/include/asm/ |
H A D | page.h | 83 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
|
/linux-4.4.14/arch/mips/loongson64/loongson-3/ |
H A D | numa.c | 194 freepfn = PFN_UP(__pa_symbol(&_end)); /* kernel end address */ node_mem_init()
|
/linux-4.4.14/arch/cris/kernel/ |
H A D | setup.c | 110 start_pfn = PFN_UP(memory_start); /* usually c0000000 + kernel + romfs */ setup_arch()
|
/linux-4.4.14/arch/hexagon/mm/ |
H A D | init.c | 34 #define bootmem_startpg (PFN_UP(((unsigned long) _end) - PAGE_OFFSET + PHYS_OFFSET))
|
/linux-4.4.14/arch/arm64/mm/ |
H A D | init.c | 191 min = PFN_UP(memblock_start_of_DRAM()); bootmem_init()
|
/linux-4.4.14/arch/c6x/kernel/ |
H A D | setup.c | 417 min_low_pfn = PFN_UP(memory_start);
|
/linux-4.4.14/arch/sh/mm/ |
H A D | init.c | 298 start_pfn = PFN_UP(__pa(_end)); early_reserve_mem()
|
/linux-4.4.14/arch/mips/sgi-ip27/ |
H A D | ip27-memory.c | 409 slot_freepfn += PFN_UP(sizeof(struct pglist_data) + node_mem_init()
|
/linux-4.4.14/arch/x86/mm/ |
H A D | numa_emulation.c | 33 unsigned long start_pfn = PFN_UP(start); mem_hole_size()
|
H A D | init_32.c | 438 unsigned long pfn = clamp_t(unsigned long, PFN_UP(start), add_highpages_with_active_regions()
|
H A D | init_64.c | 677 unsigned long end_pfn = PFN_UP(start + size); update_end_of_memory_vars()
|
/linux-4.4.14/arch/powerpc/platforms/512x/ |
H A D | mpc512x_shared.c | 202 start = PFN_UP(addr); mpc512x_release_bootmem()
|
/linux-4.4.14/drivers/scsi/ |
H A D | xen-scsifront.c | 76 #define vscsiif_grants_sg(_sg) (PFN_UP((_sg) * \ 387 data_grants += PFN_UP(sg->offset + sg->length); map_data_for_request()
|
/linux-4.4.14/arch/alpha/kernel/ |
H A D | setup.c | 366 end_kernel_pfn = PFN_UP(virt_to_phys(kernel_end)); 444 printk("reserving pages %ld:%ld\n", bootmap_start, bootmap_start+PFN_UP(bootmap_size));
|
/linux-4.4.14/arch/blackfin/kernel/ |
H A D | setup.c | 722 start = PFN_UP(bfin_memmap.map[i].addr); find_min_max_pfn() 779 curr_pfn = PFN_UP(bfin_memmap.map[i].addr); setup_bootmem_allocator()
|
/linux-4.4.14/arch/arm/mm/ |
H A D | init.c | 94 *min = PFN_UP(memblock_start_of_DRAM()); find_limits()
|
/linux-4.4.14/drivers/net/hyperv/ |
H A D | netvsc_drv.c | 370 pages += PFN_UP(offset + size); count_skb_frag_slots()
|
/linux-4.4.14/arch/x86/platform/efi/ |
H A D | efi.c | 587 end_pfn = PFN_UP(end); old_map_region()
|
/linux-4.4.14/fs/ |
H A D | aio.c | 452 nr_pages = PFN_UP(size); aio_setup_ring()
|
/linux-4.4.14/drivers/s390/net/ |
H A D | qeth_core_main.c | 3826 e = PFN_UP((unsigned long)data + length - 1) - qeth_get_elements_for_frags() 3838 int elements_needed = PFN_UP((unsigned long)skb->data + dlen - 1) - qeth_get_elements_no()
|
H A D | qeth_l3_main.c | 2822 int elements = PFN_UP(tcpd + tcpd_len - 1) - PFN_DOWN(tcpd); qeth_l3_tso_elements()
|
/linux-4.4.14/kernel/ |
H A D | module.c | 1912 begin_pfn = PFN_UP((unsigned long)base + text_size); set_section_ro_nx() 1913 end_pfn = PFN_UP((unsigned long)base + total_size); set_section_ro_nx()
|