Lines Matching refs:dva
154 typedef struct dva { struct
344 #define DVA_GET_ASIZE(dva) \ argument
345 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
346 #define DVA_SET_ASIZE(dva, x) \ argument
347 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
350 #define DVA_GET_GRID(dva) BF64_GET((dva)->dva_word[0], 24, 8) argument
351 #define DVA_SET_GRID(dva, x) BF64_SET((dva)->dva_word[0], 24, 8, x) argument
353 #define DVA_GET_VDEV(dva) BF64_GET((dva)->dva_word[0], 32, 32) argument
354 #define DVA_SET_VDEV(dva, x) BF64_SET((dva)->dva_word[0], 32, 32, x) argument
356 #define DVA_GET_OFFSET(dva) \ argument
357 BF64_GET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0)
358 #define DVA_SET_OFFSET(dva, x) \ argument
359 BF64_SET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0, x)
361 #define DVA_GET_GANG(dva) BF64_GET((dva)->dva_word[1], 63, 1) argument
362 #define DVA_SET_GANG(dva, x) BF64_SET((dva)->dva_word[1], 63, 1, x) argument
441 #define DVA_IS_VALID(dva) (DVA_GET_ASIZE(dva) != 0) argument
453 #define DVA_IS_EMPTY(dva) ((dva)->dva_word[0] == 0ULL && \ argument
454 (dva)->dva_word[1] == 0ULL)