| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | bitops.h | 76 ASSERT3U(IS_P2ALIGNED(val, 1U << shift), !=, B_FALSE); \ 81 ASSERT3U(IS_P2ALIGNED(val, 1ULL << shift), !=, B_FALSE); \
|
| H A D | range_tree.h | 260 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 D | arc.h | 50 ASSERT(IS_P2ALIGNED(x, 1U << SPA_MINBLOCKSHIFT)); \ 55 ASSERT(IS_P2ALIGNED((x), 1U << SPA_MINBLOCKSHIFT)); \
|
| H A D | arc_impl.h | 311 CTASSERT_GLOBAL(IS_P2ALIGNED(sizeof (l2arc_log_blk_phys_t),
|
| /f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/linux/sys/ |
| H A D | sysmacros.h | 65 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
|
| /f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | sysmacros.h | 159 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
|
| /f-stack/freebsd/contrib/openzfs/module/zcommon/ |
| H A D | zfs_fletcher.c | 470 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()
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/spl/ |
| H A D | spl-kmem-cache.c | 171 ASSERT(IS_P2ALIGNED(ptr, PAGE_SIZE)); in kv_alloc() 179 ASSERT(IS_P2ALIGNED(ptr, PAGE_SIZE)); in kv_free() 293 ASSERT(IS_P2ALIGNED(obj, skc->skc_obj_align)); in spl_slab_alloc() 1290 ASSERT(IS_P2ALIGNED(obj, skc->skc_obj_align)); in spl_kmem_cache_alloc()
|
| /f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | ccompile.h | 242 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
|
| H A D | sysmacros.h | 169 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
|
| /f-stack/freebsd/contrib/openzfs/module/icp/algs/aes/ |
| H A D | aes_impl.c | 78 if (IS_P2ALIGNED(cipherKey, sizeof (uint64_t))) { in aes_init_keysched()
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | dmu_tx.c | 378 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 D | sa.c | 579 ASSERT(IS_P2ALIGNED(full_space, 8)); in sa_find_sizes() 735 ASSERT(IS_P2ALIGNED(data_start, 8)); in sa_build_layouts()
|
| H A D | dnode.c | 2170 ASSERT(IS_P2ALIGNED(off, blksz)); in dnode_free_range() 2171 ASSERT(trunc || IS_P2ALIGNED(len, blksz)); in dnode_free_range()
|
| H A D | vdev_indirect.c | 1146 IS_P2ALIGNED(inner_size, 2 * SPA_MINBLOCKSIZE)) { in vdev_indirect_remap()
|
| H A D | zio.c | 187 if (arc_watch && !IS_P2ALIGNED(size, PAGESIZE)) in zio_init() 200 } else if (IS_P2ALIGNED(size, p2 >> 2)) { in zio_init()
|
| /f-stack/freebsd/contrib/openzfs/module/icp/io/ |
| H A D | sha1_mod.c | 65 if (IS_P2ALIGNED((m)->cm_param, sizeof (ulong_t))) \
|
| H A D | sha2_mod.c | 64 if (IS_P2ALIGNED((m)->cm_param, sizeof (ulong_t))) \
|
| H A D | aes.c | 378 if (IS_P2ALIGNED(in, sizeof (uint64_t))) { in aes_copy_block64()
|
| /f-stack/freebsd/contrib/openzfs/module/icp/algs/sha2/ |
| H A D | sha2.c | 624 if (IS_P2ALIGNED(output, sizeof (uint32_t))) { in Encode() 649 if (IS_P2ALIGNED(output, sizeof (uint64_t))) { in Encode64()
|
| /f-stack/freebsd/contrib/openzfs/module/icp/algs/sha1/ |
| H A D | sha1.c | 818 if (IS_P2ALIGNED(output, sizeof (uint32_t))) {
|
| /f-stack/freebsd/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 7859 if (!IS_P2ALIGNED(psize, DEV_BSIZE) || !IS_P2ALIGNED(lsize, DEV_BSIZE)) in zdb_read_block() 7861 if (!IS_P2ALIGNED(offset, DEV_BSIZE)) in zdb_read_block()
|
| /f-stack/freebsd/contrib/openzfs/cmd/ztest/ |
| H A D | ztest.c | 1706 ASSERT(IS_P2ALIGNED((char *)end - (char *)db->db_data, 8)); in ztest_fill_unused_bonus()
|