Searched defs:dva (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/lib/efcode/fcdriver/
H A Ddma.c91 fstack_t va, dva, len; local
97 dva = POP(DS);
101 fc_ptr2cell(dva), fc_ptr2cell(va));
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzio_inject.c105 zio_match_handler(zbookmark_phys_t *zb, uint64_t type, int dva, argument
130 (record->zi_dvas == 0 || (record->zi_dvas & (1ULL << dva))) &&
178 dva_t *dva = &zio->io_bp->blk_dva[i]; local
179 uint64_t off = DVA_GET_OFFSET(dva);
181 DVA_GET_VDEV(dva));
H A Dzio_checksum.c247 const dva_t *dva = BP_IDENTITY(bp); local
252 ZIO_SET_CHECKSUM(zcp, DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva), txg, 0);
H A Dvdev_mirror.c251 dva_t *dva = zio->io_bp->blk_dva; local
292 if (zfs_dva_valid(spa, &dva[i], zio->io_bp))
293 dva_copy[j++] = dva[i];
301 dva = dva_copy;
310 mc->mc_vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[c]));
311 mc->mc_offset = DVA_GET_OFFSET(&dva[c]);
447 dva_t *dva = zio->io_bp->blk_dva; local
455 if (DVA_GET_VDEV(&dva[c]) == DVA_GET_VDEV(&dva[preferred]))
H A Dddt.c571 dva_t *dva = ddp->ddp_dva; local
572 int copies = 0 - DVA_GET_GANG(dva);
574 for (int d = 0; d < DDE_GET_NDVAS(dde); d++, dva++)
575 if (DVA_IS_VALID(dva))
H A Dzil.c157 const dva_t *dva; local
164 dva = BP_IDENTITY(bp);
166 if (avl_find(t, dva, &where) != NULL)
170 zn->zn_dva = *dva;
H A Dspa_misc.c1963 dva_get_dsize_sync(spa_t *spa, const dva_t *dva) argument
1965 uint64_t asize = DVA_GET_ASIZE(dva);
1971 vdev_t *vd = vdev_lookup_top(spa, DVA_GET_VDEV(dva));
H A Dmetaslab.c4026 metaslab_is_unique(metaslab_t *msp, dva_t *dva)
4030 if (DVA_GET_ASIZE(dva) == 0)
4033 if (msp->ms_group->mg_vd->vdev_id != DVA_GET_VDEV(dva))
4036 dva_ms_id = DVA_GET_OFFSET(dva) >> msp->ms_group->mg_vd->vdev_ms_shift;
4209 const dva_t *dva = bp->blk_dva;
4213 uint64_t vdev = DVA_GET_VDEV(&dva[d]);
4275 dva_t *dva, int d, boolean_t want_unique, uint64_t asize, int allocator,
4313 !metaslab_is_unique(msp, &dva[i]))
4367 uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d,
4376 DVA_GET_VDEV(&dva[
3652 metaslab_is_unique(metaslab_t *msp, dva_t *dva) argument
3835 const dva_t *dva = bp->blk_dva; local
3899 find_valid_metaslab(metaslab_group_t *mg, uint64_t activation_weight, dva_t *dva, int d, boolean_t want_unique, uint64_t asize, int allocator, zio_alloc_list_t *zal, metaslab_t *search, boolean_t *was_active) argument
3955 metaslab_group_alloc_normal(metaslab_group_t *mg, zio_alloc_list_t *zal, uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d, int allocator) argument
4158 metaslab_group_alloc(metaslab_group_t *mg, zio_alloc_list_t *zal, uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d, int allocator) argument
4197 metaslab_alloc_dva(spa_t *spa, metaslab_class_t *mc, uint64_t psize, dva_t *dva, int d, dva_t *hintdva, uint64_t txg, int flags, zio_alloc_list_t *zal, int allocator) argument
4624 metaslab_unalloc_dva(spa_t *spa, const dva_t *dva, uint64_t txg) argument
4675 metaslab_free_dva(spa_t *spa, const dva_t *dva, boolean_t checkpoint) argument
4854 metaslab_claim_dva(spa_t *spa, const dva_t *dva, uint64_t txg) argument
4878 dva_t *dva = bp->blk_dva; local
4933 const dva_t *dva = bp->blk_dva; local
4983 const dva_t *dva = bp->blk_dva; local
[all...]
H A Dzio.c894 zfs_dva_valid(spa_t *spa, const dva_t *dva, const blkptr_t *bp) argument
896 uint64_t vdevid = DVA_GET_VDEV(dva);
912 uint64_t offset = DVA_GET_OFFSET(dva);
913 uint64_t asize = DVA_GET_ASIZE(dva);
H A Ddsl_dataset.c185 dva_t *dva = &fakebp.blk_dva[0]; local
197 DVA_SET_VDEV(dva, vdev);
198 DVA_SET_OFFSET(dva, offset);
199 DVA_SET_ASIZE(dva, size);
H A Ddsl_scan.c3089 const dva_t *dva = &bp->blk_dva[0]; local
3095 DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva),
3096 DVA_GET_ASIZE(dva), tx);
3143 dsl_scan_need_resilver(spa_t *spa, const dva_t *dva, size_t psize, argument
3148 vd = vdev_lookup_top(spa, DVA_GET_VDEV(dva));
3161 if (DVA_GET_GANG(dva)) {
3186 if (!vdev_dtl_need_resilver(vd, DVA_GET_OFFSET(dva), psize))
3770 dva_t dva; local
3773 dva
3823 const dva_t *dva = &bp->blk_dva[d]; local
[all...]
H A Darc.c1155 #define BUF_HASH_INDEX(spa, dva, birth) \
1156 (buf_hash(spa, dva, birth) & buf_hash_table.ht_mask)
1291 buf_hash(uint64_t spa, const dva_t *dva, uint64_t birth)
1293 return (cityhash4(spa, dva->dva_word[0], dva->dva_word[1], birth));
1300 #define HDR_EQUAL(spa, dva, birth, hdr) \
1301 ((hdr)->b_dva.dva_word[0] == (dva)->dva_word[0]) && \ local
1302 ((hdr)->b_dva.dva_word[1] == (dva)->dva_word[1]) && \
1316 const dva_t *dva = BP_IDENTITY(bp);
1318 uint64_t idx = BUF_HASH_INDEX(spa, dva, birt
1276 buf_hash(uint64_t spa, const dva_t *dva, uint64_t birth) argument
[all...]
/illumos-gate/usr/src/lib/libbsm/common/
H A Dgetdment.c295 char **dva; local
304 for (dva = dmap->dmap_devarray; (dv = *dva) != NULL; dva++) {
335 char **dva; local
340 for (dva = dmap->dmap_devarray; (dv = *dva) != NULL; dva ++) {
/illumos-gate/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dspa.h90 typedef struct dva { struct
178 #define DVA_GET_ASIZE(dva) \
179 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
180 #define DVA_SET_ASIZE(dva, x) \
181 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
184 #define DVA_GET_GRID(dva) BF64_GET((dva)->dva_word[0], 24, 8)
185 #define DVA_SET_GRID(dva, x) BF64_SET((dva)->dva_word[0], 24, 8, x)
187 #define DVA_GET_VDEV(dva) BF64_GE
[all...]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlaggr.c1353 dladm_vlan_attr_t dva; local
1355 if (dladm_vlan_info(handle, linkid, &dva, DLADM_OPT_PERSIST) !=
1359 if (dva.dv_linkid == aggr_held_arg->aggrid) {
H A Dlibdllink.c940 dladm_vlan_attr_t dva; local
942 status = dladm_vlan_info(handle, linkid, &dva,
946 linkid = dva.dv_linkid;
947 vid = dva.dv_vid;
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs3_srv.c376 struct vattr dva; local
407 dva.va_mask = AT_ALL;
408 dvap = VOP_GETATTR(dvp, &dva, 0, cr, NULL) ? NULL : &dva;
501 dva.va_mask = AT_ALL;
502 dvap = VOP_GETATTR(dvp, &dva, 0, cr, NULL) ? NULL : &dva;
H A Dnfs3_vnops.c4069 vattr_t dva; local
4106 res.dir_attributes.fres.vap = &dva;
4179 vattr_t dva; local
4216 res.dir_attributes.fres.vap = &dva;
H A Dnfs4_vnops.c824 * append NVERIFY(owner_group == dva.va_gid) and
6855 struct vattr dva; local
6858 dva.va_mask = AT_MODE | AT_GID;
6859 if (VOP_GETATTR(dvp, &dva, 0, cr, NULL) == 0) {
6865 * append NVERIFY(owner_group == dva.va_gid) and
6868 if (mi->mi_flags & MI4_GRPID || dva.va_mode & VSGID) {
6871 if (dva.va_gid != GID_NOBODY) {
6873 va->va_gid = dva.va_gid;
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c300 * Read a block of data based on the gang block address dva,
308 zio_read_gang(blkptr_t *bp, dva_t *dva, void *buf, char *stack) argument
317 offset = DVA_GET_OFFSET(dva);
330 ZIO_SET_CHECKSUM(&tmpbp.blk_cksum, DVA_GET_VDEV(dva),
331 DVA_GET_OFFSET(dva), bp->blk_birth, 0);
363 /* pick a good dva from the block pointer */
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h161 typedef struct dva { struct
236 * phys birth txg when dva[0] was written; zero if same as logical birth txg
237 * note that typically all the dva's would be written in this
443 #define DVA_GET_ASIZE(dva) \
444 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
445 #define DVA_SET_ASIZE(dva, x) \
446 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
449 #define DVA_GET_GRID(dva) BF64_GET((dva)->dva_word[0], 24, 8)
450 #define DVA_SET_GRID(dva,
[all...]
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfssubr.c210 const dva_t *dva = BP_IDENTITY(bp); local
215 ZIO_SET_CHECKSUM(zcp, DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva), txg, 0);
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dzfsimpl.c1959 const dva_t *dva = &bp->blk_dva[i];
1964 if (!dva->dva_word[0] && !dva->dva_word[1])
1967 vdevid = DVA_GET_VDEV(dva);
1968 offset = DVA_GET_OFFSET(dva);
1987 if (DVA_GET_GANG(dva))
1858 const dva_t *dva = &bp->blk_dva[i]; local
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c566 dva(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function
568 dva_t dva; local
569 if (mdb_vread(&dva, sizeof (dva_t), addr) == -1) {
574 (u_longlong_t)DVA_GET_VDEV(&dva),
575 (u_longlong_t)DVA_GET_OFFSET(&dva),
576 (u_longlong_t)DVA_GET_ASIZE(&dva));
986 dva_t dva;
995 dva_t dva;
997 if (GETMEMBID(addr, &data->id, b_dva, dva)) {
1001 if (dva
985 dva_t dva; member in struct:abuf_find_data
994 dva_t dva; local
[all...]
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c1455 const dva_t *dva = bp->blk_dva; local
1477 (u_longlong_t)DVA_GET_VDEV(&dva[i]),
1478 (u_longlong_t)DVA_GET_OFFSET(&dva[i]),
1479 (u_longlong_t)DVA_GET_ASIZE(&dva[i]));
3428 const dva_t *dva = &bp->blk_dva[0]; local
3434 vd = vdev_lookup_top(zcb->zcb_spa, DVA_GET_VDEV(dva));
3443 DVA_GET_OFFSET(dva), DVA_GET_ASIZE(dva),
5494 dva_t *dva = bp->blk_dva; local
5581 DVA_SET_VDEV(&dva[
[all...]

Completed in 457 milliseconds

12