Home
last modified time | relevance | path

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

/freebsd-13.1/sys/contrib/openzfs/include/sys/
H A Dbitops.h76 ASSERT3U(IS_P2ALIGNED(val, 1U << shift), !=, B_FALSE); \
81 ASSERT3U(IS_P2ALIGNED(val, 1ULL << shift), !=, B_FALSE); \
H A Drange_tree.h260 ASSERT(IS_P2ALIGNED(start, 1ULL << rt->rt_shift)); in rs_set_start()
268 ASSERT(IS_P2ALIGNED(end, 1ULL << rt->rt_shift)); in rs_set_end()
275 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.h310 CTASSERT_GLOBAL(IS_P2ALIGNED(sizeof (l2arc_log_blk_phys_t),
/freebsd-13.1/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dsysmacros.h65 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
/freebsd-13.1/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-kmem-cache.c168 ASSERT(IS_P2ALIGNED(ptr, PAGE_SIZE)); in kv_alloc()
176 ASSERT(IS_P2ALIGNED(ptr, PAGE_SIZE)); in kv_free()
290 ASSERT(IS_P2ALIGNED(obj, skc->skc_obj_align)); in spl_slab_alloc()
1285 ASSERT(IS_P2ALIGNED(obj, skc->skc_obj_align)); in spl_kmem_cache_alloc()
/freebsd-13.1/sys/contrib/openzfs/module/zcommon/
H A Dzfs_fletcher.c470 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in fletcher_4_native()
512 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in fletcher_4_byteswap()
861 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in abd_fletcher_4_iter()
/freebsd-13.1/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h159 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
/freebsd-13.1/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h239 #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-13.1/sys/contrib/openzfs/module/icp/algs/aes/
H A Daes_impl.c78 if (IS_P2ALIGNED(cipherKey, sizeof (uint64_t))) { in aes_init_keysched()
/freebsd-13.1/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-13.1/sys/contrib/openzfs/module/zfs/
H A Ddmu_tx.c378 if (!IS_P2ALIGNED(off, 1 << dn->dn_datablkshift)) in dmu_tx_hold_free_impl()
381 if (!IS_P2ALIGNED(off + len, 1 << dn->dn_datablkshift)) in dmu_tx_hold_free_impl()
H A Dsa.c579 ASSERT(IS_P2ALIGNED(full_space, 8)); in sa_find_sizes()
735 ASSERT(IS_P2ALIGNED(data_start, 8)); in sa_build_layouts()
H A Ddnode.c2183 ASSERT(IS_P2ALIGNED(off, blksz)); in dnode_free_range()
2184 ASSERT(trunc || IS_P2ALIGNED(len, blksz)); in dnode_free_range()
H A Dvdev_indirect.c1144 IS_P2ALIGNED(inner_size, 2 * SPA_MINBLOCKSIZE)) { in vdev_indirect_remap()
H A Dzio.c188 if (arc_watch && !IS_P2ALIGNED(size, PAGESIZE)) in zio_init()
201 } else if (IS_P2ALIGNED(size, p2 >> 2)) { in zio_init()
/freebsd-13.1/sys/contrib/openzfs/module/icp/io/
H A Dsha1_mod.c65 if (IS_P2ALIGNED((m)->cm_param, sizeof (ulong_t))) \
H A Dsha2_mod.c64 if (IS_P2ALIGNED((m)->cm_param, sizeof (ulong_t))) \
H A Daes.c378 if (IS_P2ALIGNED(in, sizeof (uint64_t))) { in aes_copy_block64()
/freebsd-13.1/sys/contrib/openzfs/module/icp/algs/sha2/
H A Dsha2.c624 if (IS_P2ALIGNED(output, sizeof (uint32_t))) { in Encode()
649 if (IS_P2ALIGNED(output, sizeof (uint64_t))) { in Encode64()
/freebsd-13.1/sys/contrib/openzfs/module/icp/algs/sha1/
H A Dsha1.c818 if (IS_P2ALIGNED(output, sizeof (uint32_t))) {
/freebsd-13.1/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c7991 if (!IS_P2ALIGNED(psize, DEV_BSIZE) || !IS_P2ALIGNED(lsize, DEV_BSIZE)) in zdb_read_block()
7993 if (!IS_P2ALIGNED(offset, DEV_BSIZE)) in zdb_read_block()
/freebsd-13.1/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Ddtrace.c11243 ASSERT(IS_P2ALIGNED(aggbase,
14062 if (!IS_P2ALIGNED(taddr, sizeof (uint64_t))) {
14176 if (!IS_P2ALIGNED(dof->dofh_secoff, sizeof (uint64_t))) {
14181 if (!IS_P2ALIGNED(dof->dofh_secsize, sizeof (uint64_t))) {
/freebsd-13.1/sys/contrib/openzfs/cmd/ztest/
H A Dztest.c1840 ASSERT(IS_P2ALIGNED((char *)end - (char *)db->db_data, 8)); in ztest_fill_unused_bonus()