Home
last modified time | relevance | path

Searched refs:ctob (Results 1 – 25 of 74) sorted by relevance

123

/netbsd/tests/sys/uvm/
H A Dt_uvm_physseg_load.c344 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 Dcore_netbsd.c91 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 Dinit_main.c497 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 Duvm_unix.c153 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 Duvm_physseg.c496 *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 Dm_sco5.c110 #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 Dka650.c108 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 Dmachdep.c313 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 Dmemc_3max.c69 if (physadr <= ctob(physmem)) { in dec_mtasic_err()
/netbsd/sys/compat/common/
H A Dkern_info_43.c279 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 Dmachdep.c226 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 Dlinux32_sysinfo.c81 si.totalram = ctob((u_long)physmem); in linux32_sys_sysinfo()
/netbsd/sys/arch/sun3/sun3x/
H A Dmachdep.c206 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 Dmachdep.c244 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 Dapbus_subr.c60 apbd_work_pa = ctob(physmem); in apbus_map_romwork()
/netbsd/sys/arch/evbppc/explora/
H A Dmachdep.c127 pn = prop_number_create_integer(ctob(physmem)); in cpu_startup()
/netbsd/sys/arch/evbppc/virtex/
H A Dmachdep.c168 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup()
/netbsd/sys/arch/emips/emips/
H A Dmachdep.c441 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 Dmachdep.c519 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 Dmachdep.c337 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 Dmachdep.c223 mem_clusters[0].size = ctob(physmem); in mach_init()
/netbsd/sys/dev/ic/
H A Doosiopvar.h32 #define OOSIOP_MAX_XFER ctob(OOSIOP_NSG - 1)
/netbsd/sys/arch/x86/x86/
H A Dx86_machdep.c1109 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 Dmachdep.c716 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 Dmachdep.c218 format_bytes(pbuf, sizeof(pbuf), ctob(physmem)); in cpu_startup()

123