/illumos-gate/usr/src/common/nvpair/ |
H A D | nvpair_alloc_fixed.c | 70 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 D | sbrk.c | 56 #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 D | aligned_alloc.c | 58 VERIFY3P(mmap((caddr_t)P2ROUNDUP(status.pr_brkbase +
|
/illumos-gate/usr/src/tools/btxld/ |
H A D | version.c | 73 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 D | vdsk_common.h | 338 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 D | dumphdr.h | 52 #define DUMP_ERPTSIZE (P2ROUNDUP( \ 57 #define DUMP_SUMMARYSIZE (P2ROUNDUP( \
|
/illumos-gate/usr/src/cmd/boot/installboot/sparc/ |
H A D | installboot.c | 118 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 D | vmem_stand.c | 94 sr->sr_curtop = (caddr_t)P2ROUNDUP((ulong_t)base, stand_chunksize);
|
H A D | vmem_sbrk.c | 254 vmem_sbrk_minalloc = P2ROUNDUP(vmem_sbrk_minalloc, heap_size);
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldma.h | 97 #define LDMA_MESSAGE_SIZE(dlen) (LDMA_MESSAGE_HEADER_SIZE + P2ROUNDUP(dlen, 8))
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 251 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 D | bp_map.c | 108 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 D | ufs_extvnops.c | 135 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 D | xen_mmu.c | 157 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 D | mboot_extra.c | 185 ext_hdr->size = P2ROUNDUP(used_space, 8);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lgrpsys.c | 1260 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 D | kgrep.c | 91 lim = P2ROUNDUP(lim, pagesize); 141 base = P2ROUNDUP(MAX(base, minaddr), sizeof (uintbits_t)); \
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | smbios.c | 88 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 D | memseg.c | 114 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 D | mach_startup.c | 141 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 D | dmu_zfetch.c | 309 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 D | installgrub.c | 430 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 D | mp_pc.c | 183 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 D | arc4random.c | 128 mapsz = P2ROUNDUP(sizeof (arc4_state_t), pgsz);
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_trace.c | 69 tbp->tb_frames = P2ROUNDUP(tbp->tb_frames, 2);
|