Home
last modified time | relevance | path

Searched refs:nstripe (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/geom/raid/
H A Dtr_raid0.c195 off_t offset, start, length, nstripe, remain; in g_raid_tr_iostart_raid0() local
215 nstripe = bp->bio_offset / strip_size; in g_raid_tr_iostart_raid0()
219 no = nstripe % vol->v_disks_count; in g_raid_tr_iostart_raid0()
221 offset = (nstripe / vol->v_disks_count) * strip_size; in g_raid_tr_iostart_raid0()
273 off_t offset, start, length, nstripe, remain; in g_raid_tr_kerneldump_raid0() local
284 nstripe = boffset / strip_size; in g_raid_tr_kerneldump_raid0()
288 no = nstripe % vol->v_disks_count; in g_raid_tr_kerneldump_raid0()
290 offset = (nstripe / vol->v_disks_count) * strip_size; in g_raid_tr_kerneldump_raid0()
H A Dtr_raid5.c216 off_t offset, start, length, nstripe, remain; in g_raid_tr_iostart_raid5_read() local
228 nstripe = bp->bio_offset / strip_size; in g_raid_tr_iostart_raid5_read()
248 pno = (nstripe / (ddisks * protate)) % vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
249 pleft = protate - (nstripe / ddisks) % protate; in g_raid_tr_iostart_raid5_read()
257 no = nstripe % ddisks; in g_raid_tr_iostart_raid5_read()
268 offset = (nstripe / ddisks) * strip_size; in g_raid_tr_iostart_raid5_read()
/freebsd/sys/geom/stripe/
H A Dg_stripe.c568 off_t offset, start, length, nstripe, stripesize; in g_stripe_start() local
612 /* nstripe = bp->bio_offset / stripesize; */ in g_stripe_start()
613 nstripe = bp->bio_offset >> (off_t)sc->sc_stripebits; in g_stripe_start()
615 no = nstripe % sc->sc_ndisks; in g_stripe_start()
620 /* offset = (nstripe / sc->sc_ndisks) * stripesize + start; */ in g_stripe_start()
621 offset = ((nstripe / sc->sc_ndisks) << sc->sc_stripebits) + start; in g_stripe_start()