Lines Matching refs:stripesize
253 u_int stripesize;
256 stripesize = sc->sc_stripesize;
257 len = (size_t)(stripesize - (offset & (stripesize - 1)));
261 dst += len + stripesize * (sc->sc_ndisks - 1);
265 src += len + stripesize * (sc->sc_ndisks - 1);
269 ("Length < 0 (stripesize=%zu, offset=%jd, length=%jd).",
270 (size_t)stripesize, (intmax_t)offset, (intmax_t)length));
271 if (length > stripesize)
272 len = stripesize;
311 u_int nparts = 0, stripesize;
320 stripesize = sc->sc_stripesize;
339 /* offset -= offset % stripesize; */
340 offset -= offset & (stripesize - 1);
343 for (no++; length > 0; no++, length -= stripesize, addr += stripesize) {
346 offset += stripesize;
360 cbp->bio_length += MIN(stripesize, length);
392 cbp->bio_length = MIN(stripesize, length);
440 uint32_t stripesize;
447 stripesize = sc->sc_stripesize;
472 /* offset -= offset % stripesize; */
473 offset -= offset & (stripesize - 1);
477 for (no++; length > 0; no++, length -= stripesize) {
480 offset += stripesize;
498 cbp->bio_length = MIN(stripesize, length);
511 addr += stripesize;
577 u_int no, stripesize;
606 stripesize = sc->sc_stripesize;
613 /* nstripe = bp->bio_offset / stripesize; */
618 /* start = bp->bio_offset % stripesize; */
619 start = bp->bio_offset & (stripesize - 1);
621 /* offset = (nstripe / sc->sc_ndisks) * stripesize + start; */
624 length = MIN(bp->bio_length, stripesize - start);
633 * 3. Request size is bigger than stripesize * ndisks. If it isn't,
642 bp->bio_length >= stripesize * sc->sc_ndisks &&
711 sc->sc_provider->stripesize = sc->sc_stripesize;
1048 intmax_t *stripesize;
1075 stripesize = gctl_get_paraml(req, "stripesize", sizeof(*stripesize));
1076 if (stripesize == NULL) {
1077 gctl_error(req, "No '%s' argument.", "stripesize");
1080 md.md_stripesize = *stripesize;