| /freebsd-12.1/sys/mips/mediatek/ |
| H A D | mtk_machdep.c | 118 physmem = btoc(val); in mips_init() 121 ctob(physmem) / (1024 * 1024)); in mips_init() 143 ctob(physmem) / (1024 * 1024)); in mips_init() 145 physmem = btoc(32 * 1024 * 1024); in mips_init() 147 ctob(physmem) / (1024 * 1024)); in mips_init() 152 dump_avail[1] = phys_avail[1] = ctob(physmem) in mips_init() 159 dump_avail[1] = phys_avail[1] = ctob(physmem); in mips_init() 179 physmem = btoc(32 * 1024 * 1024); in mips_init() 184 if (physmem < realmem) in mips_init() 185 realmem = physmem; in mips_init() [all …]
|
| /freebsd-12.1/contrib/binutils/libiberty/ |
| H A 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()
|
| /freebsd-12.1/contrib/gcclibs/libiberty/ |
| H A 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()
|
| /freebsd-12.1/sys/mips/sibyte/ |
| H A D | sb_machdep.c | 175 physmem = 0; in mips_init() 221 physmem += len; in mips_init() 224 realmem = btoc(physmem); in mips_init() 230 physmem = realmem; in mips_init() 233 init_param2(physmem); in mips_init()
|
| /freebsd-12.1/sys/mips/broadcom/ |
| H A D | bcm_machdep.c | 474 physmem = 0; in mips_init() 505 physmem += len; in mips_init() 508 BCM_TRACE("Total phys memory is : %ld\n", physmem); in mips_init() 509 realmem = btoc(physmem); in mips_init() 515 physmem = realmem; in mips_init() 518 init_param2(physmem); in mips_init()
|
| /freebsd-12.1/sys/mips/ingenic/ |
| H A D | jz4780_machdep.c | 128 physmem = realmem = btoc(32 * 1024 * 1024); in mips_init() 143 physmem = realmem = btoc(val); in mips_init() 164 init_param2(physmem); in mips_init()
|
| /freebsd-12.1/sys/mips/beri/ |
| H A D | beri_machdep.c | 112 physmem = realmem; in mips_init() 117 physmem = btoc(val); in mips_init() 138 init_param2(physmem); in mips_init()
|
| /freebsd-12.1/usr.sbin/bsnmpd/modules/snmp_hostres/ |
| H A D | hostres_scalars.c | 283 u_long physmem; in OS_getMemorySize() local 284 size_t len = sizeof(physmem); in OS_getMemorySize() 286 if (sysctl(mib, 2, &physmem, &len, NULL, 0) == -1) { in OS_getMemorySize() 292 phys_mem_size = physmem / 1024; in OS_getMemorySize()
|
| /freebsd-12.1/sys/powerpc/powerpc/ |
| H A D | machdep.c | 193 printf("real memory = %ju (%ju MB)\n", ptoa((uintmax_t)physmem), in cpu_startup() 194 ptoa((uintmax_t)physmem) / 1048576); in cpu_startup() 195 realmem = physmem; in cpu_startup() 418 init_param2(physmem); in powerpc_init()
|
| /freebsd-12.1/sys/mips/gxemul/ |
| H A D | gxemul_machdep.c | 98 physmem = realmem; in mips_init() 101 init_param2(physmem); in mips_init()
|
| /freebsd-12.1/sys/mips/cavium/ |
| H A D | octeon_machdep.c | 223 realmem = physmem = btoc(phys_avail[1] - phys_avail[0]); in octeon_memory_init() 258 physmem += btoc(1 << 20); in octeon_memory_init() 274 realmem = physmem; in octeon_memory_init() 365 init_param2(physmem); in platform_start()
|
| /freebsd-12.1/sys/vm/ |
| H A D | vm_init.c | 102 long physmem; variable 192 physmem_est = lmin(physmem, btoc(vm_map_max(kernel_map) - in vm_ksubmap_init()
|
| /freebsd-12.1/sbin/dumpon/ |
| H A D | dumpon.c | 192 unsigned long physmem; in check_size() local 201 len = sizeof(physmem); in check_size() 202 if (sysctl(name, namelen, &physmem, &len, NULL, 0) != 0) in check_size() 206 if ((uintmax_t)mediasize < (uintmax_t)physmem) { in check_size()
|
| /freebsd-12.1/sys/kern/ |
| H A D | kern_mib.c | 184 if (physmem < p) in sysctl_hw_physmem() 185 p = physmem; in sysctl_hw_physmem() 189 SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_ULONG | CTLFLAG_RD, 213 p1 = physmem - vm_wire_count(); in sysctl_hw_usermem() 224 SYSCTL_LONG(_hw, OID_AUTO, availpages, CTLFLAG_RD, &physmem, 0,
|
| /freebsd-12.1/sys/mips/malta/ |
| H A D | malta_machdep.c | 208 physmem = realmem; in mips_init() 211 init_param2(physmem); in mips_init()
|
| /freebsd-12.1/sys/mips/atheros/ar531x/ |
| H A D | ar5315_machdep.c | 228 physmem = realmem; in platform_start() 305 init_param2(physmem); in platform_start()
|
| /freebsd-12.1/sys/mips/atheros/ |
| H A D | ar71xx_machdep.c | 359 physmem = realmem; in platform_start() 417 init_param2(physmem); in platform_start()
|
| /freebsd-12.1/sys/i386/ibcs2/ |
| H A D | ibcs2_sysi86.c | 88 td->td_retval[0] = ctob(physmem); in ibcs2_sysi86()
|
| /freebsd-12.1/gnu/usr.bin/cc/libiberty/ |
| H A D | Makefile | 19 partition.c pex-unix.c physmem.c safe-ctype.c splay-tree.c xexit.c \
|
| /freebsd-12.1/sys/arm/arm/ |
| H A D | physmem.c | 413 MAX_AVAIL_ENTRIES, &physmem, &realmem); in arm_physmem_init_kernel_globals() 422 DB_SHOW_COMMAND(physmem, db_show_physmem) in DB_SHOW_COMMAND() argument
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libzpool/common/ |
| H A D | kernel.c | 52 uint64_t physmem; variable 975 physmem = sysconf(_SC_PHYS_PAGES); in kernel_init() 977 dprintf("physmem = %llu pages (%.2f GB)\n", physmem, in kernel_init() 978 (double)physmem * sysconf(_SC_PAGE_SIZE) / (1ULL << 30)); in kernel_init()
|
| /freebsd-12.1/sys/sparc64/sparc64/ |
| H A D | pmap.c | 347 getenv_quad("hw.physmem", &physmem); in pmap_bootstrap() 348 physmem = btoc(physmem); in pmap_bootstrap() 354 if (physmem != 0 && btoc(physsz + mra[i].mr_size) >= physmem) { in pmap_bootstrap() 355 if (btoc(physsz) < physmem) { in pmap_bootstrap() 358 (ctob(physmem) - physsz); in pmap_bootstrap() 359 physsz = ctob(physmem); in pmap_bootstrap() 367 physmem = btoc(physsz); in pmap_bootstrap()
|
| /freebsd-12.1/sys/mips/nlm/ |
| H A D | xlp_machdep.c | 347 init_param2(physmem); in mips_init() 499 realmem = physmem = btoc(physsz); in xlp_mem_init()
|
| /freebsd-12.1/contrib/xz/src/common/ |
| H A D | tuklib_physmem.c | 144 ret = _system_configuration.physmem; in tuklib_physmem()
|
| /freebsd-12.1/sys/mips/mips/ |
| H A D | minidump_machdep.c | 272 ptoa((uintmax_t)physmem) / 1048576); in minidumpsys()
|