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

/linux-4.1.27/include/linux/
H A Dpfn.h9 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) macro
H A Dmemblock.h324 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 Defi.h1042 *npages = PFN_UP(*addr + (*npages<<EFI_PAGE_SHIFT)) - PFN_DOWN(*addr); memrange_efi_to_native()
/linux-4.1.27/arch/mips/power/
H A Dcpu.c40 unsigned long nosave_end_pfn = PFN_UP(__pa(&__nosave_end)); pfn_is_nosave()
/linux-4.1.27/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.1.27/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.1.27/arch/mips/kernel/
H A Dsetup.c241 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 Dsetup.c126 kstart_pfn = PFN_UP(__pa(&_text)); setup_arch()
127 free_pfn = PFN_UP(__pa(&_end)); setup_arch()
/linux-4.1.27/mm/
H A Dbootmem.c163 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 Dnobootmem.c76 cursor = PFN_UP(addr); free_bootmem_late()
104 unsigned long start_pfn = PFN_UP(start); __free_memory_core()
H A Dmemblock.c1002 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 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.c1236 * 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 Dmemory_hotplug.c2000 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 Dpage.h46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
/linux-4.1.27/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.1.27/arch/s390/kernel/
H A Dearly.c115 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 Dsetup.c648 start_pfn = PFN_UP(__pa(&_end)); reserve_kernel()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/arch/nios2/kernel/
H A Dsetup.c158 min_low_pfn = PFN_UP(memory_start); setup_arch()
/linux-4.1.27/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.1.27/arch/mips/mm/
H A Dinit.c269 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 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.1.27/arch/x86/xen/
H A Dsetup.c156 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 Dsetup.c360 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 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.1.27/arch/x86/kernel/
H A De820.c690 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 Dtboot.c168 map_size = PFN_UP(tboot->tboot_size); tboot_create_trampoline()
/linux-4.1.27/arch/um/kernel/
H A Dphysmem.c84 unsigned long pfn = PFN_UP(__pa(reserve_end)); setup_physmem()
/linux-4.1.27/arch/mips/include/asm/
H A Dpage.h83 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
/linux-4.1.27/arch/mips/loongson/loongson-3/
H A Dnuma.c194 freepfn = PFN_UP(__pa_symbol(&_end)); /* kernel end address */ node_mem_init()
/linux-4.1.27/arch/arm64/mm/
H A Dinit.c190 min = PFN_UP(memblock_start_of_DRAM()); bootmem_init()
/linux-4.1.27/arch/cris/kernel/
H A Dsetup.c110 start_pfn = PFN_UP(memory_start); /* usually c0000000 + kernel + romfs */ setup_arch()
/linux-4.1.27/arch/hexagon/mm/
H A Dinit.c34 #define bootmem_startpg (PFN_UP(((unsigned long) _end) - PAGE_OFFSET + PHYS_OFFSET))
/linux-4.1.27/arch/sh/mm/
H A Dinit.c298 start_pfn = PFN_UP(__pa(_end)); early_reserve_mem()
/linux-4.1.27/drivers/acpi/
H A Dacpi_memhotplug.c180 return PFN_UP(info->start_addr + info->length-1); acpi_meminfo_end_pfn()
/linux-4.1.27/arch/mips/sgi-ip27/
H A Dip27-memory.c409 slot_freepfn += PFN_UP(sizeof(struct pglist_data) + node_mem_init()
/linux-4.1.27/arch/c6x/kernel/
H A Dsetup.c417 min_low_pfn = PFN_UP(memory_start);
/linux-4.1.27/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.1.27/arch/powerpc/platforms/512x/
H A Dmpc512x_shared.c202 start = PFN_UP(addr); mpc512x_release_bootmem()
/linux-4.1.27/drivers/xen/
H A Dballoon.c643 balloon_add_region(PFN_UP(xen_extra_mem[i].start), balloon_init()
/linux-4.1.27/drivers/scsi/
H A Dxen-scsifront.c76 #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 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.1.27/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.1.27/drivers/net/hyperv/
H A Dnetvsc_drv.c327 pages += PFN_UP(offset + size); count_skb_frag_slots()
/linux-4.1.27/arch/arm/mm/
H A Dinit.c93 *min = PFN_UP(memblock_start_of_DRAM()); find_limits()
/linux-4.1.27/drivers/net/
H A Dxen-netfront.c480 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 Defi.c561 end_pfn = PFN_UP(end); old_map_region()
/linux-4.1.27/fs/
H A Daio.c443 nr_pages = PFN_UP(size); aio_setup_ring()
/linux-4.1.27/drivers/s390/net/
H A Dqeth_core_main.c3874 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 Dqeth_l3_main.c2932 int elements = PFN_UP(tcpd + tcpd_len - 1) - PFN_DOWN(tcpd); qeth_l3_tso_elements()
/linux-4.1.27/kernel/
H A Dmodule.c1742 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()

Completed in 2878 milliseconds