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

1234

/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
1071 reg Vmdata_t* vd = vm->data; local
1125 reg Vmdata_t* vd = vm->data; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_initialize.c48 vdev_initialize_should_stop(vdev_t *vd) argument
50 return (vd->vdev_initialize_exit_wanted || !vdev_writeable(vd) ||
51 vd->vdev_detached || vd->vdev_top->vdev_removing);
69 vdev_t *vd = spa_lookup_by_guid(tx->tx_pool->dp_spa, guid, B_FALSE); local
70 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd))
73 uint64_t last_offset = vd
100 vdev_initialize_change_state(vdev_t *vd, vdev_initializing_state_t new_state) argument
154 vdev_t *vd = zio->io_vd; local
186 vdev_initialize_write(vdev_t *vd, uint64_t start, uint64_t size, abd_t *data) argument
279 vdev_initialize_ranges(vdev_t *vd, abd_t *data) argument
307 vdev_initialize_calculate_progress(vdev_t *vd) argument
381 vdev_initialize_load(vdev_t *vd) argument
412 vdev_t *vd = arg; local
459 vdev_t *vd = arg; local
545 vdev_initialize(vdev_t *vd) argument
564 vdev_initialize_stop_wait_impl(vdev_t *vd) argument
581 vdev_t *vd; local
602 vdev_initialize_stop(vdev_t *vd, vdev_initializing_state_t tgt_state, list_t *vd_list) argument
631 vdev_initialize_stop_all_impl(vdev_t *vd, vdev_initializing_state_t tgt_state, list_t *vd_list) argument
652 vdev_initialize_stop_all(vdev_t *vd, vdev_initializing_state_t tgt_state) argument
674 vdev_initialize_restart(vdev_t *vd) argument
[all...]
H A Dvdev.c111 vdev_dbgmsg(vdev_t *vd, const char *fmt, ...) argument
120 if (vd->vdev_path != NULL) {
121 zfs_dbgmsg("%s vdev '%s': %s", vd->vdev_ops->vdev_op_type,
122 vd->vdev_path, buf);
125 vd->vdev_ops->vdev_op_type,
126 (u_longlong_t)vd->vdev_id,
127 (u_longlong_t)vd->vdev_guid, buf);
132 vdev_dbgmsg_print_tree(vdev_t *vd, int indent) argument
136 if (vd->vdev_ishole || vd
218 vdev_default_xlate(vdev_t *vd, const range_seg_t *in, range_seg_t *res) argument
229 vdev_default_asize(vdev_t *vd, uint64_t psize) argument
249 vdev_get_min_asize(vdev_t *vd) argument
279 vdev_set_min_asize(vdev_t *vd) argument
303 vdev_lookup_by_guid(vdev_t *vd, uint64_t guid) argument
319 vdev_count_leaves_impl(vdev_t *vd) argument
460 vdev_t *vd; local
545 vdev_t *vd; local
813 vdev_free(vdev_t *vd) argument
949 vdev_t *vd; local
1044 vdev_top_update(vdev_t *tvd, vdev_t *vd) argument
1133 vdev_metaslab_group_create(vdev_t *vd) argument
1182 vdev_metaslab_init(vdev_t *vd, uint64_t txg) argument
1279 vdev_metaslab_fini(vdev_t *vd) argument
1327 vdev_t *vd = zio->io_vd; local
1386 vdev_probe(vdev_t *vd, zio_t *zio) argument
1479 vdev_t *vd = arg; local
1487 vdev_uses_zvols(vdev_t *vd) argument
1499 vdev_open_children(vdev_t *vd) argument
1540 vdev_set_deflate_ratio(vdev_t *vd) argument
1552 vdev_open(vdev_t *vd) argument
1792 vdev_validate(vdev_t *vd) argument
2091 vdev_close(vdev_t *vd) argument
2124 vdev_hold(vdev_t *vd) argument
2140 vdev_rele(vdev_t *vd) argument
2159 vdev_reopen(vdev_t *vd) argument
2192 vdev_create(vdev_t *vd, uint64_t txg, boolean_t isreplacing) argument
2222 vdev_metaslab_set_size(vdev_t *vd) argument
2295 vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg) argument
2313 vdev_dirty_leaves(vdev_t *vd, int flags, uint64_t txg) argument
2361 vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t t, uint64_t txg, uint64_t size) argument
2376 vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t t, uint64_t txg, uint64_t size) argument
2404 vdev_dtl_empty(vdev_t *vd, vdev_dtl_type_t t) argument
2420 vdev_dtl_need_resilver(vdev_t *vd, uint64_t offset, size_t psize) argument
2435 vdev_dtl_min(vdev_t *vd) argument
2451 vdev_dtl_max(vdev_t *vd) argument
2472 vdev_dtl_should_excise(vdev_t *vd) argument
2510 vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg, int scrub_done) argument
2621 vdev_dtl_load(vdev_t *vd) argument
2654 vdev_zap_allocation_data(vdev_t *vd, dmu_tx_t *tx) argument
2678 vdev_destroy_unlink_zap(vdev_t *vd, uint64_t zapobj, dmu_tx_t *tx) argument
2688 vdev_create_link_zap(vdev_t *vd, dmu_tx_t *tx) argument
2702 vdev_construct_zaps(vdev_t *vd, dmu_tx_t *tx) argument
2724 vdev_dtl_sync(vdev_t *vd, uint64_t txg) argument
2803 vdev_dtl_required(vdev_t *vd) argument
2836 vdev_resilver_needed(vdev_t *vd, uint64_t *minp, uint64_t *maxp) argument
2878 vdev_checkpoint_sm_object(vdev_t *vd) argument
2895 vdev_load(vdev_t *vd) argument
3019 vdev_validate_aux(vdev_t *vd) argument
3054 vdev_destroy_ms_flush_data(vdev_t *vd, dmu_tx_t *tx) argument
3077 vdev_destroy_spacemaps(vdev_t *vd, dmu_tx_t *tx) argument
3104 vdev_remove_empty_log(vdev_t *vd, uint64_t txg) argument
3124 vdev_sync_done(vdev_t *vd, uint64_t txg) argument
3140 vdev_sync(vdev_t *vd, uint64_t txg) argument
3198 vdev_psize_to_asize(vdev_t *vd, uint64_t psize) argument
3210 vdev_t *vd, *tvd; local
3266 vdev_t *vd; local
3301 vdev_t *vd, *tvd, *pvd, *rvd = spa->spa_root_vdev; local
3382 vdev_t *vd, *tvd; local
3500 vdev_clear(spa_t *spa, vdev_t *vd) argument
3573 vdev_is_dead(vdev_t *vd) argument
3588 vdev_readable(vdev_t *vd) argument
3594 vdev_writeable(vdev_t *vd) argument
3601 vdev_allocatable(vdev_t *vd) argument
3619 vdev_accessible(vdev_t *vd, zio_t *zio) argument
3636 vdev_is_spacemap_addressable(vdev_t *vd) argument
3660 vdev_get_stats(vdev_t *vd, vdev_stat_t *vs) argument
3734 vdev_clear_stats(vdev_t *vd) argument
3744 vdev_scan_stat_init(vdev_t *vd) argument
3761 vdev_t *vd = zio->io_vd ? zio->io_vd : rvd; local
3908 vdev_deflated_space(vdev_t *vd, int64_t space) argument
3921 vdev_space_update(vdev_t *vd, int64_t alloc_delta, int64_t defer_delta, int64_t space_delta) argument
3967 vdev_config_dirty(vdev_t *vd) argument
4041 vdev_config_clean(vdev_t *vd) argument
4060 vdev_state_dirty(vdev_t *vd) argument
4083 vdev_state_clean(vdev_t *vd) argument
4099 vdev_propagate_state(vdev_t *vd) argument
4164 vdev_set_state(vdev_t *vd, boolean_t isopen, vdev_state_t state, vdev_aux_t aux) argument
4295 vdev_children_are_offline(vdev_t *vd) argument
4313 vdev_is_bootable(vdev_t *vd) argument
4347 vdev_is_concrete(vdev_t *vd) argument
4364 vdev_log_state_valid(vdev_t *vd) argument
4381 vdev_expand(vdev_t *vd, uint64_t txg) argument
4401 vdev_split(vdev_t *vd) argument
4417 vdev_deadman(vdev_t *vd) argument
4455 vdev_set_deferred_resilver(spa_t *spa, vdev_t *vd) argument
4478 vdev_xlate(vdev_t *vd, const range_seg_t *logical_rs, range_seg_t *physical_rs) argument
[all...]
H A Dvdev_trim.c168 vdev_trim_should_stop(vdev_t *vd) argument
170 return (vd->vdev_trim_exit_wanted || !vdev_writeable(vd) ||
171 vd->vdev_detached || vd->vdev_top->vdev_removing);
204 vdev_t *vd = spa_lookup_by_guid(tx->tx_pool->dp_spa, guid, B_FALSE); local
205 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd))
208 uint64_t last_offset = vd
269 vdev_trim_change_state(vdev_t *vd, vdev_trim_state_t new_state, uint64_t rate, boolean_t partial, boolean_t secure) argument
360 vdev_t *vd = zio->io_vd; local
406 vdev_t *vd = zio->io_vd; local
450 vdev_t *vd = ta->trim_vdev; local
536 vdev_t *vd = ta->trim_vdev; local
580 vdev_trim_calculate_progress(vdev_t *vd) argument
656 vdev_trim_load(vdev_t *vd) argument
721 vdev_t *vd = ta->trim_vdev; local
789 vdev_t *vd = arg; local
911 vdev_trim(vdev_t *vd, uint64_t rate, boolean_t partial, boolean_t secure) argument
930 vdev_trim_stop_wait_impl(vdev_t *vd) argument
947 vdev_t *vd; local
968 vdev_trim_stop(vdev_t *vd, vdev_trim_state_t tgt_state, list_t *vd_list) argument
997 vdev_trim_stop_all_impl(vdev_t *vd, vdev_trim_state_t tgt_state, list_t *vd_list) argument
1018 vdev_trim_stop_all(vdev_t *vd, vdev_trim_state_t tgt_state) argument
1043 vdev_trim_restart(vdev_t *vd) argument
1109 vdev_t *vd = arg; local
[all...]
H A Dvdev_root.c41 vdev_root_core_tvds(vdev_t *vd) argument
45 for (uint64_t c = 0; c < vd->vdev_children; c++) {
46 vdev_t *cvd = vd->vdev_child[c];
67 too_many_errors(vdev_t *vd, uint64_t numerrors) argument
74 tvds = vdev_root_core_tvds(vd);
80 return (numerrors > spa_missing_tvds_allowed(vd->vdev_spa));
84 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, argument
87 spa_t *spa = vd->vdev_spa;
91 if (vd->vdev_children == 0) {
92 vd
123 vdev_root_close(vdev_t *vd) argument
130 vdev_root_state_change(vdev_t *vd, int faulted, int degraded) argument
[all...]
H A Dvdev_disk.c82 vdev_disk_alloc(vdev_t *vd) argument
86 dvd = vd->vdev_tsd = kmem_zalloc(sizeof (vdev_disk_t), KM_SLEEP);
95 vdev_disk_free(vdev_t *vd) argument
97 vdev_disk_t *dvd = vd->vdev_tsd;
105 * callbacks and free vd->vdev_tsd.
114 vd->vdev_tsd = NULL;
122 vdev_t *vd = (vdev_t *)arg; local
123 vdev_disk_t *dvd = vd->vdev_tsd;
137 * freeing of vd->vdev_tsd to the offline finalize or a reopen.
140 vdev_disk_close(vd);
158 vdev_t *vd = (vdev_t *)arg; local
193 vdev_t *vd = (vdev_t *)arg; local
215 vdev_disk_hold(vdev_t *vd) argument
257 vdev_disk_rele(vdev_t *vd) argument
284 vdev_disk_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, uint64_t *ashift) argument
735 vdev_disk_close(vdev_t *vd) argument
770 vdev_disk_physio(vdev_t *vd, caddr_t data, size_t size, uint64_t offset, int flags, boolean_t isdump) argument
877 vdev_t *vd = zio->io_vd; local
1019 vdev_t *vd = zio->io_vd; local
[all...]
H A Dvdev_label.c185 vdev_label_read(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset, argument
193 zio_nowait(zio_read_phys(zio, vd,
194 vdev_label_offset(vd->vdev_psize, l, offset),
200 vdev_label_write(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset, argument
208 zio_nowait(zio_write_phys(zio, vd,
209 vdev_label_offset(vd->vdev_psize, l, offset),
215 root_vdev_actions_getprogress(vdev_t *vd, nvlist_t *nvl) argument
217 spa_t *spa = vd->vdev_spa;
219 if (vd != spa->spa_root_vdev)
249 vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_ argument
576 vdev_label_read_config(vdev_t *vd, uint64_t txg) argument
659 vdev_inuse(vdev_t *vd, uint64_t crtxg, vdev_labeltype_t reason, uint64_t *spare_guid, uint64_t *l2cache_guid) argument
778 vdev_label_init(vdev_t *vd, uint64_t crtxg, vdev_labeltype_t reason) argument
1064 vdev_t *vd = zio->io_vd; local
1092 vdev_uberblock_load_impl(zio_t *zio, vdev_t *vd, int flags, struct ubl_cbdata *cbp) argument
1180 vdev_uberblock_sync(zio_t *zio, uint64_t *good_writes, uberblock_t *ub, vdev_t *vd, int flags) argument
1283 vdev_label_sync(zio_t *zio, uint64_t *good_writes, vdev_t *vd, int l, uint64_t txg, int flags) argument
1333 vdev_t *vd; local
[all...]
H A Dvdev_file.c45 vdev_file_hold(vdev_t *vd) argument
47 ASSERT(vd->vdev_path != NULL);
51 vdev_file_rele(vdev_t *vd) argument
53 ASSERT(vd->vdev_path != NULL);
57 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, argument
68 vd->vdev_nonrot = B_TRUE;
75 vd->vdev_has_trim = B_TRUE;
81 vd->vdev_has_securetrim = B_FALSE;
86 if (vd->vdev_path == NULL || vd
148 vdev_file_close(vdev_t *vd) argument
218 vdev_t *vd = zio->io_vd; local
[all...]
H A Dvdev_removal.c187 spa_vdev_removal_create(vdev_t *vd) argument
193 svr->svr_vdev_id = vd->vdev_id;
237 vdev_t *vd = vdev_lookup_top(spa, vdev_id); local
238 vdev_indirect_config_t *vic = &vd->vdev_indirect_config;
243 ASSERT3P(vd->vdev_ops, !=, &vdev_raidz_ops);
244 svr = spa_vdev_removal_create(vd);
246 ASSERT(vd->vdev_removing);
247 ASSERT3P(vd->vdev_indirect_mapping, ==, NULL);
258 VERIFY0(zap_add(spa->spa_meta_objset, vd->vdev_top_zap,
261 ASSERT3U(vdev_obsolete_counts_are_precise(vd), !
393 vdev_t *vd = vdev_lookup_top(spa, local
421 vdev_t *vd = vdev_lookup_top(spa, indirect_vdev_id); local
476 free_from_removing_vdev(vdev_t *vd, uint64_t offset, uint64_t size) argument
670 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
696 vdev_t *vd = arg; local
713 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
903 spa_vdev_copy_segment(vdev_t *vd, range_tree_t *segs, uint64_t maxalloc, uint64_t txg, vdev_copy_arg_t *vca, zio_alloc_list_t *zal) argument
1043 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
1072 vdev_remove_enlist_zaps(vdev_t *vd, nvlist_t *zlist) argument
1090 vdev_remove_replace_with_indirect(vdev_t *vd, uint64_t txg) argument
1145 vdev_t *vd = vdev_lookup_top(spa, spa->spa_vdev_removal->svr_vdev_id); local
1210 spa_vdev_copy_impl(vdev_t *vd, spa_vdev_removal_t *svr, vdev_copy_arg_t *vca, uint64_t *max_alloc, dmu_tx_t *tx) argument
1353 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
1549 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
1690 vdev_t *vd = vdev_lookup_top(spa, vdid); local
1726 vdev_remove_make_hole_and_free(vdev_t *vd) argument
1751 spa_vdev_remove_log(vdev_t *vd, uint64_t *txg) argument
1868 spa_vdev_remove_top_check(vdev_t *vd) argument
1973 spa_vdev_remove_top(vdev_t *vd, uint64_t *txg) argument
2064 vdev_t *vd; local
2183 vdev_t *vd = spa->spa_root_vdev->vdev_child[indirect_vdev_id]; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_initialize.h35 extern void vdev_initialize(vdev_t *vd);
36 extern void vdev_initialize_stop(vdev_t *vd,
38 extern void vdev_initialize_stop_all(vdev_t *vd,
41 extern void vdev_initialize_restart(vdev_t *vd);
H A Dvdev.h51 extern void vdev_dbgmsg(vdev_t *vd, const char *fmt, ...);
62 extern int vdev_validate_aux(vdev_t *vd);
63 extern zio_t *vdev_probe(vdev_t *vd, zio_t *pio);
64 extern boolean_t vdev_is_concrete(vdev_t *vd);
65 extern boolean_t vdev_is_bootable(vdev_t *vd);
67 extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid);
69 extern void vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t d,
71 extern boolean_t vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t d,
73 extern boolean_t vdev_dtl_empty(vdev_t *vd, vdev_dtl_type_t d);
74 extern boolean_t vdev_dtl_need_resilver(vdev_t *vd, uint64_
[all...]
H A Dvdev_trim.h37 extern void vdev_trim(vdev_t *vd, uint64_t rate, boolean_t partial,
39 extern void vdev_trim_stop(vdev_t *vd, vdev_trim_state_t tgt, list_t *vd_list);
40 extern void vdev_trim_stop_all(vdev_t *vd, vdev_trim_state_t tgt_state);
42 extern void vdev_trim_restart(vdev_t *vd);
45 extern void vdev_autotrim_stop_wait(vdev_t *vd);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dvdisk.c75 vdisk_info_t *vd; local
77 STAILQ_FOREACH(vd, &vdisk_list, vdisk_link) {
78 if (vd->vdisk_unit == dev->d_unit)
79 return (vd);
81 return (vd);
89 vdisk_info_t *vd, *p; local
97 STAILQ_FOREACH(vd, &vdisk_list, vdisk_link) {
98 if (strcmp(vd->vdisk_path, argv[1]) == 0) {
101 vd->vdisk_unit);
126 vd
193 vdisk_info_t *vd; local
251 vdisk_info_t *vd; local
297 vdisk_info_t *vd; local
321 vdisk_info_t *vd; local
340 vdisk_info_t *vd; local
373 vdisk_info_t *vd; local
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvds.c76 #define VD_NAME "vd"
219 (vd->dring + (i)*vd->descriptor_size))
222 #define VD_CLIENT(vd) \
223 (((vd)->xfer_mode == VIO_DESC_MODE) ? "in-band client" : \
224 (((vd)->xfer_mode == VIO_DRING_MODE_V1_0) ? "dring client" : \
225 (((vd)->xfer_mode == 0) ? "null client" : \
229 #define VD_DSKIMG_LABEL_READ(vd, labelp) \
230 vd_dskimg_rw(vd, VD_SLICE_NONE, VD_OP_BREAD, (caddr_t)labelp, \
234 #define VD_DSKIMG_LABEL_WRITE(vd, label
425 struct vd *vd; /* vd instance task is for */ member in struct:vd_task
441 typedef struct vd { struct
756 vd_dskimg_io_params(vd_t *vd, int slice, size_t *blkp, size_t *lenp) argument
873 vd_dskimg_rw(vd_t *vd, int slice, int operation, caddr_t data, size_t offset, size_t len) argument
1081 vd_dskimg_set_vtoc(vd_t *vd, struct dk_label *label) argument
1151 vd_dskimg_get_devid_block(vd_t *vd, size_t *blkp) argument
1234 vd_dskimg_read_devid(vd_t *vd, ddi_devid_t *devid) argument
1310 vd_dskimg_write_devid(vd_t *vd, ddi_devid_t devid) argument
1376 vd_do_scsi_rdwr(vd_t *vd, int operation, caddr_t data, size_t blk, size_t len) argument
1503 vd_scsi_rdwr(vd_t *vd, int operation, caddr_t data, size_t vblk, size_t vlen) argument
1603 vd_slice_flabel_read(vd_t *vd, caddr_t data, size_t offset, size_t length) argument
1659 vd_slice_flabel_write(vd_t *vd, caddr_t data, size_t offset, size_t length) argument
1745 vd_slice_fake_rdwr(vd_t *vd, int slice, int operation, caddr_t *datap, size_t *blkp, size_t *lengthp) argument
1892 vd_flush_write(vd_t *vd) argument
1911 vd_t *vd = task->vd; local
1972 vd_t *vd = task->vd; local
2250 vd_need_reset(vd_t *vd, boolean_t reset_ldc) argument
2264 vd_reset_if_needed(vd_t *vd) argument
2339 vd_mark_in_reset(vd_t *vd) argument
2355 vd_mark_elem_done(vd_t *vd, int idx, int elem_status, int elem_nbytes) argument
2416 vd_t *vd = task->vd; local
2581 vd_t *vd = task->vd; local
2964 vd_slice_geom_isvalid(vd_t *vd, struct dk_geom *geom) argument
2984 vd_slice_vtoc_isvalid(vd_t *vd, struct extvtoc *vtoc) argument
3045 vd_do_slice_ioctl(vd_t *vd, int cmd, void *ioctl_arg) argument
3144 vds_efi_alloc_and_read(vd_t *vd, efi_gpt_t **gpt, efi_gpe_t **gpe) argument
3157 vds_efi_free(vd_t *vd, efi_gpt_t *gpt, efi_gpe_t *gpe) argument
3167 vd_dskimg_validate_efi(vd_t *vd) argument
3234 vd_dskimg_validate_geometry(vd_t *vd) argument
3289 vd_do_dskimg_ioctl(vd_t *vd, int cmd, void *ioctl_arg) argument
3402 vd_backend_ioctl(vd_t *vd, int cmd, caddr_t arg) argument
3481 vd_do_ioctl(vd_t *vd, vd_dring_payload_t *request, void* buf, vd_ioctl_t *ioctl) argument
3612 vd_t *vd = task->vd; local
3712 vd_t *vd = task->vd; local
3791 vd_scsi_reset(vd_t *vd) argument
3808 vd_t *vd = task->vd; local
3832 vd_t *vd = task->vd; local
3876 vd_t *vd = task->vd; local
3915 vd_t *vd = task->vd; local
4029 vd_reset_access(vd_t *vd) argument
4137 vd_t *vd = task->vd; local
4209 vd_t *vd = task->vd; local
4326 vd_process_ver_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4389 vd_set_exported_operations(vd_t *vd) argument
4425 vd_process_attr_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4549 vd_process_dring_reg_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4690 vd_process_dring_unreg_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4739 vd_check_seq_num(vd_t *vd, uint64_t seq_num) argument
4771 vd_process_desc_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4825 vd_process_element(vd_t *vd, vd_task_type_t type, uint32_t idx, vio_msg_t *msg, size_t msglen) argument
4868 vd_process_element_range(vd_t *vd, int start, int end, vio_msg_t *msg, size_t msglen) argument
4918 vd_process_dring_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
4996 vd_do_process_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
5130 vd_process_msg(vd_t *vd, vio_msg_t *msg, size_t msglen) argument
5212 vd_enabled(vd_t *vd) argument
5225 vd_t *vd = (vd_t *)arg; local
5296 vd_t *vd = (vd_t *)(void *)arg; local
5444 vd_dskimg_is_iso_image(vd_t *vd) argument
5494 vd_is_atapi_device(vd_t *vd) argument
5522 vd_setup_full_disk(vd_t *vd) argument
5659 vd_setup_partition_vtoc(vd_t *vd) argument
5802 vd_setup_partition_efi(vd_t *vd) argument
5885 vd_setup_backend_vnode(vd_t *vd) argument
5956 vd_setup_slice_image(vd_t *vd) argument
5991 vd_setup_disk_image(vd_t *vd) argument
6099 vd_open_using_ldi_by_name(vd_t *vd, int flags) argument
6132 vd_setup_backend_ldi(vd_t *vd) argument
6232 vd_setup_single_slice_disk(vd_t *vd) argument
6355 vd_backend_check_size(vd_t *vd) argument
6502 vd_identify_dev(vd_t *vd, int *dtype) argument
6564 vd_setup_vd(vd_t *vd) argument
6723 vd_t *vd; local
6890 vd_t *vd = (vd_t *)arg; local
7005 vd_t *vd = NULL; local
[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...]

Completed in 130 milliseconds

1234