Searched refs:vd (Results 1 - 25 of 61) sorted by relevance

123

/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmset.c45 reg Vmdata_t* vd = vm->data; local
48 return vd->mode;
50 SETINUSE(vd, inuse);
51 if(!(vd->mode&VM_TRUST) )
52 { if(ISLOCK(vd,0))
53 { CLRINUSE(vd, inuse);
56 SETLOCK(vd,0);
59 mode = vd->mode;
62 vd->mode |= (flags&VM_FLAGS);
63 else vd
[all...]
H A Dvmclear.c45 reg Vmdata_t* vd = vm->data; local
48 SETINUSE(vd, inuse);
49 if(!(vd->mode&VM_TRUST) )
50 { if(ISLOCK(vd,0))
51 { CLRINUSE(vd, inuse);
54 SETLOCK(vd,0);
57 vd->free = vd->wild = NIL(Block_t*);
58 vd->pool = 0;
60 if(vd
[all...]
H A Dvmsegment.c44 reg Vmdata_t* vd = vm->data; local
47 SETINUSE(vd, inuse);
48 if(!(vd->mode&VM_TRUST))
49 { if(ISLOCK(vd,0))
50 { CLRINUSE(vd, inuse);
53 SETLOCK(vd,0);
56 for(seg = vd->seg; seg; seg = seg->next)
61 CLRLOCK(vd,0);
62 CLRINUSE(vd, inuse);
H A Dvmpool.c49 reg Vmdata_t* vd = vm->data; local
57 if(size != vd->pool)
58 { if(vd->pool <= 0)
59 vd->pool = size;
63 SETINUSE(vd, inuse);
64 if(!(local = vd->mode&VM_TRUST) )
65 { GETLOCAL(vd,local);
66 if(ISLOCK(vd, local))
67 { CLRINUSE(vd, inuse);
70 SETLOCK(vd, loca
138 reg Vmdata_t* vd = vm->data; local
187 reg Vmdata_t* vd = vm->data; local
237 reg Vmdata_t* vd = vm->data; local
301 reg Vmdata_t* vd = vm->data; local
[all...]
H A Dvmopen.c40 Vmdata_t vd; /* space for the region itself */ member in struct:_vminit_
57 reg Vmdata_t* vd; local
90 vd = (Vmdata_t*)addr;
91 if((vd->mode&meth->meth) != 0)
92 { vm->data = vd;
103 /* make sure vd->incr is properly rounded */
119 vd = (Vmdata_t*)addr;
120 vd->mode = (mode&VM_FLAGS) | meth->meth;
121 vd->incr = incr;
122 vd
[all...]
H A Dvmregion.c45 Vmdata_t *vd; local
50 vd = SEG(BLOCK(addr))->vmdt;
52 if(vm->data == vd)
H A Dvmlast.c46 reg Vmdata_t* vd = vm->data; local
50 SETINUSE(vd, inuse);
51 if(!(local = vd->mode&VM_TRUST))
52 { GETLOCAL(vd,local);
53 if(ISLOCK(vd,local))
54 { CLRINUSE(vd, inuse);
57 SETLOCK(vd,local);
63 { for(last = NIL(Seg_t*), seg = vd->seg; seg; last = seg, seg = seg->next)
68 seg->next = vd->seg;
69 vd
116 reg Vmdata_t* vd = vm->data; local
175 reg Vmdata_t* vd = vm->data; local
318 reg Vmdata_t* vd = vm->data; local
335 reg Vmdata_t* vd = vm->data; local
356 reg Vmdata_t* vd = vm->data; local
405 reg Vmdata_t* vd = vm->data; local
[all...]
H A Dvmstat.c46 reg Vmdata_t* vd = vm ? vm->data : Vmregion->data; local
49 SETINUSE(vd, inuse);
51 { CLRINUSE(vd, inuse);
54 if(!(vd->mode&VM_TRUST))
55 { if(ISLOCK(vd,0))
56 { CLRINUSE(vd, inuse);
59 SETLOCK(vd,0);
67 if(vd->mode&VM_MTLAST)
69 else if((vd->mode&VM_MTPOOL) && (s = vd
[all...]
H A Dvmprivate.c51 reg Vmdata_t* vd = vm->data; local
58 if(!_Vmtrace && vm == Vmheap && (vd->mode&VM_TRUST) )
62 if(vd->incr <= 0) /* this is just _Vmheap on the first call */
63 vd->incr = VMHEAPINCR;
69 if((size = ROUND(s,vd->incr)) < s)
73 if(size > 2*vd->incr && vm->disc->round < vd->incr)
74 vd->incr *= 2;
77 if(!(seg = vd->seg) )
80 { if(!vd
222 reg Vmdata_t* vd = vm->data; local
[all...]
H A Dvmclose.c43 Vmdata_t* vd = vm->data; local
49 if(!(vd->mode&VM_TRUST) && ISLOCK(vd,0))
57 vd->mode &= ~VM_TRUST;
58 SETLOCK(vd,0);
60 if((vd->mode&VM_MTPROFILE) && _Vmpfclose)
73 for(seg = vd->seg; seg; seg = next)
82 else CLRLOCK(vd,0);
H A Dvmbest.c93 static int vmisfree(Vmdata_t* vd, Block_t* b) argument
95 static int vmisfree(vd,b)
96 Vmdata_t* vd;
103 if(b == vd->wild)
107 return vmonlist(TINY(vd)[INDEX(SIZE(b))], b);
109 if(vd->root)
110 return vmintree(vd->root, b);
117 static int vmisjunk(Vmdata_t* vd, Block_t* b) argument
119 static int vmisjunk(vd,b)
120 Vmdata_t* vd;
177 _vmbestcheck(Vmdata_t* vd, Block_t* freeb) argument
254 bestsearch(Vmdata_t* vd, reg size_t size, Block_t* wanted) argument
370 bestreclaim(reg Vmdata_t* vd, Block_t* wanted, int c) argument
567 reg Vmdata_t* vd = vm->data; local
657 reg Vmdata_t* vd = vm->data; local
791 reg Vmdata_t* vd = vm->data; local
851 reg Vmdata_t* vd = vm->data; local
939 Vmdata_t *vd = vm->data; local
1070 reg Vmdata_t* vd = vm->data; local
1124 reg Vmdata_t* vd = vm->data; local
[all...]
H A Dvmdebug.c90 reg Vmdata_t* vd = vm->data; local
93 if(vd->mode&VM_DBABORT)
276 reg Vmdata_t* vd = vm->data; local
279 SETINUSE(vd, inuse);
280 GETLOCAL(vd,local);
281 if(ISLOCK(vd,local) || !addr)
282 { CLRINUSE(vd, inuse);
285 SETLOCK(vd,local);
288 for(seg = vd->seg; seg; seg = seg->next)
324 CLRLOCK(vd,loca
341 reg Vmdata_t* vd = vm->data; local
387 reg Vmdata_t* vd = vm->data; local
444 reg Vmdata_t* vd = vm->data; local
512 reg Vmdata_t* vd = vm->data; local
612 reg Vmdata_t* vd = vm->data; local
709 reg Vmdata_t* vd = vm->data; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_root.c50 too_many_errors(vdev_t *vd, int numerrors) argument
52 ASSERT3U(numerrors, <=, vd->vdev_children);
57 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, argument
63 if (vd->vdev_children == 0) {
64 vd->vdev_stat.vs_aux = VDEV_AUX_BAD_LABEL;
68 vdev_open_children(vd);
70 for (int c = 0; c < vd->vdev_children; c++) {
71 vdev_t *cvd = vd->vdev_child[c];
79 if (too_many_errors(vd, numerrors)) {
80 vd
92 vdev_root_close(vdev_t *vd) argument
99 vdev_root_state_change(vdev_t *vd, int faulted, int degraded) argument
[all...]
H A Dvdev.c95 vdev_default_asize(vdev_t *vd, uint64_t psize) argument
97 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift);
100 for (int c = 0; c < vd->vdev_children; c++) {
101 csize = vdev_psize_to_asize(vd->vdev_child[c], psize);
115 vdev_get_min_asize(vdev_t *vd) argument
117 vdev_t *pvd = vd->vdev_parent;
124 return (vd->vdev_asize);
130 if (vd == vd->vdev_top)
131 return (P2ALIGN(vd
144 vdev_set_min_asize(vdev_t *vd) argument
168 vdev_lookup_by_guid(vdev_t *vd, uint64_t guid) argument
184 vdev_count_leaves_impl(vdev_t *vd) argument
314 vdev_t *vd; local
379 vdev_t *vd; local
609 vdev_free(vdev_t *vd) argument
700 vdev_t *vd; local
761 vdev_top_update(vdev_t *tvd, vdev_t *vd) argument
849 vdev_metaslab_init(vdev_t *vd, uint64_t txg) argument
925 vdev_metaslab_fini(vdev_t *vd) argument
953 vdev_t *vd = zio->io_vd; local
1011 vdev_probe(vdev_t *vd, zio_t *zio) argument
1104 vdev_t *vd = arg; local
1112 vdev_uses_zvols(vdev_t *vd) argument
1124 vdev_open_children(vdev_t *vd) argument
1154 vdev_open(vdev_t *vd) argument
1369 vdev_validate(vdev_t *vd, boolean_t strict) argument
1482 vdev_close(vdev_t *vd) argument
1515 vdev_hold(vdev_t *vd) argument
1531 vdev_rele(vdev_t *vd) argument
1550 vdev_reopen(vdev_t *vd) argument
1583 vdev_create(vdev_t *vd, uint64_t txg, boolean_t isreplacing) argument
1613 vdev_metaslab_set_size(vdev_t *vd) argument
1623 vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg) argument
1640 vdev_dirty_leaves(vdev_t *vd, int flags, uint64_t txg) argument
1688 vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t t, uint64_t txg, uint64_t size) argument
1703 vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t t, uint64_t txg, uint64_t size) argument
1720 vdev_dtl_empty(vdev_t *vd, vdev_dtl_type_t t) argument
1736 vdev_dtl_min(vdev_t *vd) argument
1752 vdev_dtl_max(vdev_t *vd) argument
1773 vdev_dtl_should_excise(vdev_t *vd) argument
1805 vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg, int scrub_done) argument
1916 vdev_dtl_load(vdev_t *vd) argument
1956 vdev_destroy_unlink_zap(vdev_t *vd, uint64_t zapobj, dmu_tx_t *tx) argument
1966 vdev_create_link_zap(vdev_t *vd, dmu_tx_t *tx) argument
1980 vdev_construct_zaps(vdev_t *vd, dmu_tx_t *tx) argument
1999 vdev_dtl_sync(vdev_t *vd, uint64_t txg) argument
2089 vdev_dtl_required(vdev_t *vd) argument
2122 vdev_resilver_needed(vdev_t *vd, uint64_t *minp, uint64_t *maxp) argument
2159 vdev_load(vdev_t *vd) argument
2192 vdev_validate_aux(vdev_t *vd) argument
2227 vdev_remove(vdev_t *vd, uint64_t txg) argument
2286 vdev_sync_done(vdev_t *vd, uint64_t txg) argument
2301 vdev_sync(vdev_t *vd, uint64_t txg) argument
2338 vdev_psize_to_asize(vdev_t *vd, uint64_t psize) argument
2350 vdev_t *vd, *tvd; local
2406 vdev_t *vd; local
2441 vdev_t *vd, *tvd, *pvd, *rvd = spa->spa_root_vdev; local
2501 vdev_t *vd, *tvd; local
2610 vdev_clear(spa_t *spa, vdev_t *vd) argument
2671 vdev_is_dead(vdev_t *vd) argument
2685 vdev_readable(vdev_t *vd) argument
2691 vdev_writeable(vdev_t *vd) argument
2697 vdev_allocatable(vdev_t *vd) argument
2715 vdev_accessible(vdev_t *vd, zio_t *zio) argument
2735 vdev_get_stats(vdev_t *vd, vdev_stat_t *vs) argument
2783 vdev_clear_stats(vdev_t *vd) argument
2793 vdev_scan_stat_init(vdev_t *vd) argument
2810 vdev_t *vd = zio->io_vd ? zio->io_vd : rvd; local
2950 vdev_space_update(vdev_t *vd, int64_t alloc_delta, int64_t defer_delta, int64_t space_delta) argument
3001 vdev_config_dirty(vdev_t *vd) argument
3074 vdev_config_clean(vdev_t *vd) argument
3093 vdev_state_dirty(vdev_t *vd) argument
3115 vdev_state_clean(vdev_t *vd) argument
3131 vdev_propagate_state(vdev_t *vd) argument
3195 vdev_set_state(vdev_t *vd, boolean_t isopen, vdev_state_t state, vdev_aux_t aux) argument
3327 vdev_is_bootable(vdev_t *vd) argument
3382 vdev_log_state_valid(vdev_t *vd) argument
3399 vdev_expand(vdev_t *vd, uint64_t txg) argument
3414 vdev_split(vdev_t *vd) argument
3430 vdev_deadman(vdev_t *vd) argument
[all...]
H A Dvdev_disk.c53 vdev_disk_alloc(vdev_t *vd) argument
57 dvd = vd->vdev_tsd = kmem_zalloc(sizeof (vdev_disk_t), KM_SLEEP);
66 vdev_disk_free(vdev_t *vd) argument
68 vdev_disk_t *dvd = vd->vdev_tsd;
76 * callbacks and free vd->vdev_tsd.
85 vd->vdev_tsd = NULL;
93 vdev_t *vd = (vdev_t *)arg; local
94 vdev_disk_t *dvd = vd->vdev_tsd;
108 * freeing of vd->vdev_tsd to the offline finalize or a reopen.
111 vdev_disk_close(vd);
129 vdev_t *vd = (vdev_t *)arg; local
164 vdev_t *vd = (vdev_t *)arg; local
186 vdev_disk_hold(vdev_t *vd) argument
228 vdev_disk_rele(vdev_t *vd) argument
255 vdev_disk_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, uint64_t *ashift) argument
555 vdev_disk_close(vdev_t *vd) argument
590 vdev_disk_physio(vdev_t *vd, caddr_t data, size_t size, uint64_t offset, int flags, boolean_t isdump) argument
690 vdev_t *vd = zio->io_vd; local
784 vdev_t *vd = zio->io_vd; local
[all...]
H A Dvdev_label.c181 vdev_label_read(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, argument
188 zio_nowait(zio_read_phys(zio, vd,
189 vdev_label_offset(vd->vdev_psize, l, offset),
195 vdev_label_write(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, argument
204 zio_nowait(zio_write_phys(zio, vd,
205 vdev_label_offset(vd->vdev_psize, l, offset),
214 vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_t getstats, argument
221 fnvlist_add_string(nv, ZPOOL_CONFIG_TYPE, vd->vdev_ops->vdev_op_type);
223 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ID, vd->vdev_id);
224 fnvlist_add_uint64(nv, ZPOOL_CONFIG_GUID, vd
442 vdev_label_read_config(vdev_t *vd, uint64_t txg) argument
515 vdev_inuse(vdev_t *vd, uint64_t crtxg, vdev_labeltype_t reason, uint64_t *spare_guid, uint64_t *l2cache_guid) argument
634 vdev_label_init(vdev_t *vd, uint64_t crtxg, vdev_labeltype_t reason) argument
897 vdev_t *vd = zio->io_vd; local
925 vdev_uberblock_load_impl(zio_t *zio, vdev_t *vd, int flags, struct ubl_cbdata *cbp) argument
1001 vdev_uberblock_sync(zio_t *zio, uberblock_t *ub, vdev_t *vd, int flags) argument
1099 vdev_label_sync(zio_t *zio, vdev_t *vd, int l, uint64_t txg, int flags) argument
1144 vdev_t *vd; local
1198 vdev_t *vd; local
[all...]
H A Dvdev_file.c40 vdev_file_hold(vdev_t *vd) argument
42 ASSERT(vd->vdev_path != NULL);
46 vdev_file_rele(vdev_t *vd) argument
48 ASSERT(vd->vdev_path != NULL);
52 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, argument
63 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') {
64 vd->vdev_stat.vs_aux = VDEV_AUX_BAD_LABEL;
72 if (vd->vdev_tsd != NULL) {
73 ASSERT(vd
125 vdev_file_close(vdev_t *vd) argument
188 vdev_t *vd = zio->io_vd; local
[all...]
H A Dzfs_fm.c107 const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio,
157 if (vd != NULL) {
167 if (zio->io_vd == vd && !vdev_accessible(vd, zio))
176 vd->vdev_ops->vdev_op_leaf &&
177 vdev_dtl_contains(vd, DTL_MISSING, zio->io_txg, 1))
186 if (vd != NULL &&
188 (vd->vdev_remove_wanted || vd->vdev_state == VDEV_STATE_REMOVED))
229 vd !
106 zfs_ereport_start(nvlist_t **ereport_out, nvlist_t **detector_out, const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument
669 zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument
690 zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd, struct zio *zio, uint64_t offset, uint64_t length, void *arg, zio_bad_cksum_t *info) argument
780 zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd, struct zio *zio, uint64_t offset, uint64_t length, const void *good_data, const void *bad_data, zio_bad_cksum_t *zbc) argument
810 zfs_post_common(spa_t *spa, vdev_t *vd, const char *name) argument
845 zfs_post_remove(spa_t *spa, vdev_t *vd) argument
856 zfs_post_autoreplace(spa_t *spa, vdev_t *vd) argument
868 zfs_post_state_change(spa_t *spa, vdev_t *vd) argument
[all...]
H A Dvdev_missing.c47 vdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, argument
64 vdev_missing_close(vdev_t *vd) argument
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvds.c75 #define VD_NAME "vd"
218 (vd->dring + (i)*vd->descriptor_size))
221 #define VD_CLIENT(vd) \
222 (((vd)->xfer_mode == VIO_DESC_MODE) ? "in-band client" : \
223 (((vd)->xfer_mode == VIO_DRING_MODE_V1_0) ? "dring client" : \
224 (((vd)->xfer_mode == 0) ? "null client" : \
228 #define VD_DSKIMG_LABEL_READ(vd, labelp) \
229 vd_dskimg_rw(vd, VD_SLICE_NONE, VD_OP_BREAD, (caddr_t)labelp, \
233 #define VD_DSKIMG_LABEL_WRITE(vd, label
424 struct vd *vd; /* vd instance task is for */ member in struct:vd_task
440 typedef struct vd { struct
755 vd_dskimg_io_params(vd_t *vd, int slice, size_t *blkp, size_t *lenp) argument
872 vd_dskimg_rw(vd_t *vd, int slice, int operation, caddr_t data, size_t offset, size_t len) argument
1080 vd_dskimg_set_vtoc(vd_t *vd, struct dk_label *label) argument
1150 vd_dskimg_get_devid_block(vd_t *vd, size_t *blkp) argument
1233 vd_dskimg_read_devid(vd_t *vd, ddi_devid_t *devid) argument
1309 vd_dskimg_write_devid(vd_t *vd, ddi_devid_t devid) argument
1375 vd_do_scsi_rdwr(vd_t *vd, int operation, caddr_t data, size_t blk, size_t len) argument
1502 vd_scsi_rdwr(vd_t *vd, int operation, caddr_t data, size_t vblk, size_t vlen) argument
1602 vd_slice_flabel_read(vd_t *vd, caddr_t data, size_t offset, size_t length) argument
1658 vd_slice_flabel_write(vd_t *vd, caddr_t data, size_t offset, size_t length) argument
1744 vd_slice_fake_rdwr(vd_t *vd, int slice, int operation, caddr_t *datap, size_t *blkp, size_t *lengthp) argument
1891 vd_flush_write(vd_t *vd) argument
1910 vd_t *vd = task->vd; local
1971 vd_t *vd = task->vd; local
2249 vd_need_reset(vd_t *vd, boolean_t reset_ldc) argument
2263 vd_reset_if_needed(vd_t *vd) argument
2338 vd_mark_in_reset(vd_t *vd) argument
2354 vd_mark_elem_done(vd_t *vd, int idx, int elem_status, int elem_nbytes) argument
2415 vd_t *vd = task->vd; local
2580 vd_t *vd = task->vd; local
2963 vd_slice_geom_isvalid(vd_t *vd, struct dk_geom *geom) argument
2983 vd_slice_vtoc_isvalid(vd_t *vd, struct extvtoc *vtoc) argument
3044 vd_do_slice_ioctl(vd_t *vd, int cmd, void *ioctl_arg) argument
3143 vds_efi_alloc_and_read(vd_t *vd, efi_gpt_t **gpt, efi_gpe_t **gpe) argument
3156 vds_efi_free(vd_t *vd, efi_gpt_t *gpt, efi_gpe_t *gpe) argument
3166 vd_dskimg_validate_efi(vd_t *vd) argument
3233 vd_dskimg_validate_geometry(vd_t *vd) argument
3288 vd_do_dskimg_ioctl(vd_t *vd, int cmd, void *ioctl_arg) argument
3401 vd_backend_ioctl(vd_t *vd, int cmd, caddr_t arg) argument
3480 vd_do_ioctl(vd_t *vd, vd_dring_payload_t *request, void* buf, vd_ioctl_t *ioctl) argument
3611 vd_t *vd = task->vd; local
3711 vd_t *vd = task->vd; local
3790 vd_scsi_reset(vd_t *vd) argument
3807 vd_t *vd = task->vd; local
3831 vd_t *vd = task->vd; local
3875 vd_t *vd = task->vd; local
3914 vd_t *vd = task->vd; local
4028 vd_reset_access(vd_t *vd) argument
4136 vd_t *vd = task->vd; local
4208 vd_t *vd = task->vd; local
4325 vd_process_ver_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4388 vd_set_exported_operations(vd_t *vd) argument
4424 vd_process_attr_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4548 vd_process_dring_reg_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4689 vd_process_dring_unreg_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4738 vd_check_seq_num(vd_t *vd, uint64_t seq_num) argument
4770 vd_process_desc_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4824 vd_process_element(vd_t *vd, vd_task_type_t type, uint32_t idx, vio_msg_t *msg, size_t msglen) argument
4867 vd_process_element_range(vd_t *vd, int start, int end, vio_msg_t *msg, size_t msglen) argument
4917 vd_process_dring_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4995 vd_do_process_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
5129 vd_process_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
5211 vd_enabled(vd_t *vd) argument
5224 vd_t *vd = (vd_t *)arg; local
5295 vd_t *vd = (vd_t *)(void *)arg; local
5443 vd_dskimg_is_iso_image(vd_t *vd) argument
5493 vd_is_atapi_device(vd_t *vd) argument
5521 vd_setup_full_disk(vd_t *vd) argument
5658 vd_setup_partition_vtoc(vd_t *vd) argument
5801 vd_setup_partition_efi(vd_t *vd) argument
5884 vd_setup_backend_vnode(vd_t *vd) argument
5955 vd_setup_slice_image(vd_t *vd) argument
5990 vd_setup_disk_image(vd_t *vd) argument
6098 vd_open_using_ldi_by_name(vd_t *vd, int flags) argument
6131 vd_setup_backend_ldi(vd_t *vd) argument
6231 vd_setup_single_slice_disk(vd_t *vd) argument
6354 vd_backend_check_size(vd_t *vd) argument
6501 vd_identify_dev(vd_t *vd, int *dtype) argument
6563 vd_setup_vd(vd_t *vd) argument
6722 vd_t *vd; local
6889 vd_t *vd = (vd_t *)arg; local
7004 vd_t *vd = NULL; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev.h57 extern int vdev_validate_aux(vdev_t *vd);
58 extern zio_t *vdev_probe(vdev_t *vd, zio_t *pio);
60 extern boolean_t vdev_is_bootable(vdev_t *vd);
62 extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid);
64 extern void vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t d,
66 extern boolean_t vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t d,
68 extern boolean_t vdev_dtl_empty(vdev_t *vd, vdev_dtl_type_t d);
69 extern void vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg,
71 extern boolean_t vdev_dtl_required(vdev_t *vd);
72 extern boolean_t vdev_resilver_needed(vdev_t *vd,
[all...]
H A Dvdev_impl.h62 typedef int vdev_open_func_t(vdev_t *vd, uint64_t *size, uint64_t *max_size,
64 typedef void vdev_close_func_t(vdev_t *vd);
65 typedef uint64_t vdev_asize_func_t(vdev_t *vd, uint64_t psize);
68 typedef void vdev_state_change_func_t(vdev_t *vd, int, int);
69 typedef void vdev_hold_func_t(vdev_t *vd);
70 typedef void vdev_rele_func_t(vdev_t *vd);
252 #define VDEV_UBERBLOCK_SHIFT(vd) \
253 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
255 #define VDEV_UBERBLOCK_COUNT(vd) \
256 (VDEV_UBERBLOCK_RING >> VDEV_UBERBLOCK_SHIFT(vd))
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps.kshlib63 function assert_zap_common # pool vd lvl zapobj
66 typeset vd="$2"
71 log_fail "$vd on $pool has no $lvl ZAP in config"
73 log_fail "$vd on $pool has no $lvl ZAP in MOS"
77 function assert_top_zap # pool vd conf
80 typeset vd="$2"
83 top_zap=$(get_top_vd_zap "$vd" $conf)
84 assert_zap_common $pool "$vd" "top" $top_zap
87 function assert_leaf_zap # pool vd conf
90 typeset vd
[all...]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvdsk_common.h538 * Given a pointer to the instance private data of a vDisk driver (vd),
542 #define VD_UPDATE_IO_STATS(vd, op, len) \
544 ASSERT((vd) != NULL); \
545 ASSERT(MUTEX_HELD(&(vd)->lock)); \
547 if ((vd)->io_stats != NULL) { \
548 kstat_io_t *kip = KSTAT_IO_PTR((vd)->io_stats); \
565 #define VD_KSTAT_WAITQ_ENTER(vd) \
566 if ((vd)->io_stats != NULL) { \
567 ASSERT(MUTEX_HELD(&(vd)->lock)); \
568 kstat_waitq_enter(KSTAT_IO_PTR((vd)
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Drdwr_vtoc.c47 #define libadm_vtoc_copy(vs, vd) \
50 vd->v_bootinfo[0] = (unsigned)vs->v_bootinfo[0]; \
51 vd->v_bootinfo[1] = (unsigned)vs->v_bootinfo[1]; \
52 vd->v_bootinfo[2] = (unsigned)vs->v_bootinfo[2]; \
53 vd->v_sanity = (unsigned)vs->v_sanity; \
54 vd->v_version = (unsigned)vs->v_version; \
55 bcopy(vs->v_volume, vd->v_volume, LEN_DKL_VVOL); \
56 vd->v_sectorsz = vs->v_sectorsz; \
57 vd->v_nparts = vs->v_nparts; \
58 vd
[all...]

Completed in 135 milliseconds

123