/netbsd/tests/sys/uvm/ |
H A D | t_uvm_physseg_load.c | 344 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY() 373 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY() 402 pa = (paddr_t) random() % (paddr_t) ctob(VALID_END_PFN_1); in ATF_TC_BODY() 566 if(pa < ctob(VALID_START_PFN_2)) in ATF_TC_BODY() 567 pa += ctob(VALID_START_PFN_2); in ATF_TC_BODY() 615 if(pa < ctob(VALID_START_PFN_3)) in ATF_TC_BODY() 616 pa += ctob(VALID_START_PFN_3); in ATF_TC_BODY() 664 if(pa < ctob(VALID_START_PFN_4)) in ATF_TC_BODY() 665 pa += ctob(VALID_START_PFN_4); in ATF_TC_BODY() 712 if(pa < ctob(VALID_END_PFN_5)) in ATF_TC_BODY() [all …]
|
/netbsd/sys/kern/ |
H A D | core_netbsd.c | 91 cs.core.c_tsize = (u_long)ctob(vm->vm_tsize); in CORENAME() 92 cs.core.c_dsize = (u_long)ctob(vm->vm_dsize); in CORENAME() 93 cs.core.c_ssize = (u_long)round_page(ctob(vm->vm_ssize)); in CORENAME()
|
H A D | init_main.c | 497 if (ctob((uint64_t)physmem) >= 16ULL * 1024 * 1024 * 1024) in main() 499 if (ctob((uint64_t)physmem) >= 1024 * 1024 * 1024) in main() 1194 format_bytes(pbuf, MEM_PBUFSIZE, ctob((uint64_t)physmem)); in banner() 1196 format_bytes(pbuf, MEM_PBUFSIZE, ctob((uint64_t)uvm_availmem(false))); in banner()
|
/netbsd/sys/uvm/ |
H A D | uvm_unix.c | 153 if (sp < p->p_stackbase + ctob(vm->vm_ssize)) in uvm_grow() 155 if (sp >= p->p_stackbase - ctob(vm->vm_ssize)) in uvm_grow()
|
H A D | uvm_physseg.c | 496 *paddrp = ctob(seg->avail_start); in uvm_page_physunload() 503 *paddrp = ctob(seg->avail_end - 1); in uvm_page_physunload() 524 *paddrp = ctob(seg->avail_start); in uvm_page_physunload_force() 672 *paddrp = ctob(seg->avail_start); in uvm_page_physunload() 690 *paddrp = ctob(seg->avail_end - 1); in uvm_page_physunload() 723 *paddrp = ctob(seg->avail_start); in uvm_page_physunload_force() 1110 paddr = ctob(seg->start); in uvm_physseg_init_seg()
|
/netbsd/external/bsd/top/dist/machine/ |
H A D | m_sco5.c | 110 #define PROCSIZE(up) bytetok(ctob((up)->u_tsize + (up)->u_dsize+(up)->u_ssize)) 441 memory_stats[0] = bytetok(ctob(memory_stats[0])); /* clicks -> bytes in get_system_info() 443 memory_stats[1] = bytetok(ctob(memory_stats[1])); /* clicks -> bytes in get_system_info() 445 memory_stats[2] = bytetok(ctob(memory_stats[2])); /* clicks -> bytes in get_system_info()
|
/netbsd/sys/arch/vax/vax/ |
H A 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()
|
/netbsd/sys/arch/hp300/hp300/ |
H A D | machdep.c | 313 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 694 m->ram_segs[0].size = ctob(physmem); in cpu_init_kcore_hdr() 1087 printf("Parity error at 0x%x\n", ctob(pg)|o); in parityerrorfind() 1101 pmap_enter(pmap_kernel(), (vaddr_t)vmmap, ctob(pg), in parityerrorfind()
|
/netbsd/sys/arch/pmax/pmax/ |
H A D | memc_3max.c | 69 if (physadr <= ctob(physmem)) { in dec_mtasic_err()
|
/netbsd/sys/compat/common/ |
H A D | kern_info_43.c | 279 ksi.physmem = ctob(physmem); in compat_43_sys_getkerninfo() 280 ksi.usermem = ctob(physmem); /* XXX */ in compat_43_sys_getkerninfo()
|
/netbsd/sys/arch/news68k/news68k/ |
H A D | machdep.c | 226 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 407 m->ram_segs[0].size = ctob(physmem); in cpu_init_kcore_hdr() 1002 memend = lowram + ctob(physmem); in mm_md_physacc()
|
/netbsd/sys/compat/linux32/common/ |
H A D | linux32_sysinfo.c | 81 si.totalram = ctob((u_long)physmem); in linux32_sys_sysinfo()
|
/netbsd/sys/arch/sun3/sun3x/ |
H A D | machdep.c | 206 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 566 kseg_p->c_size = (ctob(DUMP_EXTRA) - sizeof(*kseg_p)); in dumpsys()
|
/netbsd/sys/arch/sun3/sun3/ |
H A D | machdep.c | 244 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 580 kseg_p->c_size = (ctob(DUMP_EXTRA) - sizeof(*kseg_p)); in dumpsys()
|
/netbsd/sys/arch/newsmips/apbus/ |
H A D | apbus_subr.c | 60 apbd_work_pa = ctob(physmem); in apbus_map_romwork()
|
/netbsd/sys/arch/evbppc/explora/ |
H A D | machdep.c | 127 pn = prop_number_create_integer(ctob(physmem)); in cpu_startup()
|
/netbsd/sys/arch/evbppc/virtex/ |
H A D | machdep.c | 168 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup()
|
/netbsd/sys/arch/emips/emips/ |
H A D | machdep.c | 441 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 635 mem_clusters[0].size = ctob(mem); in memsize_scan()
|
/netbsd/sys/arch/amiga/amiga/ |
H A D | machdep.c | 519 m->ram_segs[0].size = ctob(physmem); in cpu_dumpconf() 537 dumplo = nblks - btodb(ctob(dumpsize)); in cpu_dumpconf() 617 bytes = ctob(dumpsize); in dumpsys()
|
/netbsd/sys/arch/luna68k/luna68k/ |
H A D | machdep.c | 337 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 548 m->ram_segs[0].size = ctob(physmem); in cpu_init_kcore_hdr()
|
/netbsd/sys/arch/evbmips/malta/ |
H A D | machdep.c | 223 mem_clusters[0].size = ctob(physmem); in mach_init()
|
/netbsd/sys/dev/ic/ |
H A D | oosiopvar.h | 32 #define OOSIOP_MAX_XFER ctob(OOSIOP_NSG - 1)
|
/netbsd/sys/arch/x86/x86/ |
H A D | x86_machdep.c | 1109 if (ctob(uvm_physseg_get_avail_end(x)) == avail_end) in init_x86_msgbuf() 1118 sz = ctob(uvm_physseg_get_avail_end(x) - uvm_physseg_get_avail_start(x)); in init_x86_msgbuf() 1121 msgbuf_p_seg[msgbuf_p_cnt++].paddr = ctob(uvm_physseg_get_avail_end(x)) - sz; in init_x86_msgbuf() 1125 avail_end = ctob(uvm_physseg_get_highest_frame()); in init_x86_msgbuf()
|
/netbsd/sys/arch/sgimips/sgimips/ |
H A D | machdep.c | 716 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup() 718 format_bytes(pbuf, sizeof(pbuf), ctob(arcsmem)); in cpu_startup()
|
/netbsd/sys/arch/ews4800mips/ews4800mips/ |
H A D | machdep.c | 218 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup()
|