roundup2
return roundup2(sz, DB_ALIGN);
#define LALIGN(n) roundup2(n, sizeof(pgno_t))
tls_static_space = roundup2(phdr[i].p_memsz,
padlen = roundup2(off % multx, multx) - (off % multx);
padlen = roundup2(off % multx, multx) - (off % multx);
chunk_offset = roundup2(sizeof(*slab), chunk_size);
*bytes = n = roundup2(n, c);
off = roundup2(off, size);
off = roundup2(off, chunking);
count = roundup2(count, alignment);
op->ov_size = roundup2(nbytes, RSLOP);
op->ov_size = roundup2(nbytes, RSLOP);
roundup2((long)pagepool_start, pagesz);
roundup2(note->n_namesz, sizeof(Elf32_Addr)) +
roundup2(note->n_descsz, sizeof(Elf32_Addr)))) {
p += roundup2(note->n_namesz, sizeof(Elf32_Addr));
roundup2(size, align)
roundup2((prev_offset) + (size), align)
bootsize = roundup2(bootsize, dp->d_secsize);
rsize = roundup2(sizeof(struct disklabel64), secsize);
boot2size = roundup2(r, secsize);
size_t bitmap_size = roundup2(bits, LONG_BIT) / (LONG_BIT / 8);
dl = gpt_read(fd, start, roundup2(sizeof(*dl), secsz) / secsz);
#define LONG_ALIGN(n) roundup2(n, sizeof(long))
#define allocsize(size) roundup2((size) + 1, STRTBLINCR)
ptr = (base) + roundup2((ptr) - (base), sizeof(int))
staging = roundup2(staging, 2 * 1024 * 1024);
(void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
p += roundup2(hdr.ex.a_text, PAGE_SIZE);
p += roundup2(ep[1].p_memsz, PAGE_SIZE);
roundup2(eh.p[0].p_paddr + eh.p[0].p_memsz, 4);
inquiry_len = roundup2(inquiry_len, 2);
bzero(&t[0], roundup2(len, sizeof(u_int32_t)));
b->psize = roundup2(b->psize, sizeof(u_int32_t));
esize = ssize = roundup2(esize, PAGE_SIZE);
xfer = fwmem_xfer_req(fwdev, sc, spd, 0, roundup2(len, 4), hand);
cycle = roundup2(cycle, CYCLE_MOD);
r += roundup2(fp->mode.wreqb.len, sizeof(u_int32_t));
sc->arrq.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
sc->arrs.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
sc->atrq.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
sc->atrs.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
#define RDRAND_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16))
disk_size = roundup2(vm_kmem_size >> 1, (1ULL << 20));
data_end = data + (roundup2(len, sizeof(uint32_t)) / 4);
ioc_status_frame.MsgLength = roundup2(sizeof(ioc_status_frame), 4);
#define ALIGN(x, y) roundup2((x), (y))
fifo_pkt_len = roundup2(len + EM_FIFO_HDR, EM_FIFO_HDR);
int fifo_pkt_len = roundup2(len + EM_FIFO_HDR, EM_FIFO_HDR);
roundup2(adapter->hw.mac.max_frame_size, 1024);
tsize = roundup2(adapter->num_tx_desc * sizeof(struct e1000_tx_desc),
rsize = roundup2(adapter->num_rx_desc * sizeof(struct e1000_rx_desc),
roundup2(sc->hw.mac.max_frame_size, 1024);
tsize = roundup2(tdata->num_tx_desc * sizeof(struct e1000_tx_desc),
rsize = roundup2(rdata->num_rx_desc * sizeof(emx_rxdesc_t),
#define ET_JLEN roundup2(ET_JUMBO_FRAMELEN, ET_JUMBO_ALIGN)
min_tx = roundup2(min_tx, 1024);
min_rx = roundup2(min_rx, 1024);
tsize = roundup2(txr->num_tx_desc * sizeof(union e1000_adv_tx_desc),
rsize = roundup2(rxr->num_rx_desc * sizeof(union e1000_adv_rx_desc),
nextoff = offset + roundup2(len, IWM_FH_RSCSR_FRAME_ALIGN);
len -= roundup2(tlv_len, 4);
data += sizeof(*tlv) + roundup2(tlv_len, 4);
tsize = roundup2(txr->tx_ndesc * sizeof(union ixgbe_adv_tx_desc),
rsize = roundup2(rxr->rx_ndesc * sizeof(union ixgbe_adv_rx_desc),
asize = roundup2(JME_TX_RING_SIZE(tdata), JME_TX_RING_ALIGN);
asize = roundup2(JME_SSB_SIZE, JME_SSB_ALIGN);
asize = roundup2(JME_RX_RING_SIZE(rdata), JME_RX_RING_ALIGN);
#define RE_JBUF_SIZE roundup2(RE_FRAMELEN_MAX, RE_RXBUF_ALIGN)
i = roundup2(sizeof(union RxDesc)*RE_RX_BUF_NUM, RE_DESC_ALIGN);
i = roundup2(sizeof(union TxDesc)*RE_TX_BUF_NUM, RE_DESC_ALIGN);
#define WPI_PAD32(x) (roundup2(x, 4) - (x))
new_size = roundup2(target, BUS_CHUNK);
new_size = roundup2(lun, TARGET_CHUNK);
#define CISS_COMMAND_ALLOC_SIZE (roundup2(sizeof(struct ciss_command) + CISS_COMMAND_SG_LENGTH, CISS_COMMAND_ALIGN))
sc->fqdepth = roundup2(sc->num_replies + 1, 16);
sc->pqdepth = roundup2(sc->num_replies + 1, 16);
sc->fqdepth = roundup2((sc->num_replies + 1), 16);
sc->pqdepth = roundup2((sc->num_replies + 1), 16);
req->length = roundup2(req->length, sc->sg_size_factor);
data_buf_size_adjusted = roundup2(user_buf->driver_pkt.buffer_length,
tr_length = roundup2(tu->tu_size, 512);
alignment = roundup2(HDA_DMA_ALIGNMENT, PAGE_SIZE);
roundsz = roundup2(size, alignment);
size = roundup2(size, align);
(void *)roundup2((unsigned long)&vr->avail->ring[num], align);
target->off = roundup2(target->off, sizeof(Elf_Word));
target->off = roundup2(target->off, sizeof(Elf_Word));
roundup2(note->n_namesz, sizeof(Elf32_Addr)) +
roundup2(note->n_descsz, sizeof(Elf32_Addr)));
p += roundup2(note->n_namesz, sizeof(Elf32_Addr));
kpmap = kmalloc(roundup2(sizeof(*kpmap), PAGE_SIZE),
*off += roundup2(note.n_namesz, sizeof(Elf_Size));
*off += roundup2(note.n_descsz, sizeof(Elf_Size));
offset < roundup2(sizeof(*p->p_upmap), PAGE_SIZE)) {
offset < roundup2(sizeof(*kpmap), PAGE_SIZE)) {
offset < roundup2(sizeof(*lp->lwp_lpmap), PAGE_SIZE)) {
upmap = kmalloc(roundup2(sizeof(*upmap), PAGE_SIZE), M_UPMAP,
lpmap = kmalloc(roundup2(sizeof(*lpmap), PAGE_SIZE), M_UPMAP,
off = roundup2(off, align);
bpsize = roundup2(sizeof(*dlp), secsize);
bpsize = roundup2(sizeof(*lp), secsize);
newsize = roundup2(size, SBUF_MAXEXTENDINCR);
#define SEM_ALIGN(bytes) roundup2(bytes, sizeof(long))
newbsize = roundup2(size, DEV_BSIZE);
#define BPF_WORDALIGN(x) roundup2(x, BPF_ALIGNMENT)
len = roundup2(headroom + pktlen, 4);
m_adj(m, roundup2(framelen, 4) - framelen); /* padding */
off = roundup2(off, items[i].align);
th->it_len = htole16(roundup2(tlen, sizeof(uint32_t)));
rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t)));
m_adj(n, roundup2(framelen, 4) - framelen); /* padding */
pad = roundup2(m1->m_pkthdr.len, 4) - m1->m_pkthdr.len;
pad = roundup2(m1->m_pkthdr.len, 4) - m1->m_pkthdr.len;
#define DEV_ALIGN(x) roundup2((off_t)(x), DEV_BSIZE)
#define DEV_ALIGN(x) roundup2((off_t)(x), DEV_BSIZE)
kend = roundup2(kend, (vm_offset_t)(PAGE_SIZE * NPTEPG));
newaddr = roundup2(addr, NBPDR);
addr = roundup2(addr, NBPDR);
addr = roundup2(addr, PAGE_SIZE * NPTEPG);
addr = roundup2(addr, NBPDR);
size = roundup2(ap->a_count, blksiz);
i_offset = roundup2(dp->i_size, DIRBLKSIZ);
endsearch = roundup2(dp->i_size, DIRBLKSIZ);
dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ);
dp->i_endoff = roundup2(enduseful, DIRBLKSIZ);
dp->i_size = roundup2(dp->i_size, dirblksize);
xfersz = roundup2(toread, DEV_BSIZE);
xfersz = roundup2(towrite, DEV_BSIZE);
vap->va_bytes = roundup2(hp->h_fn.fn_size, DEV_BSIZE) + DEV_BSIZE;
siz = roundup2(cnt, DIRBLKSIZ);
siz = roundup2(siz, DIRBLKSIZ);
nmp->nm_wsize = roundup2(pref, NFS_FABLKSIZE);
nmp->nm_rsize = roundup2(pref, NFS_FABLKSIZE);
nmp->nm_readdirsize = roundup2(pref, NFS_DIRBLKSIZ);
dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ);
endsearch = roundup2(dp->i_size, DIRBLKSIZ);
dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ);
dp->i_endoff = roundup2(enduseful, DIRBLKSIZ);
vm_page_dump_size = round_page(roundup2(page_range, NBBY) / NBBY);
z->zsize = roundup2(size, ZONE_ROUNDING);
*off += roundup2(note.n_namesz, sizeof(Elf_Size));
*off += roundup2(note.n_descsz, sizeof(Elf_Size));
next = ptr + roundup2(temp.hdrlen + temp.caplen, temp.align);