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
309 vdev_initialize_calculate_progress(vdev_t *vd) argument
387 vdev_initialize_load(vdev_t *vd) argument
418 vdev_t *vd = arg; local
465 vdev_t *vd = arg; local
555 vdev_initialize(vdev_t *vd) argument
574 vdev_initialize_stop_wait_impl(vdev_t *vd) argument
591 vdev_t *vd; local
612 vdev_initialize_stop(vdev_t *vd, vdev_initializing_state_t tgt_state, list_t *vd_list) argument
641 vdev_initialize_stop_all_impl(vdev_t *vd, vdev_initializing_state_t tgt_state, list_t *vd_list) argument
662 vdev_initialize_stop_all(vdev_t *vd, vdev_initializing_state_t tgt_state) argument
684 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_seg64_t *in, range_seg64_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
547 vdev_t *vd; local
815 vdev_free(vdev_t *vd) argument
951 vdev_t *vd; local
1046 vdev_top_update(vdev_t *tvd, vdev_t *vd) argument
1135 vdev_metaslab_group_create(vdev_t *vd) argument
1184 vdev_metaslab_init(vdev_t *vd, uint64_t txg) argument
1281 vdev_metaslab_fini(vdev_t *vd) argument
1329 vdev_t *vd = zio->io_vd; local
1388 vdev_probe(vdev_t *vd, zio_t *zio) argument
1481 vdev_t *vd = arg; local
1489 vdev_uses_zvols(vdev_t *vd) argument
1501 vdev_open_children(vdev_t *vd) argument
1542 vdev_set_deflate_ratio(vdev_t *vd) argument
1554 vdev_open(vdev_t *vd) argument
1794 vdev_validate(vdev_t *vd) argument
2093 vdev_close(vdev_t *vd) argument
2126 vdev_hold(vdev_t *vd) argument
2142 vdev_rele(vdev_t *vd) argument
2161 vdev_reopen(vdev_t *vd) argument
2194 vdev_create(vdev_t *vd, uint64_t txg, boolean_t isreplacing) argument
2224 vdev_metaslab_set_size(vdev_t *vd) argument
2297 vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg) argument
2315 vdev_dirty_leaves(vdev_t *vd, int flags, uint64_t txg) argument
2363 vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t t, uint64_t txg, uint64_t size) argument
2378 vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t t, uint64_t txg, uint64_t size) argument
2406 vdev_dtl_empty(vdev_t *vd, vdev_dtl_type_t t) argument
2422 vdev_dtl_need_resilver(vdev_t *vd, uint64_t offset, size_t psize) argument
2437 vdev_dtl_min(vdev_t *vd) argument
2450 vdev_dtl_max(vdev_t *vd) argument
2468 vdev_dtl_should_excise(vdev_t *vd) argument
2506 vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg, int scrub_done) argument
2617 vdev_dtl_load(vdev_t *vd) argument
2650 vdev_zap_allocation_data(vdev_t *vd, dmu_tx_t *tx) argument
2674 vdev_destroy_unlink_zap(vdev_t *vd, uint64_t zapobj, dmu_tx_t *tx) argument
2684 vdev_create_link_zap(vdev_t *vd, dmu_tx_t *tx) argument
2698 vdev_construct_zaps(vdev_t *vd, dmu_tx_t *tx) argument
2720 vdev_dtl_sync(vdev_t *vd, uint64_t txg) argument
2799 vdev_dtl_required(vdev_t *vd) argument
2832 vdev_resilver_needed(vdev_t *vd, uint64_t *minp, uint64_t *maxp) argument
2874 vdev_checkpoint_sm_object(vdev_t *vd) argument
2891 vdev_load(vdev_t *vd) argument
3015 vdev_validate_aux(vdev_t *vd) argument
3050 vdev_destroy_ms_flush_data(vdev_t *vd, dmu_tx_t *tx) argument
3073 vdev_destroy_spacemaps(vdev_t *vd, dmu_tx_t *tx) argument
3100 vdev_remove_empty_log(vdev_t *vd, uint64_t txg) argument
3120 vdev_sync_done(vdev_t *vd, uint64_t txg) argument
3136 vdev_sync(vdev_t *vd, uint64_t txg) argument
3194 vdev_psize_to_asize(vdev_t *vd, uint64_t psize) argument
3206 vdev_t *vd, *tvd; local
3262 vdev_t *vd; local
3297 vdev_t *vd, *tvd, *pvd, *rvd = spa->spa_root_vdev; local
3378 vdev_t *vd, *tvd; local
3496 vdev_clear(spa_t *spa, vdev_t *vd) argument
3569 vdev_is_dead(vdev_t *vd) argument
3584 vdev_readable(vdev_t *vd) argument
3590 vdev_writeable(vdev_t *vd) argument
3597 vdev_allocatable(vdev_t *vd) argument
3615 vdev_accessible(vdev_t *vd, zio_t *zio) argument
3632 vdev_is_spacemap_addressable(vdev_t *vd) argument
3656 vdev_get_stats(vdev_t *vd, vdev_stat_t *vs) argument
3730 vdev_clear_stats(vdev_t *vd) argument
3740 vdev_scan_stat_init(vdev_t *vd) argument
3757 vdev_t *vd = zio->io_vd ? zio->io_vd : rvd; local
3904 vdev_deflated_space(vdev_t *vd, int64_t space) argument
3917 vdev_space_update(vdev_t *vd, int64_t alloc_delta, int64_t defer_delta, int64_t space_delta) argument
3963 vdev_config_dirty(vdev_t *vd) argument
4037 vdev_config_clean(vdev_t *vd) argument
4056 vdev_state_dirty(vdev_t *vd) argument
4079 vdev_state_clean(vdev_t *vd) argument
4095 vdev_propagate_state(vdev_t *vd) argument
4160 vdev_set_state(vdev_t *vd, boolean_t isopen, vdev_state_t state, vdev_aux_t aux) argument
4291 vdev_children_are_offline(vdev_t *vd) argument
4309 vdev_is_bootable(vdev_t *vd) argument
4343 vdev_is_concrete(vdev_t *vd) argument
4360 vdev_log_state_valid(vdev_t *vd) argument
4377 vdev_expand(vdev_t *vd, uint64_t txg) argument
4397 vdev_split(vdev_t *vd) argument
4413 vdev_deadman(vdev_t *vd) argument
4451 vdev_set_deferred_resilver(spa_t *spa, vdev_t *vd) argument
4474 vdev_xlate(vdev_t *vd, const range_seg64_t *logical_rs, range_seg64_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
582 vdev_trim_calculate_progress(vdev_t *vd) argument
661 vdev_trim_load(vdev_t *vd) argument
726 vdev_t *vd = ta->trim_vdev; local
794 vdev_t *vd = arg; local
916 vdev_trim(vdev_t *vd, uint64_t rate, boolean_t partial, boolean_t secure) argument
935 vdev_trim_stop_wait_impl(vdev_t *vd) argument
952 vdev_t *vd; local
973 vdev_trim_stop(vdev_t *vd, vdev_trim_state_t tgt_state, list_t *vd_list) argument
1002 vdev_trim_stop_all_impl(vdev_t *vd, vdev_trim_state_t tgt_state, list_t *vd_list) argument
1023 vdev_trim_stop_all(vdev_t *vd, vdev_trim_state_t tgt_state) argument
1048 vdev_trim_restart(vdev_t *vd) argument
1114 vdev_t *vd = arg; local
[all...]
H A Dvdev_root.c42 vdev_root_core_tvds(vdev_t *vd) argument
46 for (uint64_t c = 0; c < vd->vdev_children; c++) {
47 vdev_t *cvd = vd->vdev_child[c];
68 too_many_errors(vdev_t *vd, uint64_t numerrors) argument
75 tvds = vdev_root_core_tvds(vd);
81 return (numerrors > spa_missing_tvds_allowed(vd->vdev_spa));
85 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, argument
88 spa_t *spa = vd->vdev_spa;
92 if (vd->vdev_children == 0) {
93 vd
124 vdev_root_close(vdev_t *vd) argument
131 vdev_root_state_change(vdev_t *vd, int faulted, int degraded) argument
[all...]
H A Dvdev_disk.c95 vdev_disk_alloc(vdev_t *vd) argument
99 dvd = vd->vdev_tsd = kmem_zalloc(sizeof (vdev_disk_t), KM_SLEEP);
108 vdev_disk_free(vdev_t *vd) argument
110 vdev_disk_t *dvd = vd->vdev_tsd;
118 * callbacks and free vd->vdev_tsd.
127 vd->vdev_tsd = NULL;
135 vdev_t *vd = (vdev_t *)arg; local
136 vdev_disk_t *dvd = vd->vdev_tsd;
150 * freeing of vd->vdev_tsd to the offline finalize or a reopen.
153 vdev_disk_close(vd);
171 vdev_t *vd = (vdev_t *)arg; local
206 vdev_t *vd = (vdev_t *)arg; local
228 vdev_disk_hold(vdev_t *vd) argument
270 vdev_disk_rele(vdev_t *vd) argument
297 vdev_disk_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, uint64_t *ashift) argument
748 vdev_disk_close(vdev_t *vd) argument
811 vdev_disk_dumpio(vdev_t *vd, caddr_t data, size_t size, uint64_t offset, uint64_t origoffset, boolean_t doread, boolean_t isdump) argument
896 vdev_t *vd = zio->io_vd; local
1038 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_removal.c187 spa_vdev_removal_create(vdev_t *vd) argument
193 svr->svr_vdev_id = vd->vdev_id;
238 vdev_t *vd = vdev_lookup_top(spa, vdev_id); local
239 vdev_indirect_config_t *vic = &vd->vdev_indirect_config;
244 ASSERT3P(vd->vdev_ops, !=, &vdev_raidz_ops);
245 svr = spa_vdev_removal_create(vd);
247 ASSERT(vd->vdev_removing);
248 ASSERT3P(vd->vdev_indirect_mapping, ==, NULL);
259 VERIFY0(zap_add(spa->spa_meta_objset, vd->vdev_top_zap,
262 ASSERT3U(vdev_obsolete_counts_are_precise(vd), !
394 vdev_t *vd = vdev_lookup_top(spa, local
422 vdev_t *vd = vdev_lookup_top(spa, indirect_vdev_id); local
477 free_from_removing_vdev(vdev_t *vd, uint64_t offset, uint64_t size) argument
671 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
697 vdev_t *vd = arg; local
714 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
904 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
1356 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
1552 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id); local
1693 vdev_t *vd = vdev_lookup_top(spa, vdid); local
1729 vdev_remove_make_hole_and_free(vdev_t *vd) argument
1754 spa_vdev_remove_log(vdev_t *vd, uint64_t *txg) argument
1871 spa_vdev_remove_top_check(vdev_t *vd) argument
1976 spa_vdev_remove_top(vdev_t *vd, uint64_t *txg) argument
2067 vdev_t *vd; local
2186 vdev_t *vd = spa->spa_root_vdev->vdev_child[indirect_vdev_id]; local
[all...]
H A Dspa_checkpoint.c209 vdev_t *vd = sdc->sdc_vd; local
210 metaslab_t *ms = vd->vdev_ms[sme->sme_offset >> vd->vdev_ms_shift];
238 vdev_dirty(vd, VDD_METASLAB, ms, sdc->sdc_txg);
242 ASSERT3U(vd->vdev_spa->spa_checkpoint_info.sci_dspace, >=,
244 ASSERT3U(vd->vdev_stat.vs_checkpoint_space, >=, sme->sme_run);
246 vd->vdev_spa->spa_checkpoint_info.sci_dspace -= sme->sme_run;
247 vd->vdev_stat.vs_checkpoint_space -= sme->sme_run;
261 vdev_t *vd = rvd->vdev_child[c]; local
263 if (vd
280 vdev_t *vd = arg; local
401 vdev_t *vd = rvd->vdev_child[c]; 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 266 milliseconds

1234