Searched defs:vd (Results 1 - 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmregion.c45 Vmdata_t *vd; local
50 vd = SEG(BLOCK(addr))->vmdt;
52 if(vm->data == vd)
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 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 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 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 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 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 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 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 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 Dvmtrace.c112 Vmdata_t* vd = vm->data; local
128 { type = vd->mode&VM_METHODS;
254 Vmdata_t* vd = vm->data; local
256 if(Trfile < 0 || !(vd->mode&(VM_MTBEST|VM_MTDEBUG|VM_MTPROFILE)))
259 for(seg = vd->seg; seg; seg = seg->next)
269 if(vd->mode&VM_MTDEBUG)
273 else if(vd->mode&VM_MTPROFILE)
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_missing.c47 vdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, argument
64 vdev_missing_close(vdev_t *vd) argument
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_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 Dzio_inject.c217 vdev_t *vd = zio->io_vd; local
223 offset < vd->vdev_psize - VDEV_LABEL_END_SIZE)
241 label = vdev_label_number(vd->vdev_psize, offset);
242 start = vdev_label_offset(vd->vdev_psize, label, start);
243 end = vdev_label_offset(vd->vdev_psize, label, end);
257 zio_handle_device_injection(vdev_t *vd, zio_t *zio, int error) argument
270 offset >= vd->vdev_psize - VDEV_LABEL_END_SIZE)
282 if (vd->vdev_guid == handler->zi_record.zi_guid) {
301 vd->vdev_stat.vs_aux =
404 vdev_t *vd local
[all...]
H A Dspa_config.c350 * based on whether vd is the root vdev.
353 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) argument
361 if (vd == NULL) {
362 vd = rvd;
403 if (vd != rvd) {
405 vd->vdev_top->vdev_guid);
407 vd->vdev_guid);
408 if (vd->vdev_isspare) {
412 if (vd->vdev_islog) {
416 vd
[all...]
H A Dvdev_cache.c218 vdev_t *vd = fio->io_vd; local
219 vdev_cache_t *vc = &vd->vdev_cache;
368 vdev_cache_purge(vdev_t *vd) argument
370 vdev_cache_t *vc = &vd->vdev_cache;
380 vdev_cache_init(vdev_t *vd) argument
382 vdev_cache_t *vc = &vd->vdev_cache;
396 vdev_cache_fini(vdev_t *vd) argument
398 vdev_cache_t *vc = &vd->vdev_cache;
400 vdev_cache_purge(vd);
H A Dvdev_mirror.c77 vdev_t *vd = zio->io_vd; local
80 if (vd == NULL) {
111 c = vd->vdev_children;
115 mm->mm_replacing = (vd->vdev_ops == &vdev_replacing_ops ||
116 vd->vdev_ops == &vdev_spare_ops);
123 mc->mc_vd = vd->vdev_child[c];
134 vdev_mirror_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, argument
140 if (vd->vdev_children == 0) {
141 vd->vdev_stat.vs_aux = VDEV_AUX_BAD_LABEL;
145 vdev_open_children(vd);
170 vdev_mirror_close(vdev_t *vd) argument
445 vdev_mirror_state_change(vdev_t *vd, int faulted, int degraded) argument
[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_queue.c243 vdev_queue_init(vdev_t *vd) argument
245 vdev_queue_t *vq = &vd->vdev_queue;
248 vq->vq_vdev = vd;
278 vdev_queue_fini(vdev_t *vd) argument
280 vdev_queue_t *vq = &vd->vdev_queue;
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 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...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmultilink.c226 TDB_DATA kd, vd; local
232 vd = tdb_fetch(pppdb, kd);
233 if (vd.dptr != NULL) {
234 ret = vd.dsize == key.dsize
235 && memcmp(vd.dptr, key.dptr, vd.dsize) == 0;
236 free(vd.dptr);
/illumos-gate/usr/src/cmd/fm/schemes/zfs/
H A Dscheme.c203 nvlist_t *vd; local
220 vd = find_vdev(cb.cb_pool, vdev_guid);
221 if (vd == NULL) {
227 (void) nvlist_lookup_uint64_array(vd, ZPOOL_CONFIG_VDEV_STATS,

Completed in 119 milliseconds

12