/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | zfsimpl.c | 2037 vtmp.v_psize = P2ALIGN(ldi_get_size(priv), in vdev_probe()
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | zfsimpl.h | 88 #define P2ALIGN(x, align) ((x) & -(align)) macro
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kgrep.c | 90 base = P2ALIGN(base, pagesize); in kgrep_range_basic()
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 60 #define P2ALIGN(x, align) ((x) & -(align)) macro 1365 (end < P2ALIGN(start_addr, psz))) in address_in_range() 1370 (start > P2ALIGN(end_addr + psz, psz))) in address_in_range() 1404 from = P2ALIGN(start_addr, psz); in adjust_addr_range() 1438 P2ALIGN(end_addr + psz, psz); in adjust_addr_range()
|
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 3256 psize = P2ALIGN(psize, (uint64_t)sizeof (vdev_label_t)); in dump_label()
|
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 2132 offset = P2ALIGN(offset, size); in ztest_get_data() 4182 os->os_obj_next_chunk = P2ALIGN(object, dnodes_per_chunk); in ztest_dmu_object_next_chunk() 5456 inc += P2ALIGN(ztest_random(64), in ztest_fletcher_incr() 5875 uint64_t psize = P2ALIGN(fsize, sizeof (vdev_label_t)); in ztest_fault_inject()
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_fletcher.c | 476 const uint64_t p2size = P2ALIGN(size, FLETCHER_MIN_SIMD_SIZE); in fletcher_4_native() 524 const uint64_t p2size = P2ALIGN(size, FLETCHER_MIN_SIMD_SIZE); in fletcher_4_byteswap() 846 uint64_t asize = P2ALIGN(size, FLETCHER_MIN_SIMD_SIZE); in abd_fletcher_4_iter()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 1648 adjpl = P2ALIGN(adjpl, (uint64_t)sizeof (vdev_label_t)); in zfs_mount()
|
H A D | fsys_zfs.h | 121 #define P2ALIGN(x, align) ((x) & -(align)) macro
|
/illumos-gate/usr/src/lib/libumem/amd64/ |
H A D | umem_genasm.c | 573 mpbase = P2ALIGN((uintptr_t)umem_genasm_mptr, pagesize); in umem_genasm() 575 fpbase = P2ALIGN((uintptr_t)umem_genasm_mptr, pagesize); in umem_genasm() 581 if (P2ALIGN(umem_genasm_msize + (uintptr_t)umem_genasm_mptr, in umem_genasm() 586 if (P2ALIGN(umem_genasm_fsize + (uintptr_t)umem_genasm_fptr, in umem_genasm()
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | umem.c | 658 P2ALIGN(8192 / 7, 64), 659 P2ALIGN(8192 / 6, 64), 660 P2ALIGN(8192 / 5, 64), 661 P2ALIGN(8192 / 4, 64), 2304, 662 P2ALIGN(8192 / 3, 64), 663 P2ALIGN(8192 / 2, 64), 4544, 664 P2ALIGN(8192 / 1, 64), 9216, 1505 void *slab = (void *)P2ALIGN((uintptr_t)sp->slab_base, vmp->vm_quantum); in umem_slab_destroy()
|
H A D | umem_impl.h | 136 (P2ALIGN((PAGESIZE - sizeof (umem_slab_t))/2 - \
|
H A D | vmem.c | 882 flist = lowbit(P2ALIGN(vmp->vm_freemap, size)); in vmem_xalloc() 889 flist = lowbit(P2ALIGN(vmp->vm_freemap, 1UL << hb)); in vmem_xalloc() 907 flist = lowbit(P2ALIGN(vmp->vm_freemap, in vmem_xalloc() 1104 flist = lowbit(P2ALIGN(vmp->vm_freemap, size)); in vmem_alloc() 1106 flist = lowbit(P2ALIGN(vmp->vm_freemap, 1UL << hb)); in vmem_alloc()
|
H A D | vmem_stand.c | 93 sr->sr_left = P2ALIGN(len - (size_t)(sr->sr_curtop - sr->sr_base), in vmem_stand_add()
|
/illumos-gate/usr/src/lib/libumem/i386/ |
H A D | umem_genasm.c | 563 mpbase = P2ALIGN((uintptr_t)umem_genasm_mptr, pagesize); in umem_genasm() 565 fpbase = P2ALIGN((uintptr_t)umem_genasm_mptr, pagesize); in umem_genasm() 571 if (P2ALIGN(umem_genasm_msize + (uintptr_t)umem_genasm_mptr, in umem_genasm() 576 if (P2ALIGN(umem_genasm_fsize + (uintptr_t)umem_genasm_fptr, in umem_genasm()
|
/illumos-gate/usr/src/uts/common/fs/doorfs/ |
H A D | door_sys.c | 1101 start = P2ALIGN(end - 1, pgsize); in door_stack_copyout() 1102 if (P2ALIGN(ubase, pgsize) == start) in door_stack_copyout() 1182 descp = P2ALIGN(base_sp - descsz, align); in door_layout() 1183 datap = P2ALIGN(descp - data_size, align); in door_layout() 1186 infop = P2ALIGN(datap - sizeof (door_info_t), align); in door_layout() 1190 resultsp = P2ALIGN(infop - results_sz, align); in door_layout() 2517 start = P2ALIGN(end - 1, PAGESIZE); in door_args() 2523 if (P2ALIGN(base, PAGESIZE) == start) in door_args()
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | lufs_thread.c | 160 if (P2ALIGN(rbp->rb_bh.b_blkno, in log_roll_read()
|
H A D | ufs_inode.c | 986 (caddr_t)P2ALIGN((uintptr_t)dp, DEV_BSIZE), in ufs_iupdat()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | btree.c | 185 tree->bt_leaf_cap = P2ALIGN(BTREE_LEAF_ESIZE / size, 2); in zfs_btree_create()
|
H A D | dmu.c | 572 P2ALIGN(offset, 1ULL << blkshift)) >> blkshift; in dmu_buf_hold_array_by_dnode() 813 *start = P2ALIGN(*start, iblkrange); in get_next_chunk()
|
H A D | dmu_object.c | 148 P2ALIGN(object, dnodes_per_chunk) + in dmu_object_alloc_impl()
|
H A D | metaslab.c | 594 space += P2ALIGN(tspace, 1ULL << tvd->vdev_ms_shift); in metaslab_class_expandable_space()
|
H A D | vdev.c | 272 return (P2ALIGN(vd->vdev_asize, 1ULL << vd->vdev_ms_shift)); in vdev_get_min_asize() 1666 osize = P2ALIGN(osize, (uint64_t)sizeof (vdev_label_t)); in vdev_open() 1667 max_osize = P2ALIGN(max_osize, (uint64_t)sizeof (vdev_label_t)); in vdev_open() 3838 vs->vs_esize = P2ALIGN( in vdev_get_stats_ex()
|
H A D | vdev_cache.c | 158 uint64_t offset = P2ALIGN(zio->io_offset, VCBS); in vdev_cache_allocate() 255 uint64_t cache_offset = P2ALIGN(zio->io_offset, VCBS); in vdev_cache_read() 334 uint64_t min_offset = P2ALIGN(io_start, VCBS); in vdev_cache_write()
|
H A D | zfs_vnops.c | 694 nblk = (P2ROUNDUP(offset + n, blksz) - P2ALIGN(offset, in zfs_read() 4652 koff = ISP2(klen) ? P2ALIGN(off, (u_offset_t)klen) : 0; in zfs_putapage()
|