| /netbsd/src/external/gpl3/binutils/dist/libiberty/ |
| D | physmem.c | 113 double pages = realmem.physmem; in physmem_total() 122 int physmem; in physmem_total() local 124 if (getsysinfo (GSI_PHYSMEM, (caddr_t) &physmem, sizeof (physmem), in physmem_total() 127 double kbytes = physmem; in physmem_total() 137 unsigned int physmem; in physmem_total() local 138 size_t len = sizeof physmem; in physmem_total() 141 if (sysctl (mib, ARRAY_SIZE (mib), &physmem, &len, NULL, 0) == 0 in physmem_total() 142 && len == sizeof (physmem)) in physmem_total() 143 return (double) physmem; in physmem_total() 149 return _system_configuration.physmem; in physmem_total()
|
| /netbsd/src/external/gpl3/gcc/dist/libiberty/ |
| D | physmem.c | 113 double pages = realmem.physmem; in physmem_total() 122 int physmem; in physmem_total() local 124 if (getsysinfo (GSI_PHYSMEM, (caddr_t) &physmem, sizeof (physmem), in physmem_total() 127 double kbytes = physmem; in physmem_total() 137 unsigned int physmem; in physmem_total() local 138 size_t len = sizeof physmem; in physmem_total() 141 if (sysctl (mib, ARRAY_SIZE (mib), &physmem, &len, NULL, 0) == 0 in physmem_total() 142 && len == sizeof (physmem)) in physmem_total() 143 return (double) physmem; in physmem_total() 149 return _system_configuration.physmem; in physmem_total()
|
| /netbsd/src/external/gpl3/gdb/dist/libiberty/ |
| D | physmem.c | 113 double pages = realmem.physmem; in physmem_total() 122 int physmem; in physmem_total() local 124 if (getsysinfo (GSI_PHYSMEM, (caddr_t) &physmem, sizeof (physmem), in physmem_total() 127 double kbytes = physmem; in physmem_total() 137 unsigned int physmem; in physmem_total() local 138 size_t len = sizeof physmem; in physmem_total() 141 if (sysctl (mib, ARRAY_SIZE (mib), &physmem, &len, NULL, 0) == 0 in physmem_total() 142 && len == sizeof (physmem)) in physmem_total() 143 return (double) physmem; in physmem_total() 149 return _system_configuration.physmem; in physmem_total()
|
| /netbsd/src/sys/arch/arc/arc/ |
| D | machdep.c | 229 physmem = bios_configure_memory(mem_reserved, mem_clusters, in mach_init() 252 physmem = btoc(physmem); in mach_init() 363 maxmem = physmem; in mach_init() 413 mem_clusters[0].size = ctob(physmem); in mach_init() 418 last = physmem; in mach_init()
|
| /netbsd/src/sys/arch/evbmips/loongson/ |
| D | loongson2_machdep.c | 136 physmem = btoc(memlo + memhi); in loongson2e_setup() 180 physmem = btoc(memlo + memhi); in loongson2f_setup() 181 if (physmem > btoc(DDR_PHYSICAL_SIZE)) { in loongson2f_setup() 183 (physmem >> 20) - (DDR_PHYSICAL_SIZE >> 20)); in loongson2f_setup() 187 physmem = btoc(memlo + memhi); in loongson2f_setup()
|
| /netbsd/src/sys/arch/sbmips/sbmips/ |
| D | machdep.c | 221 physmem = 0; in mach_init() 235 physmem += btoc(((int) len)); in mach_init() 256 physmem = 32 * 1024 * 1024 / 4096; in mach_init() 258 mem_clusters[0].size = ctob(physmem); in mach_init()
|
| /netbsd/src/sys/compat/common/ |
| D | kern_info_43.c | 144 u_long physmem; member 279 ksi.physmem = ctob(physmem); in compat_43_sys_getkerninfo() 280 ksi.usermem = ctob(physmem); /* XXX */ in compat_43_sys_getkerninfo()
|
| /netbsd/src/sys/arch/epoc32/epoc32/ |
| D | machdep.c | 442 physmem = bootconfig.dram[0].pages; in initarm() 444 physmem += bootconfig.dram[i].pages; in initarm() 445 if (physmem < 0x400000) in initarm() 453 physmem += bootconfig.dram[loop].pages; in initarm() 455 if (physical_end == 0 && physmem >= 0x400000 / PAGE_SIZE) in initarm()
|
| /netbsd/src/sys/arch/ia64/ia64/ |
| D | machdep.c | 179 printf("Detected memory = %ld (%ld MB)\n", ia64_ptob(physmem), in cpu_startup() 180 ptoa(physmem) / 1048576); in cpu_startup() 519 physmem = 0; in ia64_init() 554 physmem += (pfn1 - pfn0); in ia64_init() 597 if (physmem == 0) in ia64_init()
|
| /netbsd/src/sys/arch/amiga/amiga/ |
| D | pmap_bootstrap.c | 176 physmem += (toads - fromads) / PAGE_SIZE; in pmap_bootstrap() 182 mem_size = physmem << PGSHIFT; in pmap_bootstrap()
|
| /netbsd/src/sys/arch/emips/emips/ |
| D | machdep.c | 286 physmem = (*platform.memsize)(kernend); in mach_init() 292 for (i = 0, physmem = 0; i < mem_cluster_cnt; ++i) { in mach_init() 297 physmem += atop(mem_clusters[i].size); in mach_init() 441 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup()
|
| /netbsd/src/sys/kern/ |
| D | init_sysctl_base.c | 236 u = ((u_int)physmem > (UINT_MAX / PAGE_SIZE)) ? 237 UINT_MAX : physmem * PAGE_SIZE; 257 q = (u_quad_t)physmem * PAGE_SIZE;
|
| D | init_main.c | 500 if (ctob((uint64_t)physmem) >= 16ULL * 1024 * 1024 * 1024) in main() 502 if (ctob((uint64_t)physmem) >= 1024 * 1024 * 1024) in main() 1151 t = (uintmax_t)physmem * pct / 100 * PAGE_SIZE; in calc_cache_size() 1192 format_bytes(pbuf, MEM_PBUFSIZE, ctob((uint64_t)physmem)); in banner()
|
| /netbsd/src/sys/arch/algor/algor/ |
| D | machdep.c | 462 physmem += atop(mem_clusters[i].size); in mach_init() 464 if (physmem == 0) in mach_init() 466 maxmem = physmem; in mach_init()
|
| /netbsd/src/sys/arch/pmax/pmax/ |
| D | machdep.c | 331 physmem = (*platform.memsize)(kernend); in mach_init() 340 for (i = 0, physmem = 0; i < mem_cluster_cnt; ++i) { in mach_init() 341 physmem += atop(mem_clusters[i].size); in mach_init()
|
| /netbsd/src/sys/arch/cesfic/cesfic/ |
| D | machdep.c | 113 extern psize_t physmem; /* max supported memory, changes to actual */ 249 printf("real mem = %d\n", ctob(physmem)); in cpu_startup() 383 dumpsize = physmem + 1; in cpu_dumpconf()
|
| /netbsd/src/sys/arch/evbmips/malta/ |
| D | machdep.c | 186 physmem = btoc(memsize); in mach_init() 223 mem_clusters[0].size = ctob(physmem); in mach_init()
|
| /netbsd/src/sys/arch/x68k/x68k/ |
| D | pmap_bootstrap.c | 56 extern psize_t physmem; 126 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG) + in pmap_bootstrap() 408 RELOC(mem_size, psize_t) = m68k_ptob(RELOC(physmem, int)); in pmap_bootstrap()
|
| /netbsd/src/sys/arch/sun3/sun3x/ |
| D | machdep.c | 205 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 483 dumpsize = physmem; /* pages */ in cpu_dumpconf() 486 dumpblks = ctod(physmem + DUMP_EXTRA); in cpu_dumpconf()
|
| /netbsd/src/sys/arch/luna68k/luna68k/ |
| D | pmap_bootstrap.c | 55 extern psize_t physmem; 129 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG) + in pmap_bootstrap() 413 RELOC(mem_size, vsize_t) = m68k_ptob(RELOC(physmem, int)); in pmap_bootstrap()
|
| /netbsd/src/sys/arch/newsmips/newsmips/ |
| D | locore_machdep.S | 96 la k0, _C_LABEL(physmem) 97 … lw k0, 0(k0) # k0 = page of physmem (tail of maxmemory - 0x00100000)
|
| /netbsd/src/sys/arch/sun3/sun3/ |
| D | machdep.c | 243 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 495 dumpsize = physmem; in cpu_dumpconf() 498 dumpblks = ctod(physmem + DUMP_EXTRA); in cpu_dumpconf()
|
| /netbsd/src/external/public-domain/xz/dist/m4/ |
| D | tuklib_physmem.m4 | 16 # - AIX has _system_configuration.physmem. 73 (void)_system_configuration.physmem; 178 can be detected with _system_configuration.physmem.])
|
| /netbsd/src/sys/arch/evbarm/armadillo/ |
| D | armadillo9_machdep.c | 543 physmem = (physical_end - physical_start) / PAGE_SIZE; in initarm() 549 physmem, physical_start, physical_end - 1); in initarm() 821 physmem = bootconfig.dram[0].pages; in initarm() 828 physmem += bootconfig.dram[loop].pages; in initarm()
|
| /netbsd/src/sys/arch/vax/vax/ |
| D | ka650.c | 108 if (ctob(physmem) > ka650merr_ptr->merr_qbmbr) { in ka650_conf() 110 ctob(physmem), (int)ka650merr_ptr->merr_qbmbr); in ka650_conf()
|