Lines Matching refs:sane_size
97 uint64_t sane_size = 0; /* Memory size for defaults calculations */
367 sane_size += region_bytes;
371 * sane_size should reflect the total amount of physical
388 sane_size += region_bytes;
392 sane_size += region_bytes;
396 sane_size += region_bytes;
400 sane_size += region_bytes;
582 mem_actual = sane_size;
589 sane_size = (sane_size + 128 * MB - 1) & ~((uint64_t)(128 * MB - 1));
596 if (maxmem == 0 && sane_size > KERNEL_MAXMEM) {
599 sane_size, (uint32_t) (KERNEL_MAXMEM/GB));
605 if ( (maxmem > (uint64_t)first_avail) && (maxmem < sane_size)) {
606 ppnum_t discarded_pages = (ppnum_t)((sane_size - maxmem) >> I386_PGSHIFT);
612 sane_size = maxmem;
643 if (sane_size > (FOURGIG >> 1))
646 mem_size = (vm_size_t)sane_size;
647 max_mem = sane_size;
649 kprintf("Physical memory %llu MB\n", sane_size/MB);
665 if (sane_size >= (ONEGIG * 15))
667 else if (sane_size >= (ONEGIG * 7))