Home
last modified time | relevance | path

Searched refs:P2ROUNDUP (Results 1 – 25 of 193) sorted by relevance

12345678

/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); in _sbrk_grow_aligned()
147 new_brk = P2ROUNDUP(high_brk, high_align); in _sbrk_grow_aligned()
/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/common/nvpair/
H A Dnvpair_alloc_fixed.c68 nvbuf_t *nvb = (nvbuf_t *)P2ROUNDUP(base, sizeof (uintptr_t)); in nv_fixed_init()
90 nvb->nvb_cur = P2ROUNDUP(new + size, sizeof (uintptr_t)); in nv_fixed_alloc()
/illumos-gate/usr/src/uts/common/syscall/
H A Dlgrpsys.c1264 P2ROUNDUP(snap_nlgrpsmax * sizeof (lgrp_info32_t), in lgrp_snapshot()
1267 P2ROUNDUP(lgrp_snap->ss_ncpus * sizeof (processorid_t), in lgrp_snapshot()
1327 snap_hdr_size = P2ROUNDUP(sizeof (lgrp_snapshot_header_t), in lgrp_snapshot()
1543 P2ROUNDUP(snap_nlgrpsmax * sizeof (lgrp_info32_t), in lgrp_snapshot()
1546 P2ROUNDUP(lgrp_snap->ss_ncpus * sizeof (processorid_t), in lgrp_snapshot()
1639 snap_hdr_size = P2ROUNDUP(sizeof (lgrp_snapshot_header_t), in lgrp_snapshot_copy()
1641 info_size = P2ROUNDUP(snap_nlgrpsmax * sizeof (lgrp_info_t), in lgrp_snapshot_copy()
1643 cpuids_size = P2ROUNDUP(snap_ncpus * sizeof (processorid_t), in lgrp_snapshot_copy()
1835 snap_hdr_size = P2ROUNDUP(sizeof (lgrp_snapshot_header32_t), in lgrp_snapshot_copy32()
1839 cpuids_size = P2ROUNDUP(snap_ncpus * sizeof (processorid_t), in lgrp_snapshot_copy32()
[all …]
/illumos-gate/usr/src/cmd/boot/installboot/sparc/
H A Dinstallboot.c118 buf_size = P2ROUNDUP(bblock->file_size, SECTOR_SIZE); in read_bootblock_from_file()
124 buf_size = P2ROUNDUP(bblock->file_size + SECTOR_SIZE, in read_bootblock_from_file()
162 P2ROUNDUP(bblock->file_size, 8)); in read_bootblock_from_file()
217 buf_size = P2ROUNDUP(size + SECTOR_SIZE, SECTOR_SIZE); in read_bootblock_from_disk()
329 avail_space = bblock->buf_size - P2ROUNDUP(bblock->file_size, 8); in add_bootblock_einfo()
541 dest_bblock->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE); in propagate_bootblock()
553 P2ROUNDUP(dest_bblock->file_size, 8)); in propagate_bootblock()
736 size = bblock->buf_size - P2ROUNDUP(bblock->file_size, 8) - in handle_getinfo()
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_tnode.c251 delta = P2ROUNDUP(newsize, PAGESIZE) - in tmpnode_trunc()
252 P2ROUNDUP(oldsize, PAGESIZE); in tmpnode_trunc()
284 delta = P2ROUNDUP(oldsize, PAGESIZE) - in tmpnode_trunc()
285 P2ROUNDUP(newsize, PAGESIZE); in tmpnode_trunc()
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c73 buf_size = P2ROUNDUP(sb.st_size + SECTOR_SIZE, SECTOR_SIZE); in add_version()
112 extra = P2ROUNDUP(sb.st_size, 8); in add_version()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_extvnops.c133 pplen = P2ROUNDUP(len, PAGESIZE); in ufs_rdwr_data()
156 pplen = P2ROUNDUP(len, PAGESIZE); in ufs_rdwr_data()
159 contig = P2ROUNDUP(contig, DEV_BSIZE); in ufs_rdwr_data()
349 contig = P2ROUNDUP(contig, DEV_BSIZE); in ufs_alloc_data()
419 int contig = P2ROUNDUP(nbytes, DEV_BSIZE); in ufs_alloc_data()
/illumos-gate/usr/src/uts/common/os/
H A Dbp_map.c107 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE); in bp_mapin_common()
131 P2ROUNDUP(color + size, bp_align), flag); in bp_mapin_common()
215 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE); in bp_mapout()
239 P2ROUNDUP(color + size, bp_align)); in bp_mapout()
H A Dgrow.c169 addr = (caddr_t)P2ROUNDUP((uintptr_t)p->p_bssbase, pgsz); in brk_lpg()
234 caddr_t tnva = (caddr_t)P2ROUNDUP((uintptr_t)nva, pgsz); in brk_internal()
251 nva = (caddr_t)P2ROUNDUP((uintptr_t)nva, pgsz); in brk_internal()
252 ova = (caddr_t)P2ROUNDUP((uintptr_t)(p->p_brkbase + p->p_brksize), in brk_internal()
281 rbss = (caddr_t)P2ROUNDUP((uintptr_t)p->p_bssbase, in brk_internal()
408 addr = (caddr_t)P2ROUNDUP((uintptr_t)saddr, pgsz); in grow_lpg()
H A Dcpu_uarray.c25 size_t size = P2ROUNDUP(nr_items * sizeof (uint64_t), CUA_ALIGN); in cpu_uarray_size()
H A Dvmem.c617 size_t realsize = P2ROUNDUP(size, vmp->vm_quantum); in vmem_seg_alloc()
711 size = P2ROUNDUP(nseg * vmem_seg_size, vmem_seg_arena->vm_quantum); in vmem_populate()
823 size_t realsize = P2ROUNDUP(size, vmp->vm_quantum); in vmem_nextfit_alloc()
959 (align > nocross || P2ROUNDUP(phase + size, align) > nocross)) in vmem_xalloc()
1044 P2ROUNDUP(P2NPHASE(taddr, nocross), align); in vmem_xalloc()
1071 asize = P2ROUNDUP(aneeded, aquantum); in vmem_xalloc()
1128 aneeded = P2ROUNDUP(aneeded, vmp->vm_quantum); in vmem_xalloc()
1221 vsp->vs_end = P2ROUNDUP(vsp->vs_end, vmp->vm_quantum); in vmem_xfree()
/illumos-gate/usr/src/uts/common/sys/
H A Ddumphdr.h53 #define DUMP_ERPTSIZE (P2ROUNDUP( \
58 #define DUMP_SUMMARYSIZE (P2ROUNDUP( \
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c430 size = stage2->buf_size - P2ROUNDUP(stage2->file_size, 8); in handle_getinfo()
604 dest_stage2->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE); in propagate_bootblock()
614 P2ROUNDUP(dest_stage2->file_size, 8); in propagate_bootblock()
974 avail_space = stage2->buf_size - P2ROUNDUP(stage2->file_size, 8); in add_stage2_einfo()
1132 stage2->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE); in read_stage2_from_file()
1150 stage2->extra = stage2->file + P2ROUNDUP(stage2->file_size, 8); in read_stage2_from_file()
1263 buf_size = P2ROUNDUP(size + SECTOR_SIZE, SECTOR_SIZE); in read_stage2_from_disk()
1284 stage2->extra = stage2->buf + P2ROUNDUP(stage2->file_size, 8); in read_stage2_from_disk()
1285 stage2->extra_size = stage2->buf_size - P2ROUNDUP(stage2->file_size, 8); in read_stage2_from_disk()
/illumos-gate/usr/src/uts/sun4u/os/
H A Dmach_startup.c142 P2ROUNDUP((uintptr_t)fpras_chkfngrps_base, 64); in mach_fpras()
511 ret_val = P2ROUNDUP(pmem->ml_address, ecache_size); in ecache_flush_address()
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmemseg.c114 pp = (page_t *)P2ROUNDUP((uint64_t)pp, PAGESIZE); in memseg_alloc_meta()
267 pp = (page_t *)P2ROUNDUP((uint64_t)pp, PAGESIZE); in memseg_remap_meta()
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxen_mmu.c157 sz = P2ROUNDUP(sz, MMU_PAGESIZE); in xen_relocate_start_info()
173 sz = P2ROUNDUP(mfn_count * sizeof (mfn_t), MMU_PAGESIZE); in xen_relocate_start_info()
193 sz2 = P2ROUNDUP(mmu_btop(sz) * sizeof (mfn_t), MMU_PAGESIZE); in xen_relocate_start_info()
/illumos-gate/usr/src/lib/libc/inc/
H A Dsigjmp_struct.h88 ((ucontext_t *)P2ROUNDUP((uintptr_t)(x), sizeof (upad128_t)))
/illumos-gate/usr/src/test/libc-tests/tests/
H A Daligned_alloc.c58 VERIFY3P(mmap((caddr_t)P2ROUNDUP(status.pr_brkbase + in main()
H A Dposix_memalign.c70 VERIFY3P(mmap((caddr_t)P2ROUNDUP(status.pr_brkbase + in main()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmp_pc.c181 ctsize = P2ROUNDUP(sizeof (*ct), PAGESIZE); in mach_cpucontext_alloc_tables()
383 kmem_free(ct, P2ROUNDUP(sizeof (*ct), PAGESIZE)); in mach_cpucontext_xfree()
393 kmem_free(ct, P2ROUNDUP(sizeof (*ct), PAGESIZE)); in mach_cpucontext_xfree()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_ckpt.c50 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) macro
375 P2ROUNDUP((uintptr_t)ckp->ckp_ptr, dp->secd_align); in fmd_ckpt_section()
488 ckp->ckp_size = P2ROUNDUP(ckp->ckp_size, align) + size; in fmd_ckpt_resv()
496 ckp->ckp_size = P2ROUNDUP(ckp->ckp_size, _MAX_ALIGNMENT) + bp->buf_size; in fmd_ckpt_resv_buf()
544 P2ROUNDUP((uintptr_t)ckp->ckp_ptr, sizeof (uint64_t)); in fmd_ckpt_save_nvlist()
602 ckp->ckp_size = P2ROUNDUP(ckp->ckp_size, sizeof (uint64_t)); in fmd_ckpt_resv_case()
611 cip->ci_nvsz = P2ROUNDUP(cip->ci_nvsz, sizeof (uint64_t)); in fmd_ckpt_resv_case()
988 size = P2ROUNDUP(size, sizeof (uint64_t)); in fmd_ckpt_restore_suspects()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dkgrep.c91 lim = P2ROUNDUP(lim, pagesize); in kgrep_range_basic()
141 base = P2ROUNDUP(MAX(base, minaddr), sizeof (uintbits_t)); \
/illumos-gate/usr/src/uts/i86pc/io/xsvc/
H A Dxsvc.c480 size = P2ROUNDUP((size_t)params32.xsvc_mem_size, PAGESIZE); in xsvc_ioctl_alloc_memory()
487 size = P2ROUNDUP(params.xsvc_mem_size, PAGESIZE); in xsvc_ioctl_alloc_memory()
525 mp->xm_dma_attr.dma_attr_align = P2ROUNDUP( in xsvc_ioctl_alloc_memory()
533 mp->xm_dma_attr.dma_attr_align = P2ROUNDUP( in xsvc_ioctl_alloc_memory()
861 psize = P2ROUNDUP(off + len, PAGESIZE) - off_align; in xsvc_devmap()
/illumos-gate/usr/src/uts/common/io/
H A Dsmbios.c88 smb_clones[c].c_eplen = P2ROUNDUP(sizeof (smbios_entry_t), 16); in smb_open()
177 size_t alen = P2ROUNDUP(len, PAGESIZE); in smb_segmap()

12345678