Home
last modified time | relevance | path

Searched refs:P2ALIGN (Results 1 – 25 of 82) sorted by path

1234

/illumos-gate/usr/src/boot/libsa/zfs/
H A Dzfsimpl.c2037 vtmp.v_psize = P2ALIGN(ldi_get_size(priv), in vdev_probe()
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfsimpl.h88 #define P2ALIGN(x, align) ((x) & -(align)) macro
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dkgrep.c90 base = P2ALIGN(base, pagesize); in kgrep_range_basic()
/illumos-gate/usr/src/cmd/ptools/pmap/
H A Dpmap.c60 #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 Dzdb.c3256 psize = P2ALIGN(psize, (uint64_t)sizeof (vdev_label_t)); in dump_label()
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c2132 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 Dzfs_fletcher.c476 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 Dfsys_zfs.c1648 adjpl = P2ALIGN(adjpl, (uint64_t)sizeof (vdev_label_t)); in zfs_mount()
H A Dfsys_zfs.h121 #define P2ALIGN(x, align) ((x) & -(align)) macro
/illumos-gate/usr/src/lib/libumem/amd64/
H A Dumem_genasm.c573 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 Dumem.c658 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 Dumem_impl.h136 (P2ALIGN((PAGESIZE - sizeof (umem_slab_t))/2 - \
H A Dvmem.c882 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 Dvmem_stand.c93 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 Dumem_genasm.c563 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 Ddoor_sys.c1101 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 Dlufs_thread.c160 if (P2ALIGN(rbp->rb_bh.b_blkno, in log_roll_read()
H A Dufs_inode.c986 (caddr_t)P2ALIGN((uintptr_t)dp, DEV_BSIZE), in ufs_iupdat()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dbtree.c185 tree->bt_leaf_cap = P2ALIGN(BTREE_LEAF_ESIZE / size, 2); in zfs_btree_create()
H A Ddmu.c572 P2ALIGN(offset, 1ULL << blkshift)) >> blkshift; in dmu_buf_hold_array_by_dnode()
813 *start = P2ALIGN(*start, iblkrange); in get_next_chunk()
H A Ddmu_object.c148 P2ALIGN(object, dnodes_per_chunk) + in dmu_object_alloc_impl()
H A Dmetaslab.c594 space += P2ALIGN(tspace, 1ULL << tvd->vdev_ms_shift); in metaslab_class_expandable_space()
H A Dvdev.c272 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 Dvdev_cache.c158 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 Dzfs_vnops.c694 nblk = (P2ROUNDUP(offset + n, blksz) - P2ALIGN(offset, in zfs_read()
4652 koff = ISP2(klen) ? P2ALIGN(off, (u_offset_t)klen) : 0; in zfs_putapage()

1234