ctob
tssp = kmem_malloc(ctob(IOPAGES + 1), M_WAITOK);
ctob(IOPAGES + 1), false);
(vm_offset_t)pcb->pcb_tssp + ctob(IOPAGES + 1));
kmem_free(pcb->pcb_tssp, ctob(IOPAGES + 1));
old = (uintptr_t)vm->vm_daddr + ctob(vm->vm_dsize);
ip->HostPhysMemPages = ctob(physmem) / AAC_PAGE_SIZE;
ip->HostPhysMemPages = ctob(physmem) / AAC_PAGE_SIZE;
cpi->maxio = ctob(AHCI_SG_ENTRIES - 1);
cpi->maxio = ctob(AGTIAPI_NSEGS - 1);
if (arg_end - arg_start > ctob(16))
ctob(IOPAGES + 1) - 1, /* length */
ext = pmap_trm_alloc(ctob(IOPAGES + 1), M_WAITOK | M_ZERO);
for (i = 0; i < (ctob(IOPAGES) + 32 + 16) / sizeof(u_long); i++)
#define IOMAP_SIZE ctob(IOPAGES)
_Static_assert(sizeof(struct vm86_layout_pae) <= ctob(3),
_Static_assert(sizeof(struct vm86_layout_nopae) <= ctob(3),
ctob(3) - sizeof(struct vm86_layout));
ctob(3) - sizeof(struct vm86_layout));
pmap_trm_free(pcb->pcb_ext, ctob(IOPAGES + 1));
val = ctob(p);
val = ctob(p);
val = ctob(p);
if (pa_end < ctob(Maxmem))
#ifndef ctob
entry->start < (vm_offset_t)vm1->vm_daddr + ctob(vm1->vm_dsize)) {
(vm_offset_t)vm1->vm_daddr + ctob(vm1->vm_dsize));
entry->start < (vm_offset_t)vm1->vm_taddr + ctob(vm1->vm_tsize)) {
(vm_offset_t)vm1->vm_taddr + ctob(vm1->vm_tsize));
if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > stacklim))
ctob(vm->vm_ssize) + grow_amount)) {
if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > stacklim)) {
ctob(vm->vm_ssize);
if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > limit))
grow_amount = limit - ctob(vm->vm_ssize);
error = racct_set(p, RACCT_STACK, ctob(vm->vm_ssize));
old = base + ctob(vm->vm_dsize);