Home
last modified time | relevance | path

Searched refs:physmem (Results 1 – 25 of 231) sorted by relevance

12345678910

/netbsd/src/external/gpl3/binutils/dist/libiberty/
Dphysmem.c113 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/
Dphysmem.c113 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/
Dphysmem.c113 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/
Dmachdep.c229 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/
Dloongson2_machdep.c136 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/
Dmachdep.c221 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/
Dkern_info_43.c144 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/
Dmachdep.c442 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/
Dmachdep.c179 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/
Dpmap_bootstrap.c176 physmem += (toads - fromads) / PAGE_SIZE; in pmap_bootstrap()
182 mem_size = physmem << PGSHIFT; in pmap_bootstrap()
/netbsd/src/sys/arch/emips/emips/
Dmachdep.c286 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/
Dinit_sysctl_base.c236 u = ((u_int)physmem > (UINT_MAX / PAGE_SIZE)) ?
237 UINT_MAX : physmem * PAGE_SIZE;
257 q = (u_quad_t)physmem * PAGE_SIZE;
Dinit_main.c500 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/
Dmachdep.c462 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/
Dmachdep.c331 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/
Dmachdep.c113 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/
Dmachdep.c186 physmem = btoc(memsize); in mach_init()
223 mem_clusters[0].size = ctob(physmem); in mach_init()
/netbsd/src/sys/arch/x68k/x68k/
Dpmap_bootstrap.c56 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/
Dmachdep.c205 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/
Dpmap_bootstrap.c55 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/
Dlocore_machdep.S96 la k0, _C_LABEL(physmem)
97 … lw k0, 0(k0) # k0 = page of physmem (tail of maxmemory - 0x00100000)
/netbsd/src/sys/arch/sun3/sun3/
Dmachdep.c243 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/
Dtuklib_physmem.m416 # - AIX has _system_configuration.physmem.
73 (void)_system_configuration.physmem;
178 can be detected with _system_configuration.physmem.])
/netbsd/src/sys/arch/evbarm/armadillo/
Darmadillo9_machdep.c543 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/
Dka650.c108 if (ctob(physmem) > ka650merr_ptr->merr_qbmbr) { in ka650_conf()
110 ctob(physmem), (int)ka650merr_ptr->merr_qbmbr); in ka650_conf()

12345678910