Searched refs:PFN_UP (Results 1 - 56 of 56) sorted by relevance

/linux-4.4.14/include/linux/
H A Dpfn.h9 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) macro
H A Dmemblock.h359 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 Defi.h1079 *npages = PFN_UP(*addr + (*npages<<EFI_PAGE_SHIFT)) - PFN_DOWN(*addr); memrange_efi_to_native()
/linux-4.4.14/arch/mips/power/
H A Dcpu.c40 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); pfn_is_nosave()
/linux-4.4.14/arch/m32r/mm/
H A Ddiscontig.c47 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 Dsetup.c49 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 Dsetup.c246 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 Dbootmem.c163 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 Dnobootmem.c85 cursor = PFN_UP(addr); free_bootmem_late()
113 unsigned long start_pfn = PFN_UP(start); __free_memory_core()
H A Dmemblock.c1089 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 Dpercpu.c349 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 Dvmalloc.c1238 * 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 Dmemory_hotplug.c2046 ret = walk_memory_range(PFN_DOWN(start), PFN_UP(start + size - 1), NULL, remove_memory()
H A Dpage_alloc.c957 unsigned long end_pfn = PFN_UP(end); reserve_bootmem_region()
/linux-4.4.14/arch/mn10300/kernel/
H A Dsetup.c126 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 Dsetup.c92 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 Dpage.h46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
/linux-4.4.14/arch/alpha/mm/
H A Dnuma.c66 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 Dearly.c116 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 Dsetup.c649 unsigned long start_pfn = PFN_UP(__pa(&_end)); reserve_kernel()
/linux-4.4.14/arch/metag/mm/
H A Dinit.c184 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 Dsetup.c77 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 Dsetup.c140 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 Dsetup.c158 min_low_pfn = PFN_UP(memory_start); setup_arch()
/linux-4.4.14/arch/microblaze/mm/
H A Dinit.c185 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 Dsetup.c489 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 Dsetup.c218 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 Dsetup.c360 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 Dinit.c386 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 Dsetup.c447 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 Dacpi_memhotplug.c175 return PFN_UP(info->start_addr + info->length-1); acpi_meminfo_end_pfn()
/linux-4.4.14/arch/um/kernel/
H A Dphysmem.c83 unsigned long pfn = PFN_UP(__pa(reserve_end)); setup_physmem()
/linux-4.4.14/arch/x86/kernel/
H A De820.c691 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 Dtboot.c168 map_size = PFN_UP(tboot->tboot_size); tboot_create_trampoline()
/linux-4.4.14/arch/mips/include/asm/
H A Dpage.h83 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
/linux-4.4.14/arch/mips/loongson64/loongson-3/
H A Dnuma.c194 freepfn = PFN_UP(__pa_symbol(&_end)); /* kernel end address */ node_mem_init()
/linux-4.4.14/arch/cris/kernel/
H A Dsetup.c110 start_pfn = PFN_UP(memory_start); /* usually c0000000 + kernel + romfs */ setup_arch()
/linux-4.4.14/arch/hexagon/mm/
H A Dinit.c34 #define bootmem_startpg (PFN_UP(((unsigned long) _end) - PAGE_OFFSET + PHYS_OFFSET))
/linux-4.4.14/arch/arm64/mm/
H A Dinit.c191 min = PFN_UP(memblock_start_of_DRAM()); bootmem_init()
/linux-4.4.14/arch/c6x/kernel/
H A Dsetup.c417 min_low_pfn = PFN_UP(memory_start);
/linux-4.4.14/arch/sh/mm/
H A Dinit.c298 start_pfn = PFN_UP(__pa(_end)); early_reserve_mem()
/linux-4.4.14/arch/mips/sgi-ip27/
H A Dip27-memory.c409 slot_freepfn += PFN_UP(sizeof(struct pglist_data) + node_mem_init()
/linux-4.4.14/arch/x86/mm/
H A Dnuma_emulation.c33 unsigned long start_pfn = PFN_UP(start); mem_hole_size()
H A Dinit_32.c438 unsigned long pfn = clamp_t(unsigned long, PFN_UP(start), add_highpages_with_active_regions()
H A Dinit_64.c677 unsigned long end_pfn = PFN_UP(start + size); update_end_of_memory_vars()
/linux-4.4.14/arch/powerpc/platforms/512x/
H A Dmpc512x_shared.c202 start = PFN_UP(addr); mpc512x_release_bootmem()
/linux-4.4.14/drivers/scsi/
H A Dxen-scsifront.c76 #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 Dsetup.c366 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 Dsetup.c722 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 Dinit.c94 *min = PFN_UP(memblock_start_of_DRAM()); find_limits()
/linux-4.4.14/drivers/net/hyperv/
H A Dnetvsc_drv.c370 pages += PFN_UP(offset + size); count_skb_frag_slots()
/linux-4.4.14/arch/x86/platform/efi/
H A Defi.c587 end_pfn = PFN_UP(end); old_map_region()
/linux-4.4.14/fs/
H A Daio.c452 nr_pages = PFN_UP(size); aio_setup_ring()
/linux-4.4.14/drivers/s390/net/
H A Dqeth_core_main.c3826 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 Dqeth_l3_main.c2822 int elements = PFN_UP(tcpd + tcpd_len - 1) - PFN_DOWN(tcpd); qeth_l3_tso_elements()
/linux-4.4.14/kernel/
H A Dmodule.c1912 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()

Completed in 2382 milliseconds