Lines Matching refs:highmem_pages
544 static unsigned int highmem_pages = -1; variable
556 highmem_pages = memparse(arg, &arg) >> PAGE_SHIFT; in parse_highmem()
576 if (highmem_pages == -1) in lowmem_pfn_init()
577 highmem_pages = 0; in lowmem_pfn_init()
579 if (highmem_pages >= max_pfn) { in lowmem_pfn_init()
581 pages_to_mb(highmem_pages), pages_to_mb(max_pfn)); in lowmem_pfn_init()
582 highmem_pages = 0; in lowmem_pfn_init()
584 if (highmem_pages) { in lowmem_pfn_init()
585 if (max_low_pfn - highmem_pages < 64*1024*1024/PAGE_SIZE) { in lowmem_pfn_init()
587 pages_to_mb(highmem_pages)); in lowmem_pfn_init()
588 highmem_pages = 0; in lowmem_pfn_init()
590 max_low_pfn -= highmem_pages; in lowmem_pfn_init()
593 if (highmem_pages) in lowmem_pfn_init()
611 if (highmem_pages == -1) in highmem_pfn_init()
612 highmem_pages = max_pfn - MAXMEM_PFN; in highmem_pfn_init()
614 if (highmem_pages + MAXMEM_PFN < max_pfn) in highmem_pfn_init()
615 max_pfn = MAXMEM_PFN + highmem_pages; in highmem_pfn_init()
617 if (highmem_pages + MAXMEM_PFN > max_pfn) { in highmem_pfn_init()
620 pages_to_mb(highmem_pages)); in highmem_pfn_init()
621 highmem_pages = 0; in highmem_pfn_init()