Home
last modified time | relevance | path

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

/f-stack/freebsd/mips/mediatek/
H A Dmtk_machdep.c123 ctob(physmem) / (1024 * 1024)); in mips_init()
131 MIN(mr[0].mr_size, ctob(realmem))); in mips_init()
145 ctob(physmem) / (1024 * 1024)); in mips_init()
149 ctob(physmem) / (1024 * 1024)); in mips_init()
154 dump_avail[1] = phys_avail[1] = ctob(physmem) in mips_init()
156 } else if (ctob(physmem) < (448 * 1024 * 1024)) { in mips_init()
161 dump_avail[1] = phys_avail[1] = ctob(physmem); in mips_init()
169 phys_avail[3] = phys_avail[2] + ctob(physmem) - in mips_init()
182 dump_avail[1] = phys_avail[1] = ctob(physmem); in mips_init()
/f-stack/freebsd/mips/beri/
H A Dberi_machdep.c110 phys_avail[1] = ctob(realmem); in mips_init()
126 phys_avail[1] = (mr[0].mr_start + MIN(mr[0].mr_size, ctob(realmem))); in mips_init()
/f-stack/freebsd/sys/
H A Dparam.h203 #ifndef ctob
204 #define ctob(x) ((x)<<PAGE_SHIFT) macro
/f-stack/freebsd/i386/i386/
H A Dvm86.c394 #define IOMAP_SIZE ctob(IOPAGES)
417 _Static_assert(sizeof(struct vm86_layout_pae) <= ctob(3),
419 _Static_assert(sizeof(struct vm86_layout_nopae) <= ctob(3),
524 ctob(3) - sizeof(struct vm86_layout)); in vm86_initialize_pae()
588 ctob(3) - sizeof(struct vm86_layout)); in vm86_initialize_nopae()
H A Dsys_machdep.c288 ctob(IOPAGES + 1) - 1, /* length */ in i386_extend_pcb()
297 ext = pmap_trm_alloc(ctob(IOPAGES + 1), M_WAITOK | M_ZERO); in i386_extend_pcb()
312 for (i = 0; i < (ctob(IOPAGES) + 32 + 16) / sizeof(u_long); i++) in i386_extend_pcb()
H A Dvm_machdep.c332 pmap_trm_free(pcb->pcb_ext, ctob(IOPAGES + 1)); in cpu_thread_clean()
H A Dbios.c378 if (arg_end - arg_start > ctob(16)) in bios16()
/f-stack/freebsd/mips/ingenic/
H A Djz4780_machdep.c152 phys_avail[1] = (mr[0].mr_start + MIN(mr[0].mr_size, ctob(realmem))); in mips_init()
/f-stack/freebsd/kern/
H A Dkern_mib.c205 val = ctob(p); in sysctl_hw_physmem()
221 val = ctob(p); in sysctl_hw_realmem()
238 val = ctob(p); in sysctl_hw_usermem()
/f-stack/freebsd/mips/atheros/ar531x/
H A Dar5315_machdep.c226 phys_avail[1] = ctob(realmem); in platform_start()
/f-stack/freebsd/amd64/amd64/
H A Dvm_machdep.c331 (vm_offset_t)pcb->pcb_tssp + ctob(IOPAGES + 1)); in cpu_thread_clean()
332 kmem_free((vm_offset_t)pcb->pcb_tssp, ctob(IOPAGES + 1)); in cpu_thread_clean()
H A Dsys_machdep.c421 tssp = (struct amd64tss *)kmem_malloc(ctob(IOPAGES + 1),
424 ctob(IOPAGES + 1), false);
/f-stack/freebsd/mips/atheros/
H A Dar71xx_machdep.c356 phys_avail[1] = ctob(realmem); in platform_start()
/f-stack/freebsd/vm/
H A Dvm_unix.c107 old = base + ctob(vm->vm_dsize); in kern_break()
H A Dvm_map.c4254 entry->start < (vm_offset_t)vm1->vm_daddr + ctob(vm1->vm_dsize)) { in vmspace_map_entry_forked()
4256 (vm_offset_t)vm1->vm_daddr + ctob(vm1->vm_dsize)); in vmspace_map_entry_forked()
4259 entry->start < (vm_offset_t)vm1->vm_taddr + ctob(vm1->vm_tsize)) { in vmspace_map_entry_forked()
4261 (vm_offset_t)vm1->vm_taddr + ctob(vm1->vm_tsize)); in vmspace_map_entry_forked()
4698 if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > stacklim)) in vm_map_growstack()
4705 ctob(vm->vm_ssize) + grow_amount)) { in vm_map_growstack()
4716 if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > stacklim)) { in vm_map_growstack()
4718 ctob(vm->vm_ssize); in vm_map_growstack()
4725 if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > limit)) in vm_map_growstack()
4726 grow_amount = limit - ctob(vm->vm_ssize); in vm_map_growstack()
[all …]