Home
last modified time | relevance | path

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

/freebsd-10-stable/sys/dev/sfxge/common/
Defsys.h90 #ifndef IS_P2ALIGNED
91 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
403 KASSERT(IS_P2ALIGNED(_offset, sizeof (efx_dword_t)), \
422 KASSERT(IS_P2ALIGNED(_offset, sizeof (efx_qword_t)), \
441 KASSERT(IS_P2ALIGNED(_offset, sizeof (efx_qword_t)), \
463 KASSERT(IS_P2ALIGNED(_offset, sizeof (efx_oword_t)), \
485 KASSERT(IS_P2ALIGNED(_offset, sizeof (efx_oword_t)), \
510 KASSERT(IS_P2ALIGNED(_offset, sizeof (efx_dword_t)), \
529 KASSERT(IS_P2ALIGNED(_offset, sizeof (efx_qword_t)), \
549 KASSERT(IS_P2ALIGNED(_offset, sizeof (efx_qword_t)), \
[all …]
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
Darc.h47 ASSERT(IS_P2ALIGNED(x, 1U << SPA_MINBLOCKSHIFT)); \
52 ASSERT(IS_P2ALIGNED((x), 1U << SPA_MINBLOCKSHIFT)); \
Dspa.h89 ASSERT(IS_P2ALIGNED(val, 1U << shift)); \
94 ASSERT(IS_P2ALIGNED(val, 1ULL << shift)); \
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/sys/
Dsysmacros.h218 #define IS_P2ALIGNED(v, a) ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0) macro
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dsa.c571 ASSERT(IS_P2ALIGNED(full_space, 8)); in sa_find_sizes()
724 ASSERT(IS_P2ALIGNED(data_start, 8)); in sa_build_layouts()
725 ASSERT(IS_P2ALIGNED(buf_space, 8)); in sa_build_layouts()
Ddmu_tx.c689 if (!IS_P2ALIGNED(off, 1 << dn->dn_datablkshift)) in dmu_tx_hold_free()
692 if (!IS_P2ALIGNED(off + len, 1 << dn->dn_datablkshift)) in dmu_tx_hold_free()
Ddnode.c1645 ASSERT(IS_P2ALIGNED(off, blksz)); in dnode_free_range()
1646 ASSERT(trunc || IS_P2ALIGNED(len, blksz)); in dnode_free_range()
Dzio.c184 if (arc_watch && !IS_P2ALIGNED(size, PAGESIZE)) in zio_init()
190 } else if (IS_P2ALIGNED(size, p2 >> 2)) { in zio_init()
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/zdb/
Dzdb.c3380 if (!IS_P2ALIGNED(size, DEV_BSIZE)) in zdb_read_block()
3382 if (!IS_P2ALIGNED(offset, DEV_BSIZE)) in zdb_read_block()
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/dtrace/
Ddtrace.c10999 ASSERT(IS_P2ALIGNED(aggbase,
13696 if (!IS_P2ALIGNED(taddr, sizeof (uint64_t))) {
13806 if (!IS_P2ALIGNED(dof->dofh_secoff, sizeof (uint64_t))) {
13811 if (!IS_P2ALIGNED(dof->dofh_secsize, sizeof (uint64_t))) {