/freebsd-11.0-release/contrib/smbfs/examples/ |
H A D | smbfs.sh.sample | 20 for vol in ${vols}; do 21 $mount $vol 22 echo -n "$vol " 27 for vol in ${vols}; do 28 $umount $vol 29 echo -n "$vol "
|
/freebsd-11.0-release/sys/geom/raid/ |
H A D | tr_concat.c | 97 g_raid_tr_update_state_concat(struct g_raid_volume *vol) argument 105 sc = vol->v_softc; 106 trs = (struct g_raid_tr_concat_object *)vol->v_tr; 112 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 113 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED); 114 if (n + f == vol->v_disks_count) { 122 if (s != vol->v_state) { 128 if (vol->v_raid_level == G_RAID_VOLUME_RL_CONCAT && 130 !G_RAID_VOLUME_S_ALIVE(vol->v_state)) { 132 for (i = 0; i < vol 156 struct g_raid_volume *vol; local 184 struct g_raid_volume *vol; local 197 struct g_raid_volume *vol; local 210 struct g_raid_volume *vol; local 290 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid1e.c | 136 static int g_raid_tr_raid1e_select_read_disk(struct g_raid_volume *vol, 140 V2P(struct g_raid_volume *vol, off_t virt, argument 146 strip_size = vol->v_strip_size; 152 *disk = (nstrip * N) % vol->v_disks_count; 154 *offset = ((nstrip * N) / vol->v_disks_count) * strip_size; 158 P2V(struct g_raid_volume *vol, int disk, off_t offset, argument 164 strip_size = vol->v_strip_size; 168 nstrip = (offset / strip_size) * vol->v_disks_count + disk; 176 g_raid_tr_taste_raid1e(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument 189 g_raid_tr_update_state_raid1e_even(struct g_raid_volume *vol) argument 242 g_raid_tr_update_state_raid1e_odd(struct g_raid_volume *vol) argument 296 g_raid_tr_update_state_raid1e(struct g_raid_volume *vol, struct g_raid_subdisk *sd) argument 333 struct g_raid_volume *vol; local 358 struct g_raid_volume *vol; local 395 struct g_raid_volume *vol; local 426 struct g_raid_volume *vol; local 499 struct g_raid_volume *vol; local 557 struct g_raid_volume *vol; local 603 struct g_raid_volume *vol; local 616 struct g_raid_volume *vol; local 632 g_raid_tr_raid1e_select_read_disk(struct g_raid_volume *vol, int no, off_t off, off_t len, u_int mask) argument 687 struct g_raid_volume *vol; local 757 struct g_raid_volume *vol; local 835 struct g_raid_volume *vol; local 885 struct g_raid_volume *vol; local 1147 struct g_raid_volume *vol; local 1211 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid0.c | 95 g_raid_tr_update_state_raid0(struct g_raid_volume *vol) argument 102 sc = vol->v_softc; 103 trs = (struct g_raid_tr_raid0_object *)vol->v_tr; 109 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 110 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED); 111 if (n + f == vol->v_disks_count) { 119 if (s != vol->v_state) { 120 g_raid_event_send(vol, G_RAID_VOLUME_S_ALIVE(s) ? 123 g_raid_change_volume_state(vol, s); 125 g_raid_write_metadata(sc, vol, NUL 136 struct g_raid_volume *vol; local 164 struct g_raid_volume *vol; local 177 struct g_raid_volume *vol; local 190 struct g_raid_volume *vol; local 271 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid5.c | 101 g_raid_tr_taste_raid5(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument 130 g_raid_tr_update_state_raid5(struct g_raid_volume *vol, argument 138 sc = vol->v_softc; 139 trs = (struct g_raid_tr_raid5_object *)vol->v_tr; 146 na = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 147 ns = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_STALE) + 148 g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_RESYNC); 149 nu = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_UNINITIALIZED); 150 if (na == vol->v_disks_count) 152 else if (na + ns == vol 185 struct g_raid_volume *vol; local 199 struct g_raid_volume *vol; local 212 struct g_raid_volume *vol; local 344 struct g_raid_volume *vol; local [all...] |
H A D | g_raid.c | 121 static void g_raid_destroy_provider(struct g_raid_volume *vol); 124 static int g_raid_update_volume(struct g_raid_volume *vol, u_int event); 586 g_raid_change_volume_state(struct g_raid_volume *vol, int state) argument 589 G_RAID_DEBUG1(0, vol->v_softc, 591 vol->v_name, 592 g_raid_volume_state2str(vol->v_state), 594 vol->v_state = state; 722 g_raid_nsubdisks(struct g_raid_volume *vol, int state) argument 728 sc = vol->v_softc; 732 for (i = 0; i < vol 747 g_raid_get_subdisk(struct g_raid_volume *vol, int state) argument 811 struct g_raid_volume *vol; local 909 g_raid_clean(struct g_raid_volume *vol, int acw) argument 937 g_raid_dirty(struct g_raid_volume *vol) argument 957 struct g_raid_volume *vol; local 1008 struct g_raid_volume *vol; local 1037 struct g_raid_volume *vol; local 1054 struct g_raid_volume *vol; local 1076 struct g_raid_volume *vol; local 1169 g_raid_is_in_locked_range(struct g_raid_volume *vol, const struct bio *bp) argument 1186 struct g_raid_volume *vol; local 1227 g_raid_finish_with_locked_ranges(struct g_raid_volume *vol, struct bio *bp) argument 1263 struct g_raid_volume *vol; local 1284 g_raid_lock_range(struct g_raid_volume *vol, off_t off, off_t len, struct bio *ignore, void *argp) argument 1321 g_raid_unlock_range(struct g_raid_volume *vol, off_t off, off_t len) argument 1449 struct g_raid_volume *vol; local 1501 struct g_raid_volume *vol; local 1620 g_raid_launch_provider(struct g_raid_volume *vol) argument 1687 g_raid_destroy_provider(struct g_raid_volume *vol) argument 1719 g_raid_update_volume(struct g_raid_volume *vol, u_int event) argument 1767 struct g_raid_volume *vol; local 1824 struct g_raid_volume *vol; local 1919 struct g_raid_volume *vol, *vol1; local 1985 g_raid_start_volume(struct g_raid_volume *vol) argument 2027 struct g_raid_volume *vol, *tmpv; local 2076 g_raid_destroy_volume(struct g_raid_volume *vol) argument 2303 g_raid_write_metadata(struct g_raid_softc *sc, struct g_raid_volume *vol, struct g_raid_subdisk *sd, struct g_raid_disk *disk) argument 2337 struct g_raid_volume *vol; local 2462 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid1.c | 134 g_raid_tr_taste_raid1(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument 148 g_raid_tr_update_state_raid1(struct g_raid_volume *vol, argument 157 sc = vol->v_softc; 158 trs = (struct g_raid_tr_raid1_object *)vol->v_tr; 166 na = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 172 bestsd = &vol->v_subdisks[0]; 173 for (i = 1; i < vol->v_disks_count; i++) { 174 tsd = &vol->v_subdisks[i]; 187 vol->v_name, bestsd->sd_pos, 192 vol, bests 272 struct g_raid_volume *vol; local 309 struct g_raid_volume *vol; local 341 struct g_raid_volume *vol; local 406 struct g_raid_volume *vol; local 458 struct g_raid_volume *vol; local 471 struct g_raid_volume *vol; local 487 g_raid_tr_raid1_select_read_disk(struct g_raid_volume *vol, struct bio *bp, u_int mask) argument 545 struct g_raid_volume *vol; local 607 struct g_raid_volume *vol; local 657 struct g_raid_volume *vol; local 903 struct g_raid_volume *vol; local [all...] |
H A D | md_promise.c | 298 promise_meta_translate_disk(struct g_raid_volume *vol, int md_disk_pos) argument 302 if (md_disk_pos >= 0 && vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) { 303 width = vol->v_disks_count / 2; 533 struct g_raid_volume *vol; local 536 TAILQ_FOREACH(vol, &sc->sc_volumes, v_next) { 537 pv = vol->v_md_data; 541 return (vol); 547 struct g_raid_volume *vol, *tvol; local 552 TAILQ_FOREACH_SAFE(vol, &sc->sc_volumes, v_next, tvol) { 553 pv = vol 572 struct g_raid_volume *vol; local 658 g_raid_md_promise_start_disk(struct g_raid_disk *disk, int sdn, struct g_raid_volume *vol) argument 825 struct g_raid_volume *vol; local 887 g_raid_md_promise_start(struct g_raid_volume *vol) argument 961 struct g_raid_volume *vol; local 983 struct g_raid_volume *vol; local 1236 g_raid_md_volume_event_promise(struct g_raid_md_object *md, struct g_raid_volume *vol, u_int event) argument 1256 struct g_raid_volume *vol, *vol1; local 1695 struct g_raid_volume *vol; local 1975 g_raid_md_free_volume_promise(struct g_raid_md_object *md, struct g_raid_volume *vol) argument [all...] |
H A D | md_intel.c | 353 intel_get_vol_curr_migr_unit(struct intel_raid_vol *vol) argument 355 off_t curr_migr_unit = (off_t)vol->curr_migr_unit_hi << 32; 357 curr_migr_unit += vol->curr_migr_unit; 362 intel_set_vol_curr_migr_unit(struct intel_raid_vol *vol, off_t curr_migr_unit) argument 365 vol->curr_migr_unit = curr_migr_unit & 0xffffffff; 366 vol->curr_migr_unit_hi = curr_migr_unit >> 32; 1255 struct g_raid_volume *vol; local 1268 vol = g_raid_create_volume(sc, mvol->name, mvol->tid - 1); 1275 vol->v_md_data = pv; 1276 vol 1688 struct g_raid_volume *vol, *vol1; local 2348 struct g_raid_volume *vol; local 2682 g_raid_md_free_volume_intel(struct g_raid_md_object *md, struct g_raid_volume *vol) argument [all...] |
H A D | md_ddf.c | 1382 struct g_raid_volume *vol; local 1385 TAILQ_FOREACH(vol, &sc->sc_volumes, v_next) { 1386 pv = vol->v_md_data; 1390 return (vol); 1417 struct g_raid_volume *vol, *tvol; local 1422 TAILQ_FOREACH_SAFE(vol, &sc->sc_volumes, v_next, tvol) { 1423 pv = vol->v_md_data; 1424 if (vol->v_stopping) 1426 for (i = 0; i < vol->v_disks_count; i++) { 1427 if (vol 1602 g_raid_md_ddf_start_disk(struct g_raid_disk *disk, struct g_raid_volume *vol) argument 1785 struct g_raid_volume *vol; local 1847 g_raid_md_ddf_start(struct g_raid_volume *vol) argument 1930 struct g_raid_volume *vol; local 1952 struct g_raid_volume *vol; local 2223 g_raid_md_volume_event_ddf(struct g_raid_md_object *md, struct g_raid_volume *vol, u_int event) argument 2243 struct g_raid_volume *vol, *vol1; local 2723 struct g_raid_volume *vol; local 3048 g_raid_md_free_volume_ddf(struct g_raid_md_object *md, struct g_raid_volume *vol) argument [all...] |
H A D | md_jmicron.c | 648 struct g_raid_volume *vol; local 661 vol = g_raid_create_volume(sc, buf, -1); 664 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE; 666 vol->v_raid_level = G_RAID_VOLUME_RL_RAID0; 667 vol->v_mediasize = size * mdi->mdio_total_disks; 669 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1; 670 vol->v_mediasize = size; 672 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1E; 673 vol->v_mediasize = size * mdi->mdio_total_disks / 2; 676 vol 1023 struct g_raid_volume *vol; local 1391 struct g_raid_volume *vol; local [all...] |
H A D | md_nvidia.c | 655 struct g_raid_volume *vol; local 668 vol = g_raid_create_volume(sc, buf, -1); 669 vol->v_mediasize = (off_t)meta->total_sectors * 512; 670 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE; 672 vol->v_raid_level = G_RAID_VOLUME_RL_RAID0; 673 size = vol->v_mediasize / mdi->mdio_total_disks; 675 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1; 676 size = vol->v_mediasize; 678 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1E; 679 size = vol 1027 struct g_raid_volume *vol; local 1395 struct g_raid_volume *vol; local [all...] |
H A D | md_sii.c | 711 struct g_raid_volume *vol; local 725 vol = g_raid_create_volume(sc, buf, -1); 726 vol->v_mediasize = (off_t)meta->total_sectors * 512; 727 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE; 729 vol->v_raid_level = G_RAID_VOLUME_RL_RAID0; 730 size = vol->v_mediasize / mdi->mdio_total_disks; 732 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1; 733 size = vol->v_mediasize; 735 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1E; 736 size = vol 1111 struct g_raid_volume *vol; local 1479 struct g_raid_volume *vol; local [all...] |
H A D | g_raid.h | 423 int g_raid_start_volume(struct g_raid_volume *vol); 426 int g_raid_destroy_volume(struct g_raid_volume *vol); 441 void g_raid_change_volume_state(struct g_raid_volume *vol, int state); 443 void g_raid_write_metadata(struct g_raid_softc *sc, struct g_raid_volume *vol, 453 u_int g_raid_nsubdisks(struct g_raid_volume *vol, int state); 455 struct g_raid_subdisk * g_raid_get_subdisk(struct g_raid_volume *vol, 462 int g_raid_lock_range(struct g_raid_volume *vol, off_t off, off_t len, 464 int g_raid_unlock_range(struct g_raid_volume *vol, off_t off, off_t len);
|
H A D | g_raid_ctl.c | 55 struct g_raid_volume *vol; local 91 TAILQ_FOREACH(vol, &sc->sc_volumes, v_next) { 92 if (strcmp(vol->v_name, name) == 0)
|
/freebsd-11.0-release/usr.sbin/mptutil/ |
H A D | mpt_config.c | 50 static void dump_config(CONFIG_PAGE_RAID_VOL_0 *vol); 227 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local 249 vol = ioc2->RaidVolume; 250 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) { 251 if (mpt_lock_volume(vol->VolumeBus, vol->VolumeID) < 0) { 253 mpt_volume_name(vol->VolumeBus, vol->VolumeID)); 268 vol = ioc2->RaidVolume; 269 for (i = 0; i < ioc2->NumActiveVolumes; vol 470 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local 500 CONFIG_PAGE_RAID_VOL_0 *vol; local 615 CONFIG_PAGE_RAID_VOL_0 *vol; local 807 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local 1132 dump_config(CONFIG_PAGE_RAID_VOL_0 *vol) argument 1163 CONFIG_PAGE_RAID_VOL_0 *vol; local [all...] |
H A D | mpt_show.c | 280 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local 320 vol = ioc2->RaidVolume; 321 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) { 322 printf(" volume %s ", mpt_volume_name(vol->VolumeBus, 323 vol->VolumeID)); 324 vinfo = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID, NULL); 326 printf("%s UNKNOWN", mpt_raid_level(vol->VolumeType)); 329 vnames = mpt_vol_names(fd, vol->VolumeBus, vol 386 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local [all...] |
H A D | mpt_cmd.c | 298 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local 331 vol = ioc2->RaidVolume; 332 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) { 333 if (mpt_query_disk(vol->VolumeBus, vol->VolumeID, &info) != 0) 336 *VolumeBus = vol->VolumeBus; 337 *VolumeID = vol->VolumeID;
|
H A D | mpt_drive.c | 141 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local 184 vol = ioc2->RaidVolume; 185 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) { 186 volumes[i] = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID,
|
/freebsd-11.0-release/sys/geom/vinum/ |
H A D | geom_vinum_create.c | 316 char *drive, buf[30], *vol; local 321 vol = gctl_get_param(req, "name", NULL); 322 if (vol == NULL) { 336 strlcpy(v->name, vol, sizeof(v->name)); 381 char *drive, buf[30], *vol; local 388 vol = gctl_get_param(req, "name", NULL); 389 if (vol == NULL) { 415 strlcpy(v->name, vol, sizeof(v->name)); 474 char *vol, *drive, buf[30]; local 479 vol 551 char *drive, buf[30], *vol; local [all...] |
H A D | geom_vinum_share.c | 577 } else if (!strcmp(token[j], "vol") ||
|
/freebsd-11.0-release/sys/dev/sound/pcm/ |
H A D | feeder_volume.c | 53 feed_volume_##SIGN##BIT##ENDIAN(int *vol, int *matrix, \ 67 v = FEEDVOLUME_CALC##BIT(x, vol[matrix[i]]); \ 240 int i, *vol, *matrix; local 251 vol = c->volume[SND_VOL_C_VAL(info->volume_class)]; 260 if (vol[matrix[--i]] != SND_VOL_FLAT) { 282 info->apply(vol, matrix, info->channels, dst, j);
|
/freebsd-11.0-release/contrib/mdocml/ |
H A D | roff.h | 121 char *vol; /* Manual volume title. */ member in struct:roff_meta
|
H A D | man_validate.c | 308 free(man->meta.vol); 313 man->meta.title = man->meta.vol = man->meta.date = 379 man->meta.vol = mandoc_strdup(n->string); 382 man->meta.vol = mandoc_strdup(p);
|
/freebsd-11.0-release/sys/geom/part/ |
H A D | g_part_ldm.c | 273 struct ldm_volume vol; member in union:ldm_vblk::__anon12047 940 blk->u.vol.number = p[offset + 16]; 946 offset = ldm_vnum_get(p, offset + 16, &blk->u.vol.size, size); 955 blk->u.vol.part_type = p[offset + 4]; 959 if (volume->number > blk->u.vol.number) 964 LIST_INSERT_AFTER(last, &blk->u.vol, entry); 966 LIST_INSERT_HEAD(&db->volumes, &blk->u.vol, entry); 1343 struct ldm_volume *vol; local 1408 LIST_FOREACH(vol, &db.volumes, entry) { 1409 LIST_FOREACH(comp, &vol [all...] |