/linux-4.1.27/include/linux/ |
H A D | pfn.h | 9 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) macro
|
H A D | memblock.h | 324 return PFN_UP(reg->base); memblock_region_memory_base_pfn() 351 return PFN_UP(reg->base + reg->size); memblock_region_reserved_end_pfn()
|
H A D | efi.h | 1042 *npages = PFN_UP(*addr + (*npages<<EFI_PAGE_SHIFT)) - PFN_DOWN(*addr); memrange_efi_to_native()
|
/linux-4.1.27/arch/mips/power/ |
H A D | cpu.c | 40 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); pfn_is_nosave()
|
/linux-4.1.27/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.1.27/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.1.27/arch/mips/kernel/ |
H A D | setup.c | 241 return PFN_UP(end); init_initrd() 312 reserved_end = (unsigned long) PFN_UP(__pa_symbol(&_end)); bootmem_init() 330 start = PFN_UP(boot_mem_map.map[i].addr); bootmem_init() 374 mapstart = max(mapstart, (unsigned long)PFN_UP(__pa(initrd_end))); bootmem_init() 387 start = PFN_UP(boot_mem_map.map[i].addr); bootmem_init() 416 start = PFN_UP(boot_mem_map.map[i].addr); bootmem_init() 629 PFN_UP(__pa_symbol(&_edata)) << PAGE_SHIFT, arch_mem_init() 631 arch_mem_addpart(PFN_UP(__pa_symbol(&__init_begin)) << PAGE_SHIFT, arch_mem_init()
|
/linux-4.1.27/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.1.27/mm/ |
H A D | bootmem.c | 163 cursor = PFN_UP(physaddr); free_bootmem_late() 400 start = PFN_UP(physaddr); free_bootmem_node() 421 start = PFN_UP(physaddr); free_bootmem() 444 end = PFN_UP(physaddr + size); reserve_bootmem_node() 465 end = PFN_UP(addr + size); reserve_bootmem() 548 eidx = sidx + PFN_UP(size); alloc_bootmem_bdata() 571 bdata->hint_idx = PFN_UP(end_off); alloc_bootmem_bdata() 577 PFN_UP(end_off), BOOTMEM_EXCLUSIVE)) alloc_bootmem_bdata()
|
H A D | nobootmem.c | 76 cursor = PFN_UP(addr); free_bootmem_late() 104 unsigned long start_pfn = PFN_UP(start); __free_memory_core()
|
H A D | memblock.c | 1002 if (PFN_UP(r->base) >= PFN_DOWN(r->base + r->size)) __next_mem_pfn_range() 1013 *out_start_pfn = PFN_UP(r->base); __next_mem_pfn_range() 1315 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 | 1236 * Map PFN_UP(@size) pages at @addr. The VM area @addr and @size 1259 * Unmap PFN_UP(@size) pages at @addr. The VM area @addr and @size
|
H A D | memory_hotplug.c | 2000 ret = walk_memory_range(PFN_DOWN(start), PFN_UP(start + size - 1), NULL, remove_memory()
|
/linux-4.1.27/arch/nios2/include/asm/ |
H A D | page.h | 46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
|
/linux-4.1.27/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.1.27/arch/s390/kernel/ |
H A D | early.c | 115 end_pfn = PFN_UP(__pa(&_end)); create_kernel_nss() 126 einitrd_pfn = PFN_UP(__pa(INITRD_START + INITRD_SIZE)); create_kernel_nss() 203 end_pfn = PFN_UP(__pa(&_end)); init_kernel_storage_key()
|
H A D | setup.c | 648 start_pfn = PFN_UP(__pa(&_end)); reserve_kernel()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/arch/nios2/kernel/ |
H A D | setup.c | 158 min_low_pfn = PFN_UP(memory_start); setup_arch()
|
/linux-4.1.27/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.1.27/arch/mips/mm/ |
H A D | init.c | 269 addr = PFN_UP(boot_mem_map.map[i].addr); page_is_ram() 398 for (pfn = PFN_UP(begin); pfn < PFN_DOWN(end); pfn++) { free_init_pages()
|
/linux-4.1.27/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.1.27/arch/x86/xen/ |
H A D | setup.c | 156 pfn_e = PFN_UP(xen_extra_mem[i].start + xen_extra_mem[i].size); xen_inv_extra_mem() 188 s_pfn = PFN_UP(entry->addr); xen_find_pfn_range() 279 if (pfn >= PFN_UP(__pa(high_memory - 1))) xen_update_mem_tables() 440 unsigned long end_pfn = PFN_UP(end); xen_set_identity_and_remap() 443 end_pfn = PFN_UP(entry->addr); xen_set_identity_and_remap()
|
/linux-4.1.27/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.1.27/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.1.27/arch/x86/kernel/ |
H A D | e820.c | 690 if (pfn < PFN_UP(ei->addr)) e820_mark_nosave_regions() 691 register_nosave_region(pfn, PFN_UP(ei->addr)); e820_mark_nosave_regions() 696 register_nosave_region(PFN_UP(ei->addr), pfn); e820_mark_nosave_regions() 1127 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.1.27/arch/um/kernel/ |
H A D | physmem.c | 84 unsigned long pfn = PFN_UP(__pa(reserve_end)); setup_physmem()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | page.h | 83 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
|
/linux-4.1.27/arch/mips/loongson/loongson-3/ |
H A D | numa.c | 194 freepfn = PFN_UP(__pa_symbol(&_end)); /* kernel end address */ node_mem_init()
|
/linux-4.1.27/arch/arm64/mm/ |
H A D | init.c | 190 min = PFN_UP(memblock_start_of_DRAM()); bootmem_init()
|
/linux-4.1.27/arch/cris/kernel/ |
H A D | setup.c | 110 start_pfn = PFN_UP(memory_start); /* usually c0000000 + kernel + romfs */ setup_arch()
|
/linux-4.1.27/arch/hexagon/mm/ |
H A D | init.c | 34 #define bootmem_startpg (PFN_UP(((unsigned long) _end) - PAGE_OFFSET + PHYS_OFFSET))
|
/linux-4.1.27/arch/sh/mm/ |
H A D | init.c | 298 start_pfn = PFN_UP(__pa(_end)); early_reserve_mem()
|
/linux-4.1.27/drivers/acpi/ |
H A D | acpi_memhotplug.c | 180 return PFN_UP(info->start_addr + info->length-1); acpi_meminfo_end_pfn()
|
/linux-4.1.27/arch/mips/sgi-ip27/ |
H A D | ip27-memory.c | 409 slot_freepfn += PFN_UP(sizeof(struct pglist_data) + node_mem_init()
|
/linux-4.1.27/arch/c6x/kernel/ |
H A D | setup.c | 417 min_low_pfn = PFN_UP(memory_start);
|
/linux-4.1.27/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.1.27/arch/powerpc/platforms/512x/ |
H A D | mpc512x_shared.c | 202 start = PFN_UP(addr); mpc512x_release_bootmem()
|
/linux-4.1.27/drivers/xen/ |
H A D | balloon.c | 643 balloon_add_region(PFN_UP(xen_extra_mem[i].start), balloon_init()
|
/linux-4.1.27/drivers/scsi/ |
H A D | xen-scsifront.c | 76 #define vscsiif_grants_sg(_sg) (PFN_UP((_sg) * \ 388 data_grants += PFN_UP(sg->offset + sg->length); map_data_for_request()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/net/hyperv/ |
H A D | netvsc_drv.c | 327 pages += PFN_UP(offset + size); count_skb_frag_slots()
|
/linux-4.1.27/arch/arm/mm/ |
H A D | init.c | 93 *min = PFN_UP(memblock_start_of_DRAM()); find_limits()
|
/linux-4.1.27/drivers/net/ |
H A D | xen-netfront.c | 480 pages = PFN_UP(offset_in_page(skb->data) + skb_headlen(skb)); xennet_count_skb_slots() 490 pages += PFN_UP(offset + size); xennet_count_skb_slots()
|
/linux-4.1.27/arch/x86/platform/efi/ |
H A D | efi.c | 561 end_pfn = PFN_UP(end); old_map_region()
|
/linux-4.1.27/fs/ |
H A D | aio.c | 443 nr_pages = PFN_UP(size); aio_setup_ring()
|
/linux-4.1.27/drivers/s390/net/ |
H A D | qeth_core_main.c | 3874 e = PFN_UP((unsigned long)data + length - 1) - qeth_get_elements_for_frags() 3886 int elements_needed = PFN_UP((unsigned long)skb->data + dlen - 1) - qeth_get_elements_no()
|
H A D | qeth_l3_main.c | 2932 int elements = PFN_UP(tcpd + tcpd_len - 1) - PFN_DOWN(tcpd); qeth_l3_tso_elements()
|
/linux-4.1.27/kernel/ |
H A D | module.c | 1742 begin_pfn = PFN_UP((unsigned long)base + text_size); set_section_ro_nx() 1743 end_pfn = PFN_UP((unsigned long)base + total_size); set_section_ro_nx()
|