Lines Matching refs:bp

198 #define	BP_GET_LSIZE(bp)	\  argument
199 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1)
200 #define BP_SET_LSIZE(bp, x) \ argument
201 BF64_SET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x)
203 #define BP_GET_PSIZE(bp) \ argument
204 BF64_GET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1)
205 #define BP_SET_PSIZE(bp, x) \ argument
206 BF64_SET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1, x)
208 #define BP_GET_COMPRESS(bp) \ argument
209 BF64_GET((bp)->blk_prop, 32, SPA_COMPRESSBITS)
210 #define BP_SET_COMPRESS(bp, x) \ argument
211 BF64_SET((bp)->blk_prop, 32, SPA_COMPRESSBITS, x)
213 #define BP_GET_CHECKSUM(bp) BF64_GET((bp)->blk_prop, 40, 8) argument
214 #define BP_SET_CHECKSUM(bp, x) BF64_SET((bp)->blk_prop, 40, 8, x) argument
216 #define BP_GET_TYPE(bp) BF64_GET((bp)->blk_prop, 48, 8) argument
217 #define BP_SET_TYPE(bp, x) BF64_SET((bp)->blk_prop, 48, 8, x) argument
219 #define BP_GET_LEVEL(bp) BF64_GET((bp)->blk_prop, 56, 5) argument
220 #define BP_SET_LEVEL(bp, x) BF64_SET((bp)->blk_prop, 56, 5, x) argument
222 #define BP_IS_EMBEDDED(bp) BF64_GET((bp)->blk_prop, 39, 1) argument
224 #define BP_GET_DEDUP(bp) BF64_GET((bp)->blk_prop, 62, 1) argument
225 #define BP_SET_DEDUP(bp, x) BF64_SET((bp)->blk_prop, 62, 1, x) argument
227 #define BP_GET_BYTEORDER(bp) BF64_GET((bp)->blk_prop, 63, 1) argument
228 #define BP_SET_BYTEORDER(bp, x) BF64_SET((bp)->blk_prop, 63, 1, x) argument
230 #define BP_PHYSICAL_BIRTH(bp) \ argument
231 ((bp)->blk_phys_birth ? (bp)->blk_phys_birth : (bp)->blk_birth)
233 #define BP_SET_BIRTH(bp, logical, physical) \ argument
235 (bp)->blk_birth = (logical); \
236 (bp)->blk_phys_birth = ((logical) == (physical) ? 0 : (physical)); \
239 #define BP_GET_ASIZE(bp) \ argument
240 (DVA_GET_ASIZE(&(bp)->blk_dva[0]) + DVA_GET_ASIZE(&(bp)->blk_dva[1]) + \
241 DVA_GET_ASIZE(&(bp)->blk_dva[2]))
243 #define BP_GET_UCSIZE(bp) \ argument
244 ((BP_GET_LEVEL(bp) > 0 || dmu_ot[BP_GET_TYPE(bp)].ot_metadata) ? \
245 BP_GET_PSIZE(bp) : BP_GET_LSIZE(bp));
247 #define BP_GET_NDVAS(bp) \ argument
248 (!!DVA_GET_ASIZE(&(bp)->blk_dva[0]) + \
249 !!DVA_GET_ASIZE(&(bp)->blk_dva[1]) + \
250 !!DVA_GET_ASIZE(&(bp)->blk_dva[2]))
278 #define BP_IDENTITY(bp) (&(bp)->blk_dva[0]) argument
279 #define BP_IS_GANG(bp) DVA_GET_GANG(BP_IDENTITY(bp)) argument
282 #define BP_IS_HOLE(bp) DVA_IS_EMPTY(BP_IDENTITY(bp)) argument
285 #define BP_IS_RAIDZ(bp) (DVA_GET_ASIZE(&(bp)->blk_dva[0]) > \ argument
286 BP_GET_PSIZE(bp))
288 #define BP_ZERO(bp) \ argument
290 (bp)->blk_dva[0].dva_word[0] = 0; \
291 (bp)->blk_dva[0].dva_word[1] = 0; \
292 (bp)->blk_dva[1].dva_word[0] = 0; \
293 (bp)->blk_dva[1].dva_word[1] = 0; \
294 (bp)->blk_dva[2].dva_word[0] = 0; \
295 (bp)->blk_dva[2].dva_word[1] = 0; \
296 (bp)->blk_prop = 0; \
297 (bp)->blk_pad[0] = 0; \
298 (bp)->blk_pad[1] = 0; \
299 (bp)->blk_phys_birth = 0; \
300 (bp)->blk_birth = 0; \
301 (bp)->blk_fill = 0; \
302 ZIO_SET_CHECKSUM(&(bp)->blk_cksum, 0, 0, 0, 0); \
305 #define BPE_GET_ETYPE(bp) BP_GET_CHECKSUM(bp) argument
306 #define BPE_GET_LSIZE(bp) \ argument
307 BF64_GET_SB((bp)->blk_prop, 0, 25, 0, 1)
308 #define BPE_GET_PSIZE(bp) \ argument
309 BF64_GET_SB((bp)->blk_prop, 25, 7, 0, 1)
318 #define BPE_IS_PAYLOADWORD(bp, wp) \ argument
319 ((wp) != &(bp)->blk_prop && (wp) != &(bp)->blk_birth)
327 #define BP_SHOULD_BYTESWAP(bp) (BP_GET_BYTEORDER(bp) != ZFS_HOST_BYTEORDER) argument