Home
last modified time | relevance | path

Searched refs:blk_dva (Results 1 – 23 of 23) sorted by relevance

/freebsd/sys/contrib/openzfs/lib/libzdb/
H A Dlibzdb.c74 l_dva0_vdev = DVA_GET_VDEV(&l->blk_dva[0]); in livelist_compare()
75 r_dva0_vdev = DVA_GET_VDEV(&r->blk_dva[0]); in livelist_compare()
84 l_dva0_offset = DVA_GET_OFFSET(&l->blk_dva[0]); in livelist_compare()
85 r_dva0_offset = DVA_GET_OFFSET(&r->blk_dva[0]); in livelist_compare()
/freebsd/sys/contrib/openzfs/include/sys/
H A Dspa.h372 dva_t blk_dva[SPA_DVAS_PER_BP]; /* Data Virtual Addresses */ member
522 DVA_GET_ASIZE(&(bp)->blk_dva[0]) + \
523 DVA_GET_ASIZE(&(bp)->blk_dva[1]) + \
524 (DVA_GET_ASIZE(&(bp)->blk_dva[2]) * !BP_IS_ENCRYPTED(bp)))
531 !!DVA_GET_ASIZE(&(bp)->blk_dva[0]) + \
532 !!DVA_GET_ASIZE(&(bp)->blk_dva[1]) + \
533 (!!DVA_GET_ASIZE(&(bp)->blk_dva[2]) * !BP_IS_ENCRYPTED(bp)))
537 (DVA_GET_GANG(&(bp)->blk_dva[0]) + \
538 DVA_GET_GANG(&(bp)->blk_dva[1]) + \
539 (DVA_GET_GANG(&(bp)->blk_dva[2]) * !BP_IS_ENCRYPTED(bp))))
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_arc.h235 __entry->bp_dva0[0] = bp->blk_dva[0].dva_word[0];
236 __entry->bp_dva0[1] = bp->blk_dva[0].dva_word[1];
237 __entry->bp_dva1[0] = bp->blk_dva[1].dva_word[0];
238 __entry->bp_dva1[1] = bp->blk_dva[1].dva_word[1];
239 __entry->bp_dva2[0] = bp->blk_dva[2].dva_word[0];
240 __entry->bp_dva2[1] = bp->blk_dva[2].dva_word[1];
/freebsd/sys/cddl/boot/zfs/
H A Dzfsimpl.h332 dva_t blk_dva[SPA_DVAS_PER_BP]; /* Data Virtual Addresses */ member
418 (DVA_GET_ASIZE(&(bp)->blk_dva[0]) + DVA_GET_ASIZE(&(bp)->blk_dva[1]) + \
419 DVA_GET_ASIZE(&(bp)->blk_dva[2]))
426 (!!DVA_GET_ASIZE(&(bp)->blk_dva[0]) + \
427 !!DVA_GET_ASIZE(&(bp)->blk_dva[1]) + \
428 !!DVA_GET_ASIZE(&(bp)->blk_dva[2]))
451 #define BP_IDENTITY(bp) (&(bp)->blk_dva[0])
460 (bp)->blk_dva[0].dva_word[0] = 0; \
461 (bp)->blk_dva[0].dva_word[1] = 0; \
462 (bp)->blk_dva[1].dva_word[0] = 0; \
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c675 memcpy(&bp->blk_dva[2].dva_word[0], salt, sizeof (uint64_t)); in zio_crypt_encode_params_bp()
676 memcpy(&bp->blk_dva[2].dva_word[1], iv, sizeof (uint64_t)); in zio_crypt_encode_params_bp()
681 bp->blk_dva[2].dva_word[0] = BSWAP_64(val64); in zio_crypt_encode_params_bp()
684 bp->blk_dva[2].dva_word[1] = BSWAP_64(val64); in zio_crypt_encode_params_bp()
707 memcpy(salt, &bp->blk_dva[2].dva_word[0], sizeof (uint64_t)); in zio_crypt_decode_params_bp()
708 memcpy(iv, &bp->blk_dva[2].dva_word[1], sizeof (uint64_t)); in zio_crypt_decode_params_bp()
713 val64 = BSWAP_64(bp->blk_dva[2].dva_word[0]); in zio_crypt_decode_params_bp()
716 val64 = BSWAP_64(bp->blk_dva[2].dva_word[1]); in zio_crypt_decode_params_bp()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_rebuild.c531 DVA_SET_VDEV(&bp->blk_dva[0], vd->vdev_id); in vdev_rebuild_blkptr_init()
532 DVA_SET_OFFSET(&bp->blk_dva[0], start); in vdev_rebuild_blkptr_init()
533 DVA_SET_GANG(&bp->blk_dva[0], 0); in vdev_rebuild_blkptr_init()
534 DVA_SET_ASIZE(&bp->blk_dva[0], asize); in vdev_rebuild_blkptr_init()
575 if (!vdev_dtl_need_resilver(vd, &blk.blk_dva[0], psize, TXG_UNKNOWN)) { in vdev_rebuild_range()
H A Dbrt.c884 bre->bre_offset = DVA_GET_OFFSET(&bp->blk_dva[0]); in brt_entry_fill()
887 *vdevidp = DVA_GET_VDEV(&bp->blk_dva[0]); in brt_entry_fill()
1366 cmp = TREE_CMP(DVA_GET_VDEV(&bp1->blk_dva[0]), in brt_pending_entry_compare()
1367 DVA_GET_VDEV(&bp2->blk_dva[0])); in brt_pending_entry_compare()
1369 cmp = TREE_CMP(DVA_GET_OFFSET(&bp1->blk_dva[0]), in brt_pending_entry_compare()
1370 DVA_GET_OFFSET(&bp2->blk_dva[0])); in brt_pending_entry_compare()
H A Ddsl_scan.c443 memcpy(bp->blk_dva, sio->sio_dva, sio->sio_nr_dvas * sizeof (dva_t)); in sio2bp()
462 sio->sio_dva[i] = bp->blk_dva[j % sio->sio_nr_dvas]; in bp2sio()
3183 cur_size += DVA_GET_ASIZE(&bp->blk_dva[i]); in scan_io_queues_update_zio_stats()
3635 const dva_t *dva = &bp->blk_dva[0]; in dsl_scan_obsolete_block_cb()
4619 all ? BP_GET_ASIZE(bp) : DVA_GET_ASIZE(&bp->blk_dva[0])); in count_block_issued()
4628 all ? BP_GET_ASIZE(bp) : DVA_GET_ASIZE(&bp->blk_dva[0])); in count_block_skipped()
4658 if (DVA_GET_VDEV(&bp->blk_dva[0]) == in count_block()
4659 DVA_GET_VDEV(&bp->blk_dva[1])) in count_block()
4663 equal = (DVA_GET_VDEV(&bp->blk_dva[0]) == in count_block()
4664 DVA_GET_VDEV(&bp->blk_dva[1])) + in count_block()
[all …]
H A Ddsl_deadlist.c1000 uint64_t l_dva0_vdev = DVA_GET_VDEV(&l->blk_dva[0]); in livelist_compare()
1001 uint64_t r_dva0_vdev = DVA_GET_VDEV(&r->blk_dva[0]); in livelist_compare()
1007 uint64_t l_dva0_offset = DVA_GET_OFFSET(&l->blk_dva[0]); in livelist_compare()
1008 uint64_t r_dva0_offset = DVA_GET_OFFSET(&r->blk_dva[0]); in livelist_compare()
H A Dmetaslab.c4635 const dva_t *dva = bp->blk_dva; in metaslab_group_alloc_verify()
5468 if (size != DVA_GET_ASIZE(&bp->blk_dva[0])) in remap_blkptr_cb()
5499 DVA_GET_VDEV(&bp->blk_dva[0])); in remap_blkptr_cb()
5502 DVA_GET_OFFSET(&bp->blk_dva[0]), DVA_GET_ASIZE(&bp->blk_dva[0])); in remap_blkptr_cb()
5505 DVA_SET_VDEV(&bp->blk_dva[0], vd->vdev_id); in remap_blkptr_cb()
5506 DVA_SET_OFFSET(&bp->blk_dva[0], offset); in remap_blkptr_cb()
5558 dva_t *dva = &bp->blk_dva[0]; in spa_remap_blkptr()
5583 if (DVA_GET_VDEV(&rbca.rbca_bp->blk_dva[0]) == vd->vdev_id) in spa_remap_blkptr()
5848 dva_t *dva = bp->blk_dva; in metaslab_alloc()
5849 dva_t *hintdva = (hintbp != NULL) ? hintbp->blk_dva : NULL; in metaslab_alloc()
[all …]
H A Dvdev_mirror.c273 dva_t *dva = zio->io_bp->blk_dva; in vdev_mirror_map_init()
460 dva_t *dva = zio->io_bp->blk_dva; in vdev_mirror_dva_select()
H A Dzio.c1066 (long long)bp->blk_dva[0].dva_word[0], in zfs_blkptr_verify_log()
1067 (long long)bp->blk_dva[0].dva_word[1], in zfs_blkptr_verify_log()
1068 (long long)bp->blk_dva[1].dva_word[0], in zfs_blkptr_verify_log()
1069 (long long)bp->blk_dva[1].dva_word[1], in zfs_blkptr_verify_log()
1070 (long long)bp->blk_dva[2].dva_word[0], in zfs_blkptr_verify_log()
1071 (long long)bp->blk_dva[2].dva_word[1], in zfs_blkptr_verify_log()
1191 const dva_t *dva = &bp->blk_dva[i]; in zfs_blkptr_verify()
3000 dva_t *cdva = zio->io_bp->blk_dva; in zio_write_gang_member_ready()
3001 dva_t *pdva = pio->io_bp->blk_dva; in zio_write_gang_member_ready()
3260 DVA_GET_VDEV(&bp_orig->blk_dva[d])); in zio_nop_write()
H A Dddt.c630 bp->blk_dva[d] = dvap[d]; in ddt_bp_fill()
691 dvas[d] = bp->blk_dva[s]; in ddt_phys_extend()
703 dvas[2] = bp->blk_dva[2]; in ddt_phys_extend()
1101 if (!DVA_EQUAL(&dvas[d], &bp->blk_dva[d])) in ddt_entry_lookup_is_valid()
H A Dzio_inject.c231 dva_t *dva = &zio->io_bp->blk_dva[i]; in zio_match_dva()
H A Dvdev_removal.c952 DVA_SET_VDEV(&bp.blk_dva[0], DVA_GET_VDEV(vcsa->vcsa_dest_dva)); in unalloc_seg()
953 DVA_SET_OFFSET(&bp.blk_dva[0], in unalloc_seg()
955 DVA_SET_ASIZE(&bp.blk_dva[0], size); in unalloc_seg()
H A Ddbuf.c650 uint64_t vdev = DVA_GET_VDEV(db_bp->blk_dva); in dbuf_is_l2cacheable()
679 uint64_t vdev = DVA_GET_VDEV(bp->blk_dva); in dnode_level_is_l2cacheable()
1225 DVA_IS_EMPTY(&bp->blk_dva[0]) && in dbuf_verify()
1226 DVA_IS_EMPTY(&bp->blk_dva[1]) && in dbuf_verify()
1227 DVA_IS_EMPTY(&bp->blk_dva[2])); in dbuf_verify()
H A Dspa_misc.c2211 dsize += dva_get_dsize_sync(spa, &bp->blk_dva[d]); in bp_get_dsize_sync()
2224 dsize += dva_get_dsize_sync(spa, &bp->blk_dva[d]); in bp_get_dsize()
H A Dzil.c1276 vd = vdev_lookup_top(os->os_spa, DVA_GET_VDEV(&bp->blk_dva[0])); in zil_check_log_chain()
1387 zvsearch.zv_vdev = DVA_GET_VDEV(&bp->blk_dva[i]); in zil_lwb_add_block()
H A Ddmu_objset.c444 uint64_t vdev = DVA_GET_VDEV(bp->blk_dva); in dmu_os_is_l2cacheable()
H A Ddsl_dataset.c229 dva_t *dva = &fakebp.blk_dva[0]; in dsl_dataset_block_remapped()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c758 memcpy(&bp->blk_dva[2].dva_word[0], salt, sizeof (uint64_t)); in zio_crypt_encode_params_bp()
759 memcpy(&bp->blk_dva[2].dva_word[1], iv, sizeof (uint64_t)); in zio_crypt_encode_params_bp()
764 bp->blk_dva[2].dva_word[0] = BSWAP_64(val64); in zio_crypt_encode_params_bp()
767 bp->blk_dva[2].dva_word[1] = BSWAP_64(val64); in zio_crypt_encode_params_bp()
790 memcpy(salt, &bp->blk_dva[2].dva_word[0], sizeof (uint64_t)); in zio_crypt_decode_params_bp()
791 memcpy(iv, &bp->blk_dva[2].dva_word[1], sizeof (uint64_t)); in zio_crypt_decode_params_bp()
796 val64 = BSWAP_64(bp->blk_dva[2].dva_word[0]); in zio_crypt_decode_params_bp()
799 val64 = BSWAP_64(bp->blk_dva[2].dva_word[1]); in zio_crypt_decode_params_bp()
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c205 if (DVA_IS_EMPTY(&bp->blk_dva[i])) in sublivelist_verify_blkptr()
208 .svb_dva = bp->blk_dva[i], in sublivelist_verify_blkptr()
2463 const dva_t *dva = bp->blk_dva; in snprintf_blkptr_compact()
5899 zbre_search.zbre_dva = bp->blk_dva[0]; in zdb_count_block()
5908 zbre->zbre_dva = bp->blk_dva[0]; in zdb_count_block()
5956 if (DVA_GET_VDEV(&bp->blk_dva[0]) == in zdb_count_block()
5957 DVA_GET_VDEV(&bp->blk_dva[1])) { in zdb_count_block()
5961 DVA_GET_VDEV(&bp->blk_dva[0]), in zdb_count_block()
5962 DVA_GET_OFFSET(&bp->blk_dva[0]), in zdb_count_block()
5963 DVA_GET_OFFSET(&bp->blk_dva[1]))) in zdb_count_block()
[all …]
/freebsd/stand/libsa/zfs/
H A Dzfsimpl.c2195 DVA_SET_GANG(&gbh_bp.blk_dva[i], 0); in zio_read_gang()
2259 const dva_t *dva = &bp->blk_dva[i]; in zio_read()