/illumos-gate/usr/src/lib/libast/common/vmalloc/ |
H A D | vmregion.c | 45 Vmdata_t *vd; local 50 vd = SEG(BLOCK(addr))->vmdt; 52 if(vm->data == vd)
|
H A D | vmsegment.c | 44 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 D | vmclear.c | 45 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 D | vmclose.c | 43 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 D | vmset.c | 45 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 D | vmstat.c | 46 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 D | vmopen.c | 40 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 D | vmlast.c | 46 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 D | vmprivate.c | 51 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 D | vmpool.c | 49 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 D | vmtrace.c | 112 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 D | vmdebug.c | 90 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 D | vdev_missing.c | 47 vdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, argument 64 vdev_missing_close(vdev_t *vd) argument
|
H A D | vdev_root.c | 41 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 D | vdev_file.c | 45 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 D | spa_checkpoint.c | 209 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...] |
H A D | spa_config.c | 360 * based on whether vd is the root vdev. 363 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) argument 372 if (vd == NULL) { 373 vd = rvd; 424 if (vd != rvd) { 426 vd->vdev_top->vdev_guid); 428 vd->vdev_guid); 429 if (vd->vdev_isspare) { 433 if (vd->vdev_islog) { 437 vd [all...] |
H A D | zio_inject.c | 180 vdev_t *vd = vdev_lookup_top(zio->io_spa, local 187 if (zio->io_vd == vd && zio->io_offset == off) 282 vdev_t *vd = zio->io_vd; local 288 offset < vd->vdev_psize - VDEV_LABEL_END_SIZE) 306 label = vdev_label_number(vd->vdev_psize, offset); 307 start = vdev_label_offset(vd->vdev_psize, label, start); 308 end = vdev_label_offset(vd->vdev_psize, label, end); 322 zio_handle_device_injection(vdev_t *vd, zio_t *zio, int error) argument 335 offset >= vd->vdev_psize - VDEV_LABEL_END_SIZE) 347 if (vd 469 vdev_t *vd = zio->io_vd; local [all...] |
H A D | mmp.c | 392 vdev_t *vd = zio->io_vd; local 396 uint64_t mmp_kstat_id = vd->vdev_mmp_kstat_id; 397 hrtime_t mmp_write_duration = gethrtime() - vd->vdev_mmp_pending; 401 vd->vdev_mmp_pending = 0; 402 vd->vdev_mmp_kstat_id = 0; 439 vdev_t *vd = NULL; local 487 vd = spa->spa_mmp.mmp_last_leaf; 492 spa_name(spa), gethrtime(), vd->vdev_guid); 516 vd->vdev_mmp_pending = gethrtime(); 517 vd [all...] |
H A D | vdev_cache.c | 214 vdev_t *vd = fio->io_vd; local 215 vdev_cache_t *vc = &vd->vdev_cache; 365 vdev_cache_purge(vdev_t *vd) argument 367 vdev_cache_t *vc = &vd->vdev_cache; 377 vdev_cache_init(vdev_t *vd) argument 379 vdev_cache_t *vc = &vd->vdev_cache; 393 vdev_cache_fini(vdev_t *vd) argument 395 vdev_cache_t *vc = &vd->vdev_cache; 397 vdev_cache_purge(vd);
|
H A D | vdev_initialize.c | 48 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...] |
/illumos-gate/usr/src/cmd/fm/schemes/zfs/ |
H A D | scheme.c | 203 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,
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | multilink.c | 220 TDB_DATA kd, vd; local 226 vd = tdb_fetch(pppdb, kd); 227 if (vd.dptr != NULL) { 228 ret = vd.dsize == key.dsize 229 && memcmp(vd.dptr, key.dptr, vd.dsize) == 0; 230 free(vd.dptr);
|
/illumos-gate/usr/src/boot/sys/boot/i386/isoboot/ |
H A D | cd9660read.c | 226 struct iso_primary_descriptor *vd; local 238 vd = (struct iso_primary_descriptor *)blkbuf; 240 if (bcmp(vd->id, ISO_STANDARD_ID, sizeof (vd->id)) != 0) 242 if (isonum_711(vd->type) == ISO_VD_END) 244 if (isonum_711(vd->type) == ISO_VD_PRIMARY) 248 bcopy(vd->root_directory_record, &rec, sizeof (rec));
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | vdisk.c | 75 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...] |