Home
last modified time | relevance | path

Searched refs:stripesize (Results 1 – 25 of 39) sorted by relevance

12

/freebsd-9-stable/sys/geom/stripe/
Dg_stripe.c254 u_int stripesize; in g_stripe_copy() local
257 stripesize = sc->sc_stripesize; in g_stripe_copy()
258 len = (size_t)(stripesize - (offset & (stripesize - 1))); in g_stripe_copy()
262 dst += len + stripesize * (sc->sc_ndisks - 1); in g_stripe_copy()
266 src += len + stripesize * (sc->sc_ndisks - 1); in g_stripe_copy()
271 (size_t)stripesize, (intmax_t)offset, (intmax_t)length)); in g_stripe_copy()
272 if (length > stripesize) in g_stripe_copy()
273 len = stripesize; in g_stripe_copy()
309 u_int nparts = 0, stripesize; in g_stripe_start_fast() local
318 stripesize = sc->sc_stripesize; in g_stripe_start_fast()
[all …]
/freebsd-9-stable/sys/geom/vinum/
Dgeom_vinum_create.c345 p->stripesize = 0; in gv_concat()
427 p->stripesize = DEFAULT_STRIPESIZE; in gv_mirror()
430 p->stripesize = -1; in gv_mirror()
475 off_t *stripesize; in gv_raid5() local
486 stripesize = gctl_get_paraml(req, "stripesize", sizeof(*stripesize)); in gv_raid5()
488 if (stripesize == NULL) { in gv_raid5()
515 p->stripesize = *stripesize; in gv_raid5()
587 p->stripesize = 262144; in gv_stripe()
Dgeom_vinum_plex.c161 stripeno = boff / p->stripesize; in gv_plex_offset()
175 p->stripesize; in gv_plex_offset()
177 stripeend = stripestart + p->stripesize; in gv_plex_offset()
178 *real_off = boff - (stripeno * p->stripesize) + in gv_plex_offset()
907 bp->bio_length = p->stripesize; in gv_parity_request()
917 bp->bio_data = g_malloc(p->stripesize, M_WAITOK | M_ZERO); in gv_parity_request()
969 p->synced += p->stripesize; in gv_parity_complete()
1026 offset += (p->stripesize * (gv_sdcount(p, 1) - 1)); in gv_rebuild_complete()
Dgeom_vinum_raid5.c600 psd = sdcount - 1 - ( boff / (p->stripesize * (sdcount - 1))) % in gv_raid5_offset()
605 stripeoff = boff % (p->stripesize * (sdcount - 1)); in gv_raid5_offset()
609 sd = stripeoff / p->stripesize; in gv_raid5_offset()
620 stripeoff %= p->stripesize; in gv_raid5_offset()
625 stripeend = stripestart + p->stripesize; in gv_raid5_offset()
Dgeom_vinum_subr.c213 sbuf_printf(sb, "%ds ", p->stripesize / 512); in gv_format_config()
289 remainder = s->size % p->stripesize; in gv_sd_to_plex()
340 p->stripesize; in gv_sd_to_plex()
524 remainder = s->size % p->stripesize; in gv_update_plex_config()
1185 if (offset != -1 && offset % p->stripesize != 0) in gv_attach_sd()
Dgeom_vinum_share.c564 p->stripesize = gv_sizespec(token[j]); in gv_new_plex()
565 if (p->stripesize == 0) { in gv_new_plex()
Dgeom_vinum_var.h328 int stripesize; /* The stripe size of the plex. */ member
/freebsd-9-stable/usr.sbin/diskinfo/
Ddiskinfo.c63 off_t mediasize, stripesize, stripeoffset; in main() local
118 error = ioctl(fd, DIOCGSTRIPESIZE, &stripesize); in main()
120 stripesize = 0; in main()
129 printf("\t%jd", (intmax_t)stripesize); in main()
146 printf("\t%-12jd\t# stripesize\n", stripesize); in main()
/freebsd-9-stable/sbin/geom/class/stripe/
Dgeom_stripe.c124 intmax_t stripesize; in stripe_label() local
174 stripesize = gctl_get_intmax(req, "stripesize"); in stripe_label()
175 if ((stripesize % secsize) != 0) { in stripe_label()
180 md.md_stripesize = stripesize; in stripe_label()
/freebsd-9-stable/lib/libgeom/
Dgeom_util.c122 off_t stripesize; in g_stripesize() local
124 if (g_ioctl_arg(fd, DIOCGSTRIPESIZE, &stripesize) == -1) in g_stripesize()
126 return (stripesize); in g_stripesize()
/freebsd-9-stable/sbin/recoverdisk/
Drecoverdisk.c159 off_t stripesize; in main() local
205 error = ioctl(fdr, DIOCGSTRIPESIZE, &stripesize); in main()
206 if (error == 0 && stripesize > sectorsize) in main()
207 sectorsize = stripesize; in main()
/freebsd-9-stable/sys/dev/nvme/
Dnvme_ns.c428 if (ns->stripesize > 0 && in nvme_ns_bio_process()
431 bp->bio_bcount, ns->stripesize); in nvme_ns_bio_process()
433 return (nvme_ns_split_bio(ns, bp, ns->stripesize)); in nvme_ns_bio_process()
499 ns->stripesize = 0; in nvme_ns_construct()
502 ns->stripesize = in nvme_ns_construct()
/freebsd-9-stable/sys/geom/
Dnotes90 maxsize, stripesize and stripeoffset
98 stripesize is the width of any natural request boundaries for the
110 Then it will have stripesize = 64k and stripeoffset = 0.
113 then this slice will have: stripesize = 64k, stripeoffset = 63 * sectorsize.
Dgeom_slice.c396 pp->stripesize = pp2->stripesize; in g_slice_config()
398 if (pp->stripesize > 0) in g_slice_config()
399 pp->stripeoffset %= pp->stripesize; in g_slice_config()
Dgeom_disk.c150 pp->stripesize = dp->d_stripesize; in g_disk_access()
520 pp->stripesize = dp->d_stripesize; in g_disk_create()
Dgeom_redboot.c267 blksize = cp->provider->stripesize; in g_redboot_taste()
/freebsd-9-stable/sys/geom/uncompress/
Dg_uncompress.c599 if (pp->stripesize > 0) { in g_uncompress_taste()
600 pp2->stripesize = pp->stripesize; in g_uncompress_taste()
610 pp2->stripeoffset, pp2->stripesize, pp2->flags)); in g_uncompress_taste()
/freebsd-9-stable/sys/geom/uzip/
Dg_uzip.c471 pp2->stripesize = pp->stripesize; in g_uzip_taste()
479 pp2->stripeoffset, pp2->stripesize, pp2->flags)); in g_uzip_taste()
/freebsd-9-stable/sys/geom/part/
Dg_part.c307 if (pp->stripesize > 0) { in g_part_check_integrity()
311 if ((offset + pp->stripeoffset) % pp->stripesize) { in g_part_check_integrity()
315 pp->stripesize); in g_part_check_integrity()
431 entry->gpe_pp->stripesize = pp->stripesize; in g_part_new_provider()
433 if (pp->stripesize > 0) in g_part_new_provider()
434 entry->gpe_pp->stripeoffset %= pp->stripesize; in g_part_new_provider()
750 if (pp->stripesize > 0 && entry->gpe_pp->stripeoffset != 0) in g_part_ctl_add()
752 "aligned on %u bytes\n", pp->stripesize); in g_part_ctl_add()
/freebsd-9-stable/sbin/gvinum/
Dgvinum.c491 off_t stripesize; in create_volume() local
496 stripesize = 262144; in create_volume()
513 stripesize = gv_sizespec(argv[++i]); in create_volume()
527 gctl_ro_param(req, "stripesize", sizeof(off_t), &stripesize); in create_volume()
/freebsd-9-stable/sys/mips/cavium/
Docteon_ebt3000_cf.c206 pp->stripesize = drive_param.heads * drive_param.sec_track * drive_param.sector_size; in cf_access()
207 pp->mediasize = pp->stripesize * drive_param.tracks; in cf_access()
/freebsd-9-stable/sys/cam/scsi/
Dscsi_da.c187 u_int stripesize; member
3711 dp->stripesize = block_len << lbppbe; in dasetgeom()
3712 dp->stripeoffset = (dp->stripesize - block_len * lalba) % in dasetgeom()
3713 dp->stripesize; in dasetgeom()
3715 dp->stripesize = 4096; in dasetgeom()
3718 dp->stripesize = 0; in dasetgeom()
3789 softc->disk->d_stripesize = softc->params.stripesize; in dasetgeom()
/freebsd-9-stable/sys/geom/bde/
Dg_bde.c196 pp->stripesize = kp->zone_cont; in g_bde_create_geom()
/freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dvdev_geom.c676 if (pp->stripesize) in vdev_geom_open()
677 *physical_ashift = highbit(pp->stripesize) - 1; in vdev_geom_open()
/freebsd-9-stable/sys/dev/ips/
Dipsreg.h367 u_int8_t stripesize; member

12