Home
last modified time | relevance | path

Searched refs:dva (Results 1 – 20 of 20) sorted by relevance

/titanic_41/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dspa.h87 typedef struct dva { struct
175 #define DVA_GET_ASIZE(dva) \ argument
176 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
177 #define DVA_SET_ASIZE(dva, x) \ argument
178 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
181 #define DVA_GET_GRID(dva) BF64_GET((dva)->dva_word[0], 24, 8) argument
182 #define DVA_SET_GRID(dva, x) BF64_SET((dva)->dva_word[0], 24, 8, x) argument
184 #define DVA_GET_VDEV(dva) BF64_GET((dva)->dva_word[0], 32, 32) argument
185 #define DVA_SET_VDEV(dva, x) BF64_SET((dva)->dva_word[0], 32, 32, x) argument
187 #define DVA_GET_OFFSET(dva) \ argument
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h139 typedef struct dva { struct
330 #define DVA_GET_ASIZE(dva) \ argument
331 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
332 #define DVA_SET_ASIZE(dva, x) \ argument
333 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
336 #define DVA_GET_GRID(dva) BF64_GET((dva)->dva_word[0], 24, 8) argument
337 #define DVA_SET_GRID(dva, x) BF64_SET((dva)->dva_word[0], 24, 8, x) argument
339 #define DVA_GET_VDEV(dva) BF64_GET((dva)->dva_word[0], 32, 32) argument
340 #define DVA_SET_VDEV(dva, x) BF64_SET((dva)->dva_word[0], 32, 32, x) argument
342 #define DVA_GET_OFFSET(dva) \ argument
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dmetaslab.c2020 metaslab_distance(metaslab_t *msp, dva_t *dva) in metaslab_distance() argument
2023 uint64_t offset = DVA_GET_OFFSET(dva) >> ms_shift; in metaslab_distance()
2026 if (msp->ms_group->mg_vd->vdev_id != DVA_GET_VDEV(dva)) in metaslab_distance()
2038 uint64_t txg, uint64_t min_distance, dva_t *dva, int d) in metaslab_group_alloc() argument
2050 if (DVA_GET_VDEV(&dva[i]) == mg->mg_vd->vdev_id) { in metaslab_group_alloc()
2087 if (metaslab_distance(msp, &dva[i]) < in metaslab_group_alloc()
2158 dva_t *dva, int d, dva_t *hintdva, uint64_t txg, int flags) in metaslab_alloc_dva() argument
2170 ASSERT(!DVA_IS_VALID(&dva[d])); in metaslab_alloc_dva()
2218 vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[d - 1])); in metaslab_alloc_dva()
2290 dva, d); in metaslab_alloc_dva()
[all …]
H A Dvdev_mirror.c81 dva_t *dva = zio->io_bp->blk_dva; in vdev_mirror_map_alloc() local
100 if (DVA_GET_VDEV(&dva[d]) == DVA_GET_VDEV(&dva[c])) in vdev_mirror_map_alloc()
107 mc->mc_vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[c])); in vdev_mirror_map_alloc()
108 mc->mc_offset = DVA_GET_OFFSET(&dva[c]); in vdev_mirror_map_alloc()
H A Dzio_checksum.c131 dva_t *dva = BP_IDENTITY(bp); in zio_checksum_gang_verifier() local
136 ZIO_SET_CHECKSUM(zcp, DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva), txg, 0); in zio_checksum_gang_verifier()
H A Dddt.c554 dva_t *dva = ddp->ddp_dva; in ddt_ditto_copies_present() local
555 int copies = 0 - DVA_GET_GANG(dva); in ddt_ditto_copies_present()
557 for (int d = 0; d < SPA_DVAS_PER_BP; d++, dva++) in ddt_ditto_copies_present()
558 if (DVA_IS_VALID(dva)) in ddt_ditto_copies_present()
H A Dspa_misc.c1749 dva_get_dsize_sync(spa_t *spa, const dva_t *dva) in dva_get_dsize_sync() argument
1751 uint64_t asize = DVA_GET_ASIZE(dva); in dva_get_dsize_sync()
1757 vdev_t *vd = vdev_lookup_top(spa, DVA_GET_VDEV(dva)); in dva_get_dsize_sync()
H A Darc.c885 #define BUF_HASH_INDEX(spa, dva, birth) \ argument
886 (buf_hash(spa, dva, birth) & buf_hash_table.ht_mask)
1267 buf_hash(uint64_t spa, const dva_t *dva, uint64_t birth) in buf_hash() argument
1269 uint8_t *vdva = (uint8_t *)dva; in buf_hash()
1287 #define BUF_EQUAL(spa, dva, birth, buf) \ argument
1288 ((buf)->b_dva.dva_word[0] == (dva)->dva_word[0]) && \
1289 ((buf)->b_dva.dva_word[1] == (dva)->dva_word[1]) && \
1303 const dva_t *dva = BP_IDENTITY(bp); in buf_hash_find() local
1305 uint64_t idx = BUF_HASH_INDEX(spa, dva, birth); in buf_hash_find()
1312 if (BUF_EQUAL(spa, dva, birth, hdr)) { in buf_hash_find()
[all …]
H A Dzil.c140 const dva_t *dva; in zil_bp_tree_add() local
147 dva = BP_IDENTITY(bp); in zil_bp_tree_add()
149 if (avl_find(t, dva, &where) != NULL) in zil_bp_tree_add()
153 zn->zn_dva = *dva; in zil_bp_tree_add()
/titanic_41/usr/src/lib/libbsm/common/
H A Dgetdment.c295 char **dva; in dmap_match_one_dev() local
304 for (dva = dmap->dmap_devarray; (dv = *dva) != NULL; dva++) { in dmap_match_one_dev()
335 char **dva; in dmap_matchdev() local
340 for (dva = dmap->dmap_devarray; (dv = *dva) != NULL; dva ++) { in dmap_matchdev()
/titanic_41/usr/src/lib/efcode/fcdriver/
H A Ddma.c91 fstack_t va, dva, len; in do_dma_map_out() local
97 dva = POP(DS); in do_dma_map_out()
101 fc_ptr2cell(dva), fc_ptr2cell(va)); in do_dma_map_out()
/titanic_41/usr/src/lib/libdladm/common/
H A Dlibdllink.c941 dladm_vlan_attr_t dva; in dladm_linkid2legacyname() local
943 status = dladm_vlan_info(handle, linkid, &dva, in dladm_linkid2legacyname()
947 linkid = dva.dv_linkid; in dladm_linkid2legacyname()
948 vid = dva.dv_vid; in dladm_linkid2legacyname()
H A Dlibdlaggr.c1353 dladm_vlan_attr_t dva; in i_dladm_aggr_is_held() local
1355 if (dladm_vlan_info(handle, linkid, &dva, DLADM_OPT_PERSIST) != in i_dladm_aggr_is_held()
1359 if (dva.dv_linkid == aggr_held_arg->aggrid) { in i_dladm_aggr_is_held()
/titanic_41/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c796 dva_t dva; member
805 dva_t dva; in abuf_find_cb() local
807 if (GETMEMBID(addr, &data->id, b_dva, dva)) { in abuf_find_cb()
811 if (dva.dva_word[0] == data->dva.dva_word[0] && in abuf_find_cb()
812 dva.dva_word[1] == data->dva.dva_word[1]) { in abuf_find_cb()
838 data.dva.dva_word[i] = mdb_strtoull(argv[i].a_un.a_str); in abuf_find()
841 data.dva.dva_word[i] = argv[i].a_un.a_val; in abuf_find()
/titanic_41/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c305 zio_read_gang(blkptr_t *bp, dva_t *dva, void *buf, char *stack) in zio_read_gang() argument
314 offset = DVA_GET_OFFSET(dva); in zio_read_gang()
327 ZIO_SET_CHECKSUM(&tmpbp.blk_cksum, DVA_GET_VDEV(dva), in zio_read_gang()
328 DVA_GET_OFFSET(dva), bp->blk_birth, 0); in zio_read_gang()
/titanic_41/usr/src/psm/stand/bootblks/zfs/common/
H A Dzfs.fth454 : (read-dva) ( adr len dva -- )
461 tuck /gang-block rot (read-dva) ( adr len gb-adr )
480 i (read-dva) ( gb-adr sub-len len adr )
492 : read-dva ( adr len dva -- )
496 (read-dva)
512 read-dva exit ( )
519 rot read-dva ( adr len )
534 rot read-dva ( adr len )
/titanic_41/usr/src/cmd/zdb/
H A Dzdb.c1152 const dva_t *dva = bp->blk_dva; in snprintf_blkptr_compact() local
1174 (u_longlong_t)DVA_GET_VDEV(&dva[i]), in snprintf_blkptr_compact()
1175 (u_longlong_t)DVA_GET_OFFSET(&dva[i]), in snprintf_blkptr_compact()
1176 (u_longlong_t)DVA_GET_ASIZE(&dva[i])); in snprintf_blkptr_compact()
3240 dva_t *dva = bp->blk_dva; in zdb_read_block() local
3321 DVA_SET_VDEV(&dva[0], vd->vdev_id); in zdb_read_block()
3322 DVA_SET_OFFSET(&dva[0], offset); in zdb_read_block()
3323 DVA_SET_GANG(&dva[0], !!(flags & ZDB_FLAG_GBH)); in zdb_read_block()
3324 DVA_SET_ASIZE(&dva[0], vdev_psize_to_asize(vd, psize)); in zdb_read_block()
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs3_srv.c376 struct vattr dva; in rfs3_lookup() local
407 dva.va_mask = AT_ALL; in rfs3_lookup()
408 dvap = VOP_GETATTR(dvp, &dva, 0, cr, NULL) ? NULL : &dva; in rfs3_lookup()
501 dva.va_mask = AT_ALL; in rfs3_lookup()
502 dvap = VOP_GETATTR(dvp, &dva, 0, cr, NULL) ? NULL : &dva; in rfs3_lookup()
H A Dnfs3_vnops.c4069 vattr_t dva; in nfs3readdir() local
4106 res.dir_attributes.fres.vap = &dva; in nfs3readdir()
4179 vattr_t dva; in nfs3readdirplus() local
4216 res.dir_attributes.fres.vap = &dva; in nfs3readdirplus()
H A Dnfs4_vnops.c6848 struct vattr dva; in call_nfs4_create_req() local
6851 dva.va_mask = AT_MODE | AT_GID; in call_nfs4_create_req()
6852 if (VOP_GETATTR(dvp, &dva, 0, cr, NULL) == 0) { in call_nfs4_create_req()
6861 if (mi->mi_flags & MI4_GRPID || dva.va_mode & VSGID) { in call_nfs4_create_req()
6864 if (dva.va_gid != GID_NOBODY) { in call_nfs4_create_req()
6866 va->va_gid = dva.va_gid; in call_nfs4_create_req()