Home
last modified time | relevance | path

Searched refs:IS_P2ALIGNED (Results 1 – 22 of 22) sorted by relevance

/freebsd-14.2/sys/contrib/openzfs/include/sys/
H A Dbitops.h75 ASSERT3U(IS_P2ALIGNED(val, 1U << shift), !=, B_FALSE); \
80 ASSERT3U(IS_P2ALIGNED(val, 1ULL << shift), !=, B_FALSE); \
H A Drange_tree.h256 ASSERT(IS_P2ALIGNED(start, 1ULL << rt->rt_shift)); in rs_set_start()
264 ASSERT(IS_P2ALIGNED(end, 1ULL << rt->rt_shift)); in rs_set_end()
271 ASSERT(IS_P2ALIGNED(fill, 1ULL << rt->rt_shift)); in rs_set_fill()
H A Darc.h57 ASSERT(IS_P2ALIGNED(x, 1U << SPA_MINBLOCKSHIFT)); \
62 ASSERT(IS_P2ALIGNED((x), 1U << SPA_MINBLOCKSHIFT)); \
H A Darc_impl.h318 _Static_assert(IS_P2ALIGNED(sizeof (l2arc_log_blk_phys_t),
/freebsd-14.2/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dsysmacros.h66 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
/freebsd-14.2/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h148 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
H A Dsysmacros.h169 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
/freebsd-14.2/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-kmem-cache.c150 ASSERT(IS_P2ALIGNED(ptr, PAGE_SIZE)); in kv_alloc()
158 ASSERT(IS_P2ALIGNED(ptr, PAGE_SIZE)); in kv_free()
275 ASSERT(IS_P2ALIGNED(obj, skc->skc_obj_align)); in spl_slab_alloc()
1276 ASSERT(IS_P2ALIGNED(obj, skc->skc_obj_align)); in spl_kmem_cache_alloc()
/freebsd-14.2/sys/contrib/openzfs/module/zcommon/
H A Dzfs_fletcher.c477 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in fletcher_4_native()
526 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in fletcher_4_byteswap()
885 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in abd_fletcher_4_iter()
/freebsd-14.2/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h169 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
/freebsd-14.2/sys/contrib/openzfs/module/icp/algs/aes/
H A Daes_impl.c78 if (IS_P2ALIGNED(cipherKey, sizeof (uint64_t))) { in aes_init_keysched()
/freebsd-14.2/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dsysmacros.h222 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
/freebsd-14.2/sys/contrib/openzfs/module/zfs/
H A Ddmu_tx.c464 if (!IS_P2ALIGNED(off, 1 << dn->dn_datablkshift)) in dmu_tx_count_free()
467 if (!IS_P2ALIGNED(off + len, 1 << dn->dn_datablkshift)) in dmu_tx_count_free()
H A Dsa.c578 ASSERT(IS_P2ALIGNED(full_space, 8)); in sa_find_sizes()
734 ASSERT(IS_P2ALIGNED(data_start, 8)); in sa_build_layouts()
H A Ddnode.c2301 ASSERT(IS_P2ALIGNED(off, blksz)); in dnode_free_range()
2302 ASSERT(trunc || IS_P2ALIGNED(len, blksz)); in dnode_free_range()
H A Dvdev_indirect.c1143 IS_P2ALIGNED(inner_size, 2 * SPA_MINBLOCKSIZE)) { in vdev_indirect_remap()
H A Dzio.c186 if (arc_watch && !IS_P2ALIGNED(size, PAGESIZE)) in zio_init()
199 } else if (IS_P2ALIGNED(size, p2 >> 2)) { in zio_init()
/freebsd-14.2/sys/contrib/openzfs/module/icp/io/
H A Dsha2_mod.c44 if (IS_P2ALIGNED((m)->cm_param, sizeof (ulong_t))) \
H A Daes.c288 if (IS_P2ALIGNED(in, sizeof (uint64_t))) { in aes_copy_block64()
/freebsd-14.2/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c8673 if (!IS_P2ALIGNED(psize, DEV_BSIZE) || !IS_P2ALIGNED(lsize, DEV_BSIZE)) in zdb_read_block()
8675 if (!IS_P2ALIGNED(offset, DEV_BSIZE)) in zdb_read_block()
/freebsd-14.2/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Ddtrace.c11252 ASSERT(IS_P2ALIGNED(aggbase,
14071 if (!IS_P2ALIGNED(taddr, sizeof (uint64_t))) {
14185 if (!IS_P2ALIGNED(dof->dofh_secoff, sizeof (uint64_t))) {
14190 if (!IS_P2ALIGNED(dof->dofh_secsize, sizeof (uint64_t))) {
/freebsd-14.2/sys/contrib/openzfs/cmd/
H A Dztest.c1825 ASSERT(IS_P2ALIGNED((char *)end - (char *)db->db_data, 8)); in ztest_fill_unused_bonus()