Lines Matching refs:stripesize

243 	off_t stripesize;
246 stripesize = sc->sc_stripesize;
247 len = (size_t)(stripesize - (offset & (stripesize - 1)));
251 dst += len + stripesize * (sc->sc_ndisks - 1);
255 src += len + stripesize * (sc->sc_ndisks - 1);
259 ("Length < 0 (stripesize=%ju, offset=%ju, length=%jd).",
260 (uintmax_t)stripesize, (uintmax_t)offset, (intmax_t)length));
261 if (length > stripesize)
262 len = stripesize;
306 off_t stripesize;
313 stripesize = sc->sc_stripesize;
332 /* offset -= offset % stripesize; */
333 offset -= offset & (stripesize - 1);
336 for (no++; length > 0; no++, length -= stripesize, addr += stripesize) {
339 offset += stripesize;
353 cbp->bio_length += MIN(stripesize, length);
385 cbp->bio_length = MIN(stripesize, length);
433 off_t stripesize;
440 stripesize = sc->sc_stripesize;
465 /* offset -= offset % stripesize; */
466 offset -= offset & (stripesize - 1);
470 for (no++; length > 0; no++, length -= stripesize) {
473 offset += stripesize;
491 cbp->bio_length = MIN(stripesize, length);
504 addr += stripesize;
568 off_t offset, start, length, nstripe, stripesize;
605 stripesize = sc->sc_stripesize;
612 /* nstripe = bp->bio_offset / stripesize; */
617 /* start = bp->bio_offset % stripesize; */
618 start = bp->bio_offset & (stripesize - 1);
620 /* offset = (nstripe / sc->sc_ndisks) * stripesize + start; */
623 length = MIN(bp->bio_length, stripesize - start);
632 * 3. Request size is bigger than stripesize * ndisks. If it isn't,
641 bp->bio_length >= stripesize * sc->sc_ndisks &&
710 sc->sc_provider->stripesize = sc->sc_stripesize;
1064 off_t *stripesize;
1091 stripesize = gctl_get_paraml(req, "stripesize", sizeof(*stripesize));
1092 if (stripesize == NULL) {
1093 gctl_error(req, "No '%s' argument.", "stripesize");
1096 md.md_stripesize = (uint32_t)*stripesize;