/arch/arm/mach-rpc/include/mach/ |
D | uncompress.h | 23 unsigned long nr_pages; member 119 unsigned int nr_pages = 0, page_size = PAGE_SIZE; in arch_decomp_setup() local 138 nr_pages += (t->u.mem.size / PAGE_SIZE); in arch_decomp_setup() 144 nr_pages = params->nr_pages; in arch_decomp_setup() 189 if (nr_pages * page_size < 4096*1024) error("<4M of mem\n"); in arch_decomp_setup()
|
/arch/x86/mm/ |
D | numa_32.c | 65 unsigned long nr_pages = end_pfn - start_pfn; in node_memmap_size_bytes() local 67 if (!nr_pages) in node_memmap_size_bytes() 70 return (nr_pages + 1) * sizeof(struct page); in node_memmap_size_bytes()
|
D | gup.c | 244 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, in __get_user_pages_fast() argument 256 len = (unsigned long) nr_pages << PAGE_SHIFT; in __get_user_pages_fast() 312 int get_user_pages_fast(unsigned long start, int nr_pages, int write, in get_user_pages_fast() argument 323 len = (unsigned long) nr_pages << PAGE_SHIFT; in get_user_pages_fast()
|
D | init_32.c | 841 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_add_memory() local 843 return __add_pages(nid, zone, start_pfn, nr_pages); in arch_add_memory()
|
D | init_64.c | 658 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_add_memory() local 665 ret = __add_pages(nid, zone, start_pfn, nr_pages); in arch_add_memory()
|
/arch/arm/kernel/ |
D | compat.c | 46 unsigned long nr_pages; /* 4 */ member 108 if (params->u1.s.nr_pages != 0x02000 && in build_tag_list() 109 params->u1.s.nr_pages != 0x04000 && in build_tag_list() 110 params->u1.s.nr_pages != 0x08000 && in build_tag_list() 111 params->u1.s.nr_pages != 0x10000) { in build_tag_list() 115 params->u1.s.nr_pages = 0x1000; /* 16MB */ in build_tag_list() 163 tag = memtag(tag, PHYS_OFFSET, params->u1.s.nr_pages * PAGE_SIZE); in build_tag_list()
|
/arch/s390/mm/ |
D | init.c | 226 unsigned long zone_start_pfn, zone_end_pfn, nr_pages; in arch_add_memory() local 248 nr_pages = (start_pfn + size_pages > zone_end_pfn) ? in arch_add_memory() 250 rc = __add_pages(nid, zone, start_pfn, nr_pages); in arch_add_memory() 253 start_pfn += nr_pages; in arch_add_memory() 254 size_pages -= nr_pages; in arch_add_memory()
|
D | gup.c | 173 int get_user_pages_fast(unsigned long start, int nr_pages, int write, in get_user_pages_fast() argument 184 len = (unsigned long) nr_pages << PAGE_SHIFT; in get_user_pages_fast()
|
/arch/sh/mm/ |
D | gup.c | 161 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, in __get_user_pages_fast() argument 173 len = (unsigned long) nr_pages << PAGE_SHIFT; in __get_user_pages_fast() 215 int get_user_pages_fast(unsigned long start, int nr_pages, int write, in get_user_pages_fast() argument 226 len = (unsigned long) nr_pages << PAGE_SHIFT; in get_user_pages_fast()
|
D | init.c | 537 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_add_memory() local 544 start_pfn, nr_pages); in arch_add_memory()
|
/arch/powerpc/mm/ |
D | init_64.c | 268 unsigned long nr_pages, int node) in vmemmap_populate() argument 271 unsigned long end = (unsigned long)(start_page + nr_pages); in vmemmap_populate() 278 start_page, nr_pages, node); in vmemmap_populate()
|
D | gup.c | 106 int get_user_pages_fast(unsigned long start, int nr_pages, int write, in get_user_pages_fast() argument 115 pr_devel("%s(%lx,%x,%s)\n", __func__, start, nr_pages, write ? "write" : "read"); in get_user_pages_fast() 119 len = (unsigned long) nr_pages << PAGE_SHIFT; in get_user_pages_fast()
|
D | mem.c | 123 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_add_memory() local 134 return __add_pages(nid, zone, start_pfn, nr_pages); in arch_add_memory() 145 walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, in walk_system_ram_range() argument 149 unsigned long end_pfn = start_pfn + nr_pages; in walk_system_ram_range()
|
/arch/x86/boot/compressed/ |
D | eboot.c | 65 unsigned long nr_pages; in high_alloc() local 73 nr_pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE; in high_alloc() 84 if (desc->num_pages < nr_pages) in high_alloc() 117 nr_pages, &max_addr); in high_alloc() 143 unsigned long nr_pages; in low_alloc() local 150 nr_pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE; in low_alloc() 161 if (desc->num_pages < nr_pages) in low_alloc() 181 nr_pages, &start); in low_alloc() 199 unsigned long nr_pages; in low_free() local 201 nr_pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE; in low_free() [all …]
|
/arch/mips/mm/ |
D | gup.c | 195 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, in __get_user_pages_fast() argument 207 len = (unsigned long) nr_pages << PAGE_SHIFT; in __get_user_pages_fast() 262 int get_user_pages_fast(unsigned long start, int nr_pages, int write, in get_user_pages_fast() argument 273 len = (unsigned long) nr_pages << PAGE_SHIFT; in get_user_pages_fast()
|
/arch/alpha/mm/ |
D | init.c | 191 unsigned long nr_pages = 0; in callback_init() local 197 nr_pages += crb->map[i].count; in callback_init() 201 console_remap_vm.size = nr_pages << PAGE_SHIFT; in callback_init()
|
/arch/x86/xen/ |
D | setup.c | 132 const struct e820entry *list, size_t map_size, unsigned long nr_pages) in xen_set_identity_and_release() argument 162 if (start_pfn < nr_pages) in xen_set_identity_and_release() 164 start_pfn, min(end_pfn, nr_pages)); in xen_set_identity_and_release() 234 unsigned long max_pfn = xen_start_info->nr_pages; in xen_memory_setup()
|
/arch/sparc/mm/ |
D | gup.c | 109 int get_user_pages_fast(unsigned long start, int nr_pages, int write, in get_user_pages_fast() argument 120 len = (unsigned long) nr_pages << PAGE_SHIFT; in get_user_pages_fast()
|
/arch/powerpc/platforms/pseries/ |
D | cmm.c | 478 unsigned long end = start + (marg->nr_pages << PAGE_SHIFT); in cmm_count_pages() 531 unsigned long end_page = start_page + (marg->nr_pages << PAGE_SHIFT); in cmm_mem_going_offline() 537 start_page, marg->nr_pages); in cmm_mem_going_offline()
|
/arch/sh/kernel/cpu/sh4/ |
D | sq.c | 376 unsigned int nr_pages = 0x04000000 >> PAGE_SHIFT; in sq_api_init() local 377 unsigned int size = (nr_pages + (BITS_PER_LONG - 1)) / BITS_PER_LONG; in sq_api_init()
|
/arch/tile/kernel/ |
D | module.c | 70 area->nr_pages = npages; in module_alloc()
|
/arch/powerpc/platforms/ps3/ |
D | mm.c | 300 unsigned long nr_pages; in ps3_mm_add_memory() local 309 nr_pages = (map.r1.size + PAGE_SIZE - 1) >> PAGE_SHIFT; in ps3_mm_add_memory() 312 __func__, __LINE__, start_addr, start_pfn, nr_pages); in ps3_mm_add_memory() 324 result = online_pages(start_pfn, nr_pages); in ps3_mm_add_memory()
|
/arch/x86/kernel/ |
D | e820.c | 1088 u64 nr_pages = 0, nr_free_pages = 0; in memblock_find_dma_reserve() local 1102 nr_pages += end_pfn - start_pfn; in memblock_find_dma_reserve() 1112 set_dma_reserve(nr_pages - nr_free_pages); in memblock_find_dma_reserve()
|
/arch/ia64/mm/ |
D | init.c | 677 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_add_memory() local 683 ret = __add_pages(nid, zone, start_pfn, nr_pages); in arch_add_memory()
|
/arch/tile/mm/ |
D | init.c | 938 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_add_memory() local 940 return __add_pages(zone, start_pfn, nr_pages); in arch_add_memory()
|