Home
last modified time | relevance | path

Searched refs:BF64_SET (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/contrib/openzfs/include/sys/
H A Dddt_impl.h107 #define DLR_SET_TYPE(dlr, v) BF64_SET((dlr)->dlr_info, 0, 8, v)
109 #define DLR_SET_RECLEN(dlr, v) BF64_SET((dlr)->dlr_info, 8, 16, v)
111 #define DLR_SET_ENTRY_TYPE(dlr, v) BF64_SET((dlr)->dlr_info, 48, 8, v)
113 #define DLR_SET_ENTRY_CLASS(dlr, v) BF64_SET((dlr)->dlr_info, 56, 8, v)
143 #define DLH_SET_VERSION(dlh, v) BF64_SET((dlh)->dlh_info, 0, 8, v)
145 #define DLH_SET_FLAGS(dlh, v) BF64_SET((dlh)->dlh_info, 8, 8, v)
H A Dmetaslab_impl.h126 #define WEIGHT_SET_ACTIVE(weight, x) BF64_SET((weight), 61, 3, x)
130 #define WEIGHT_SET_SPACEBASED(weight) BF64_SET((weight), 60, 1, 1)
136 #define WEIGHT_SET_INDEX(weight, x) BF64_SET((weight), 54, 6, x)
138 #define WEIGHT_SET_COUNT(weight, x) BF64_SET((weight), 0, 54, x)
H A Dspa.h330 BF64_SET((bp)->blk_prop, 40, 8, t); \
401 BF64_SET((dva)->dva_word[0], 32, SPA_VDEVBITS, x)
409 #define DVA_SET_GANG(dva, x) BF64_SET((dva)->dva_word[1], 63, 1, x)
433 BF64_SET((bp)->blk_prop, 32, SPA_COMPRESSBITS, x)
436 #define BP_SET_EMBEDDED(bp, x) BF64_SET((bp)->blk_prop, 39, 1, x)
443 BF64_SET((bp)->blk_prop, 40, 8, x); \
447 #define BP_SET_TYPE(bp, x) BF64_SET((bp)->blk_prop, 48, 8, x)
450 #define BP_SET_LEVEL(bp, x) BF64_SET((bp)->blk_prop, 56, 5, x)
454 #define BP_SET_CRYPT(bp, x) BF64_SET((bp)->blk_prop, 61, 1, x)
473 #define BP_SET_DEDUP(bp, x) BF64_SET((bp)->blk_prop, 62, 1, x)
[all …]
H A Dsa_impl.h75 BF64_SET(x, 24, 16, length); \
76 BF64_SET(x, 16, 8, bswap); \
77 BF64_SET(x, 0, 16, attr); \
H A Dbitops.h59 #define BF64_SET(x, low, len, val) do { \ macro
83 BF64_SET(x, low, len, ((val) >> (shift)) - (bias)); \
H A Darc_impl.h355 BF64_SET((field), 32, SPA_COMPRESSBITS, x)
357 #define L2BLK_SET_PREFETCH(field, x) BF64_SET((field), 39, 1, x)
359 #define L2BLK_SET_CHECKSUM(field, x) BF64_SET((field), 40, 8, x)
362 #define L2BLK_SET_TYPE(field, x) BF64_SET((field), 48, 8, (x) + 1)
364 #define L2BLK_SET_PROTECTED(field, x) BF64_SET((field), 56, 1, x)
366 #define L2BLK_SET_STATE(field, x) BF64_SET((field), 57, 4, x)
H A Dddt.h121 #define DDK_SET_COMPRESS(ddk, x) BF64_SET((ddk)->ddk_prop, 32, 7, x)
124 #define DDK_SET_CRYPT(ddk, x) BF64_SET((ddk)->ddk_prop, 39, 1, x)
H A Duberblock_impl.h104 BF64_SET((ub)->ub_raidz_reflow_info, 55, 9, x)
H A Dzfs_ioctl.h102 #define DMU_SET_STREAM_HDRTYPE(vi, x) BF64_SET((vi), 0, 2, x)
105 #define DMU_SET_FEATUREFLAGS(vi, x) BF64_SET((vi), 2, 56, x)
H A Dzil.h204 #define LR_FOID_SET_SLOTS(oid, x) BF64_SET((oid), 56, 8, (x) - 1)
206 #define LR_FOID_SET_OBJ(oid, x) BF64_SET((oid), 0, DN_MAX_OBJECT_SHIFT, (x))
/freebsd/sys/cddl/boot/zfs/
H A Dzfsimpl.h111 #define BF64_SET(x, low, len, val) \ macro
122 BF64_SET(x, low, len, ((val) >> (shift)) - (bias))
298 BF64_SET((bp)->blk_prop, 40, 8, t); \
351 #define DVA_SET_GRID(dva, x) BF64_SET((dva)->dva_word[0], 24, 8, x)
354 #define DVA_SET_VDEV(dva, x) BF64_SET((dva)->dva_word[0], 32, 32, x)
362 #define DVA_SET_GANG(dva, x) BF64_SET((dva)->dva_word[1], 63, 1, x)
380 #define BP_SET_COMPRESS(bp, x) BF64_SET((bp)->blk_prop, 32, 7, x)
383 #define BP_SET_CHECKSUM(bp, x) BF64_SET((bp)->blk_prop, 40, 8, x)
386 #define BP_SET_TYPE(bp, x) BF64_SET((bp)->blk_prop, 48, 8, x)
389 #define BP_SET_LEVEL(bp, x) BF64_SET((bp)->blk_prop, 56, 5, x)
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dblkptr.c74 BF64_SET(w, (i % sizeof (w)) * NBBY, NBBY, data8[i]); in encode_embedded_bp_compressed()