Searched refs:P2ROUNDUP (Results 1 - 25 of 162) sorted by relevance

1234567

/illumos-gate/usr/src/common/nvpair/
H A Dnvpair_alloc_fixed.c70 nvbuf_t *nvb = (nvbuf_t *)P2ROUNDUP(base, sizeof (uintptr_t));
92 nvb->nvb_cur = P2ROUNDUP(new + size, sizeof (uintptr_t));
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dsbrk.c56 #define BRKALIGN(x) (caddr_t)P2ROUNDUP((uintptr_t)(x), ALIGNSZ)
145 ret_brk = P2ROUNDUP(old_brk, low_align);
147 new_brk = P2ROUNDUP(high_brk, high_align);
/illumos-gate/usr/src/test/libc-tests/tests/
H A Daligned_alloc.c58 VERIFY3P(mmap((caddr_t)P2ROUNDUP(status.pr_brkbase +
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c73 buf_size = P2ROUNDUP(sb.st_size + SECTOR_SIZE, SECTOR_SIZE);
112 extra = P2ROUNDUP(sb.st_size, 8);
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvdsk_common.h338 P2ROUNDUP((vscsi)->cdb_len, sizeof (uint64_t))))
342 P2ROUNDUP((vscsi)->cdb_len, sizeof (uint64_t)) + \
343 P2ROUNDUP((vscsi)->sense_len, sizeof (uint64_t))))
347 P2ROUNDUP((vscsi)->cdb_len, sizeof (uint64_t)) + \
348 P2ROUNDUP((vscsi)->sense_len, sizeof (uint64_t)) + \
349 P2ROUNDUP((vscsi)->datain_len, sizeof (uint64_t))))
/illumos-gate/usr/src/uts/common/sys/
H A Ddumphdr.h52 #define DUMP_ERPTSIZE (P2ROUNDUP( \
57 #define DUMP_SUMMARYSIZE (P2ROUNDUP( \
/illumos-gate/usr/src/cmd/boot/installboot/sparc/
H A Dinstallboot.c118 buf_size = P2ROUNDUP(bblock->file_size, SECTOR_SIZE);
124 buf_size = P2ROUNDUP(bblock->file_size + SECTOR_SIZE,
162 P2ROUNDUP(bblock->file_size, 8));
217 buf_size = P2ROUNDUP(size + SECTOR_SIZE, SECTOR_SIZE);
329 avail_space = bblock->buf_size - P2ROUNDUP(bblock->file_size, 8);
541 dest_bblock->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE);
553 P2ROUNDUP(dest_bblock->file_size, 8));
736 size = bblock->buf_size - P2ROUNDUP(bblock->file_size, 8) -
/illumos-gate/usr/src/lib/libumem/common/
H A Dvmem_stand.c94 sr->sr_curtop = (caddr_t)P2ROUNDUP((ulong_t)base, stand_chunksize);
H A Dvmem_sbrk.c254 vmem_sbrk_minalloc = P2ROUNDUP(vmem_sbrk_minalloc, heap_size);
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma.h97 #define LDMA_MESSAGE_SIZE(dlen) (LDMA_MESSAGE_HEADER_SIZE + P2ROUNDUP(dlen, 8))
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_tnode.c251 delta = P2ROUNDUP(newsize, PAGESIZE) -
252 P2ROUNDUP(oldsize, PAGESIZE);
284 delta = P2ROUNDUP(oldsize, PAGESIZE) -
285 P2ROUNDUP(newsize, PAGESIZE);
/illumos-gate/usr/src/uts/common/os/
H A Dbp_map.c108 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE);
132 P2ROUNDUP(color + size, bp_align), flag);
216 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE);
240 P2ROUNDUP(color + size, bp_align));
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_extvnops.c135 pplen = P2ROUNDUP(len, PAGESIZE);
158 pplen = P2ROUNDUP(len, PAGESIZE);
161 contig = P2ROUNDUP(contig, DEV_BSIZE);
351 contig = P2ROUNDUP(contig, DEV_BSIZE);
421 int contig = P2ROUNDUP(nbytes, DEV_BSIZE);
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxen_mmu.c157 sz = P2ROUNDUP(sz, MMU_PAGESIZE);
173 sz = P2ROUNDUP(mfn_count * sizeof (mfn_t), MMU_PAGESIZE);
193 sz2 = P2ROUNDUP(mmu_btop(sz) * sizeof (mfn_t), MMU_PAGESIZE);
/illumos-gate/usr/src/cmd/boot/common/
H A Dmboot_extra.c185 ext_hdr->size = P2ROUNDUP(used_space, 8);
/illumos-gate/usr/src/uts/common/syscall/
H A Dlgrpsys.c1260 snap_hdr_size = P2ROUNDUP(sizeof (lgrp_snapshot_header32_t),
1263 P2ROUNDUP(snap_nlgrpsmax * sizeof (lgrp_info32_t),
1266 P2ROUNDUP(lgrp_snap->ss_ncpus * sizeof (processorid_t),
1326 snap_hdr_size = P2ROUNDUP(sizeof (lgrp_snapshot_header_t),
1328 info_size = P2ROUNDUP(snap_nlgrpsmax * sizeof (lgrp_info_t),
1330 cpuids_size = P2ROUNDUP(snap_ncpus * sizeof (processorid_t),
1539 snap_hdr_size = P2ROUNDUP(sizeof (lgrp_snapshot_header32_t),
1542 P2ROUNDUP(snap_nlgrpsmax * sizeof (lgrp_info32_t),
1545 P2ROUNDUP(lgrp_snap->ss_ncpus * sizeof (processorid_t),
1638 snap_hdr_size = P2ROUNDUP(sizeo
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dkgrep.c91 lim = P2ROUNDUP(lim, pagesize);
141 base = P2ROUNDUP(MAX(base, minaddr), sizeof (uintbits_t)); \
/illumos-gate/usr/src/uts/common/io/
H A Dsmbios.c88 smb_clones[c].c_eplen = P2ROUNDUP(sizeof (smbios_entry_t), 16);
171 size_t alen = P2ROUNDUP(len, PAGESIZE);
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmemseg.c114 pp = (page_t *)P2ROUNDUP((uint64_t)pp, PAGESIZE);
267 pp = (page_t *)P2ROUNDUP((uint64_t)pp, PAGESIZE);
/illumos-gate/usr/src/uts/sun4u/os/
H A Dmach_startup.c141 P2ROUNDUP((uintptr_t)fpras_chkfngrps_base, 64);
530 ret_val = P2ROUNDUP(pmem->ml_address, ecache_size);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu_zfetch.c309 ipf_istart = P2ROUNDUP(ipf_start, 1 << epbs) >> epbs;
310 ipf_iend = P2ROUNDUP(zs->zs_ipf_blkid, 1 << epbs) >> epbs;
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c430 size = stage2->buf_size - P2ROUNDUP(stage2->file_size, 8);
604 dest_stage2->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE);
614 P2ROUNDUP(dest_stage2->file_size, 8);
974 avail_space = stage2->buf_size - P2ROUNDUP(stage2->file_size, 8);
1132 stage2->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE);
1150 stage2->extra = stage2->file + P2ROUNDUP(stage2->file_size, 8);
1263 buf_size = P2ROUNDUP(size + SECTOR_SIZE, SECTOR_SIZE);
1284 stage2->extra = stage2->buf + P2ROUNDUP(stage2->file_size, 8);
1285 stage2->extra_size = stage2->buf_size - P2ROUNDUP(stage2->file_size, 8);
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmp_pc.c183 ct = kmem_zalloc(P2ROUNDUP(sizeof (*ct), PAGESIZE), KM_SLEEP);
358 kmem_free(ct, P2ROUNDUP(sizeof (*ct), PAGESIZE));
368 kmem_free(ct, P2ROUNDUP(sizeof (*ct), PAGESIZE));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Darc4random.c128 mapsz = P2ROUNDUP(sizeof (arc4_state_t), pgsz);
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_trace.c69 tbp->tb_frames = P2ROUNDUP(tbp->tb_frames, 2);

Completed in 70 milliseconds

1234567