Home
last modified time | relevance | path

Searched refs:P2ALIGN (Results 1 – 17 of 17) sorted by relevance

/f-stack/freebsd/contrib/openzfs/module/zfs/
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()
336 uint64_t min_offset = P2ALIGN(io_start, VCBS); in vdev_cache_write()
H A Dbtree.c687 uint64_t capacity __maybe_unused = P2ALIGN((BTREE_LEAF_SIZE - in zfs_btree_insert_leaf_impl()
708 uint64_t capacity = P2ALIGN((BTREE_LEAF_SIZE - in zfs_btree_insert_into_leaf()
825 uint64_t capacity = P2ALIGN((BTREE_LEAF_SIZE - in zfs_btree_bulk_finish()
1550 uint64_t capacity = P2ALIGN((BTREE_LEAF_SIZE - in zfs_btree_remove_idx()
1902 uint64_t capacity = P2ALIGN((BTREE_LEAF_SIZE - in zfs_btree_verify_counts_helper()
H A Ddmu_object.c163 P2ALIGN(object, dnodes_per_chunk) + in dmu_object_alloc_impl()
H A Ddmu.c519 P2ALIGN(offset, 1ULL << blkshift)) >> blkshift; in dmu_buf_hold_array_by_dnode()
780 *start = P2ALIGN(*start, iblkrange); in get_next_chunk()
H A Dvdev.c301 return (P2ALIGN(vd->vdev_asize, 1ULL << vd->vdev_ms_shift)); in vdev_get_min_asize()
1886 osize = P2ALIGN(osize, (uint64_t)sizeof (vdev_label_t)); in vdev_open()
1887 max_osize = P2ALIGN(max_osize, (uint64_t)sizeof (vdev_label_t)); in vdev_open()
4243 vs->vs_esize = P2ALIGN( in vdev_get_stats_ex()
H A Dmetaslab.c626 space += P2ALIGN(tvd->vdev_max_asize - tvd->vdev_asize, in metaslab_class_expandable_space()
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dsysmacros.h55 #define P2ALIGN(x, align) ((x) & -(align)) macro
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h153 #define P2ALIGN(x, align) ((x) & -(align)) macro
/f-stack/freebsd/contrib/openzfs/module/zcommon/
H A Dzfs_fletcher.c468 const uint64_t p2size = P2ALIGN(size, FLETCHER_MIN_SIMD_SIZE); in fletcher_4_native()
510 const uint64_t p2size = P2ALIGN(size, FLETCHER_MIN_SIMD_SIZE); in fletcher_4_byteswap()
859 uint64_t asize = P2ALIGN(size, FLETCHER_MIN_SIMD_SIZE); in abd_fletcher_4_iter()
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h236 #define P2ALIGN(x, align) ((x) & -(align)) macro
H A Dsysmacros.h194 #define P2ALIGN(x, align) ((x) & -(align)) macro
/f-stack/freebsd/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_pool_os.c274 slice_size = P2ALIGN(slice_size, PARTITION_END_ALIGNMENT); in zpool_label_disk()
/f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/
H A Dzvol_os.c208 end = P2ALIGN(end, zv->zv_volblocksize); in zvol_discard()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c456 psize = P2ALIGN(psize, (uint64_t)sizeof (vdev_label_t)); in vdev_geom_read_config()
/f-stack/freebsd/contrib/openzfs/lib/libefi/
H A Drdwr_efi.c1224 limit = P2ALIGN(efi_label->efi_last_lba - nblocks - EFI_MIN_RESV_SIZE, in efi_use_whole_disk()
/f-stack/freebsd/contrib/openzfs/cmd/ztest/
H A Dztest.c2327 offset = P2ALIGN(offset, size); in ztest_get_data()
4514 os->os_obj_next_chunk = P2ALIGN(object, dnodes_per_chunk); in ztest_dmu_object_next_chunk()
6122 uint64_t psize = P2ALIGN(fsize, sizeof (vdev_label_t)); in ztest_fault_inject()
6346 inc += P2ALIGN(ztest_random(64), in ztest_fletcher_incr()
/f-stack/freebsd/contrib/openzfs/cmd/zdb/
H A Dzdb.c4648 psize = P2ALIGN(psize, (uint64_t)sizeof (vdev_label_t)); in dump_label()