Lines Matching defs:no

139 	u_int i, no;
141 no = 0;
144 no++;
147 return (no);
179 /* If there are no valid disks anymore, remove device. */
300 g_stripe_start_fast(struct bio *bp, u_int no, off_t offset, off_t length)
330 cbp->bio_caller2 = sc->sc_disks[no];
336 for (no++; length > 0; no++, length -= stripesize, addr += stripesize) {
337 if (no > sc->sc_ndisks - 1) {
338 no = 0;
386 cbp->bio_caller2 = sc->sc_disks[no];
429 g_stripe_start_economic(struct bio *bp, u_int no, off_t offset, off_t length)
463 cbp->bio_caller2 = sc->sc_disks[no];
470 for (no++; length > 0; no++, length -= stripesize) {
471 if (no > sc->sc_ndisks - 1) {
472 no = 0;
501 cbp->bio_caller2 = sc->sc_disks[no];
535 u_int no;
538 for (no = 0; no < sc->sc_ndisks; no++) {
553 cbp->bio_caller2 = sc->sc_disks[no];
554 cbp->bio_to = sc->sc_disks[no]->provider;
570 u_int no;
615 no = nstripe % sc->sc_ndisks;
633 * there will be no need to send more than one I/O request to
648 error = g_stripe_start_fast(bp, no, offset, length);
656 * 2. "Fast" mode failed. It can only fail if there is no memory.
659 error = g_stripe_start_economic(bp, no, offset, length);
672 u_int no, sectorsize = 0;
691 for (no = 1; no < sc->sc_ndisks; no++) {
692 dp = sc->sc_disks[no]->provider;
749 g_stripe_add_disk(struct g_stripe_softc *sc, struct g_provider *pp, u_int no)
757 if (no >= sc->sc_ndisks)
761 if (sc->sc_disks[no] != NULL)
770 cp->index = no;
801 sc->sc_disks[no] = cp;
834 u_int no;
881 for (no = 0; no < sc->sc_ndisks; no++)
882 sc->sc_disks[no] = NULL;
995 /* There was no md_provider field in earlier versions of metadata. */
998 /* There was no md_provsize field in earlier versions of metadata. */
1058 u_int attached, no;
1102 for (no = 1; no < *nargs; no++) {
1103 snprintf(param, sizeof(param), "arg%u", no);
1118 for (attached = 0, no = 1; no < *nargs; no++) {
1119 snprintf(param, sizeof(param), "arg%u", no);
1127 if (g_stripe_add_disk(sc, pp, no - 1) != 0) {
1129 no, pp->name, gp->name);