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

12

/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/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/sys/
H A Dspa.h124 typedef struct dva { struct
199 * phys birth txg when dva[0] was written; zero if same as logical birth txg
200 * note that typically all the dva's would be written in this
406 #define DVA_GET_ASIZE(dva) \
407 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
408 #define DVA_SET_ASIZE(dva, x) \
409 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
412 #define DVA_GET_GRID(dva) BF64_GET((dva)->dva_word[0], 24, 8)
413 #define DVA_SET_GRID(dva,
[all...]
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfsimpl.h149 typedef struct dva { struct
339 #define DVA_GET_ASIZE(dva) \
340 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
341 #define DVA_SET_ASIZE(dva, x) \
342 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
345 #define DVA_GET_GRID(dva) BF64_GET((dva)->dva_word[0], 24, 8)
346 #define DVA_SET_GRID(dva, x) BF64_SET((dva)->dva_word[0], 24, 8, x)
348 #define DVA_GET_VDEV(dva) BF64_GE
[all...]
H A Dzfssubr.c207 const dva_t *dva = BP_IDENTITY(bp); local
212 ZIO_SET_CHECKSUM(zcp, DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva), txg, 0);
/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/uts/common/fs/zfs/
H A Dvdev_mirror.c252 dva_t *dva = zio->io_bp->blk_dva; local
293 if (zfs_dva_valid(spa, &dva[i], zio->io_bp))
294 dva_copy[j++] = dva[i];
302 dva = dva_copy;
311 mc->mc_vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[c]));
312 mc->mc_offset = DVA_GET_OFFSET(&dva[c]);
448 dva_t *dva = zio->io_bp->blk_dva; local
456 if (DVA_GET_VDEV(&dva[c]) == DVA_GET_VDEV(&dva[preferred]))
H A Dmetaslab.c4349 metaslab_is_unique(metaslab_t *msp, dva_t *dva) argument
4353 if (DVA_GET_ASIZE(dva) == 0)
4356 if (msp->ms_group->mg_vd->vdev_id != DVA_GET_VDEV(dva))
4359 dva_ms_id = DVA_GET_OFFSET(dva) >> msp->ms_group->mg_vd->vdev_ms_shift;
4502 const dva_t *dva = bp->blk_dva; local
4506 uint64_t vdev = DVA_GET_VDEV(&dva[d]);
4568 dva_t *dva, int d, boolean_t want_unique, uint64_t asize, int allocator,
4606 !metaslab_is_unique(msp, &dva[i]))
4660 uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d,
4669 DVA_GET_VDEV(&dva[
4567 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, boolean_t try_hard, zio_alloc_list_t *zal, metaslab_t *search, boolean_t *was_active) argument
4659 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, boolean_t try_hard) argument
4964 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, boolean_t try_hard) argument
5003 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
5430 metaslab_unalloc_dva(spa_t *spa, const dva_t *dva, uint64_t txg) argument
5482 metaslab_free_dva(spa_t *spa, const dva_t *dva, boolean_t checkpoint) argument
5671 metaslab_claim_dva(spa_t *spa, const dva_t *dva, uint64_t txg) argument
5695 dva_t *dva = bp->blk_dva; local
5750 const dva_t *dva = bp->blk_dva; local
5800 const dva_t *dva = bp->blk_dva; local
[all...]
H A Dzio_inject.c127 zio_match_handler(zbookmark_phys_t *zb, uint64_t type, int dva, argument
151 (record->zi_dvas == 0 || (record->zi_dvas & (1ULL << dva))) &&
198 dva_t *dva = &zio->io_bp->blk_dva[i]; local
199 uint64_t off = DVA_GET_OFFSET(dva);
201 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 Ddsl_scan.c3121 const dva_t *dva = &bp->blk_dva[0]; local
3127 DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva),
3128 DVA_GET_ASIZE(dva), tx);
3175 dsl_scan_need_resilver(spa_t *spa, const dva_t *dva, size_t psize, argument
3180 vd = vdev_lookup_top(spa, DVA_GET_VDEV(dva));
3193 if (DVA_GET_GANG(dva)) {
3218 if (!vdev_dtl_need_resilver(vd, DVA_GET_OFFSET(dva), psize))
3802 dva_t dva; local
3805 dva
3855 const dva_t *dva = &bp->blk_dva[d]; local
[all...]
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 Dspa_misc.c2004 dva_get_dsize_sync(spa_t *spa, const dva_t *dva) argument
2006 uint64_t asize = DVA_GET_ASIZE(dva);
2012 vdev_t *vd = vdev_lookup_top(spa, DVA_GET_VDEV(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 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) argument
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]) && \
1302 ((hdr)->b_dva.dva_word[1] == (dva)->dva_word[1]) && \
1316 const dva_t *dva = BP_IDENTITY(bp); local
1318 uint64_t idx = BUF_HASH_INDEX(spa, dva, birt
[all...]
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 Dzio.c898 zfs_dva_valid(spa_t *spa, const dva_t *dva, const blkptr_t *bp) argument
900 uint64_t vdevid = DVA_GET_VDEV(dva);
916 uint64_t offset = DVA_GET_OFFSET(dva);
917 uint64_t asize = DVA_GET_ASIZE(dva);
/illumos-gate/usr/src/lib/libdladm/common/
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;
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) {
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c567 dva(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function
569 dva_t dva; local
570 if (mdb_vread(&dva, sizeof (dva_t), addr) == -1) {
575 (u_longlong_t)DVA_GET_VDEV(&dva),
576 (u_longlong_t)DVA_GET_OFFSET(&dva),
577 (u_longlong_t)DVA_GET_ASIZE(&dva));
987 dva_t dva; member in struct:abuf_find_data
996 dva_t dva; local
998 if (GETMEMBID(addr, &data->id, b_dva, dva)) {
1002 if (dva
[all...]
/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/cmd/zdb/
H A Dzdb.c1450 const dva_t *dva = bp->blk_dva; local
1472 (u_longlong_t)DVA_GET_VDEV(&dva[i]),
1473 (u_longlong_t)DVA_GET_OFFSET(&dva[i]),
1474 (u_longlong_t)DVA_GET_ASIZE(&dva[i]));
3423 const dva_t *dva = &bp->blk_dva[0]; local
3429 vd = vdev_lookup_top(zcb->zcb_spa, DVA_GET_VDEV(dva));
3438 DVA_GET_OFFSET(dva), DVA_GET_ASIZE(dva),
5490 dva_t *dva = bp->blk_dva; local
5577 DVA_SET_VDEV(&dva[
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs3_srv.c397 struct vattr dva; local
434 dva.va_mask = AT_ALL;
435 dvap = VOP_GETATTR(dvp, &dva, 0, cr, NULL) ? NULL : &dva;
545 dva.va_mask = AT_ALL;
546 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;
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dzfsimpl.c2189 const dva_t *dva = &bp->blk_dva[i]; local
2195 if (!dva->dva_word[0] && !dva->dva_word[1])
2198 vdevid = DVA_GET_VDEV(dva);
2199 offset = DVA_GET_OFFSET(dva);
2224 if (DVA_GET_GANG(dva))

Completed in 169 milliseconds

12