btoc
#define AHCI_SG_ENTRIES MIN(roundup(btoc(maxphys) + 1, 8), 65528)
#define AHD_NSEG (roundup(btoc(AHD_MAXPHYS) + 1, 16))
#define AHC_NSEG (roundup(btoc(AHC_MAXPHYS) + 1, 16))
#define ATA_DMA_ENTRIES MAX(17, btoc(maxphys) + 1)
if (btoc((uint64_t)test->buffer_size * test->chain_depth *
mpt->max_cam_seg_cnt = min(mpt->max_seg_cnt, btoc(maxphys) + 1);
#define MVS_SG_ENTRIES (btoc(maxphys) + 1)
#define AGTIAPI_NSEGS (MIN(btoc(maxphys), 64) + 1)
#define SIIS_SG_ENTRIES (roundup(btoc(maxphys), 4) + 1)
npages = btoc(count);
npages = btoc(count);
npages = btoc(count);
maxpages = btoc(MIN(uio->uio_resid, maxphys)) + 1;
shm_committed -= btoc(size);
if (shm_committed + btoc(size) > shminfo.shmall)
shm_committed += btoc(size);
#define MAX_TLS_PAGES (1 + btoc(TLS_MAX_MSG_SIZE_V10_2))
physmem = btoc(physsz);
physmem = btoc(physsz);
size = btoc(vm_phys_segs[i].end - vm_phys_segs[i].start);
size = btoc(phys_avail[i + 1] - phys_avail[i]);
physmem = btoc(physsz);
physmem = btoc(physsz);
#ifndef btoc
physmem_est = lmin(physmem, btoc(vm_map_max(kernel_map) -
vm2->vm_ssize += btoc(entrysize);
vm2->vm_dsize += btoc(newend - entry->start);
vm2->vm_tsize += btoc(newend - entry->start);
vm->vm_ssize += btoc(grow_amount);
vm->vm_dsize += btoc(new - old);
vm->vm_dsize -= btoc(old - new);
ncount = btoc(maxsize);
#define AHCI_SG_ENTRIES (roundup(btoc(MAXPHYS) + 1, 8))