Lines Matching refs:highmem_pages
571 static unsigned int highmem_pages = -1; variable
583 highmem_pages = memparse(arg, &arg) >> PAGE_SHIFT; in parse_highmem()
603 if (highmem_pages == -1) in lowmem_pfn_init()
604 highmem_pages = 0; in lowmem_pfn_init()
606 if (highmem_pages >= max_pfn) { in lowmem_pfn_init()
608 pages_to_mb(highmem_pages), pages_to_mb(max_pfn)); in lowmem_pfn_init()
609 highmem_pages = 0; in lowmem_pfn_init()
611 if (highmem_pages) { in lowmem_pfn_init()
612 if (max_low_pfn - highmem_pages < 64*1024*1024/PAGE_SIZE) { in lowmem_pfn_init()
614 pages_to_mb(highmem_pages)); in lowmem_pfn_init()
615 highmem_pages = 0; in lowmem_pfn_init()
617 max_low_pfn -= highmem_pages; in lowmem_pfn_init()
620 if (highmem_pages) in lowmem_pfn_init()
638 if (highmem_pages == -1) in highmem_pfn_init()
639 highmem_pages = max_pfn - MAXMEM_PFN; in highmem_pfn_init()
641 if (highmem_pages + MAXMEM_PFN < max_pfn) in highmem_pfn_init()
642 max_pfn = MAXMEM_PFN + highmem_pages; in highmem_pfn_init()
644 if (highmem_pages + MAXMEM_PFN > max_pfn) { in highmem_pfn_init()
647 pages_to_mb(highmem_pages)); in highmem_pfn_init()
648 highmem_pages = 0; in highmem_pfn_init()