Lines Matching defs:sane_size
90 uint64_t sane_size = 0; /* Memory size to use for defaults calculations */
237 sane_size += (uint64_t)(mptr->NumberOfPages << I386_PGSHIFT);
246 * sane_size should reflect the total amount of physical ram
250 sane_size += (uint64_t)(mptr->NumberOfPages << I386_PGSHIFT);
383 mem_actual = sane_size;
393 sane_size = (sane_size + 128 * MEG - 1) & ~((uint64_t)(128 * MEG - 1));
402 if (maxmem == 0 && sane_size > K32_MAXMEM) {
405 sane_size, (uint32_t) (K32_MAXMEM/GIG));
411 if ( (maxmem > (uint64_t)first_avail) && (maxmem < sane_size)) {
412 ppnum_t discarded_pages = (sane_size - maxmem) >> I386_PGSHIFT;
418 sane_size = maxmem;
449 if (sane_size > (FOURGIG >> 1))
452 mem_size = (vm_size_t)sane_size;
453 max_mem = sane_size;
455 kprintf("Physical memory %llu MB\n", sane_size/MEG);
468 * bsd_mbuf_cluster_reserve depends on sane_size being set