Lines Matching defs:no

149 	u_int i, no;
151 no = 0;
154 no++;
157 return (no);
189 /* If there are no valid disks anymore, remove device. */
308 g_stripe_start_fast(struct bio *bp, u_int no, off_t offset, off_t length)
337 cbp->bio_caller2 = sc->sc_disks[no];
343 for (no++; length > 0; no++, length -= stripesize, addr += stripesize) {
344 if (no > sc->sc_ndisks - 1) {
345 no = 0;
393 cbp->bio_caller2 = sc->sc_disks[no];
436 g_stripe_start_economic(struct bio *bp, u_int no, off_t offset, off_t length)
470 cbp->bio_caller2 = sc->sc_disks[no];
477 for (no++; length > 0; no++, length -= stripesize) {
478 if (no > sc->sc_ndisks - 1) {
479 no = 0;
508 cbp->bio_caller2 = sc->sc_disks[no];
542 u_int no;
545 for (no = 0; no < sc->sc_ndisks; no++) {
560 cbp->bio_caller2 = sc->sc_disks[no];
561 cbp->bio_to = sc->sc_disks[no]->provider;
577 u_int no, stripesize;
616 no = nstripe % sc->sc_ndisks;
634 * there will be no need to send more than one I/O request to
649 error = g_stripe_start_fast(bp, no, offset, length);
657 * 2. "Fast" mode failed. It can only fail if there is no memory.
660 error = g_stripe_start_economic(bp, no, offset, length);
673 u_int no, sectorsize = 0;
692 for (no = 1; no < sc->sc_ndisks; no++) {
693 dp = sc->sc_disks[no]->provider;
750 g_stripe_add_disk(struct g_stripe_softc *sc, struct g_provider *pp, u_int no)
758 if (no >= sc->sc_ndisks)
762 if (sc->sc_disks[no] != NULL)
771 cp->index = no;
802 sc->sc_disks[no] = cp;
821 u_int no;
868 for (no = 0; no < sc->sc_ndisks; no++)
869 sc->sc_disks[no] = NULL;
979 /* There was no md_provider field in earlier versions of metadata. */
982 /* There was no md_provsize field in earlier versions of metadata. */
1042 u_int attached, no;
1086 for (no = 1; no < *nargs; no++) {
1087 snprintf(param, sizeof(param), "arg%u", no);
1090 gctl_error(req, "No 'arg%u' argument.", no);
1112 for (attached = 0, no = 1; no < *nargs; no++) {
1113 snprintf(param, sizeof(param), "arg%u", no);
1116 gctl_error(req, "No 'arg%u' argument.", no);
1123 if (g_stripe_add_disk(sc, pp, no - 1) != 0) {
1125 no, pp->name, gp->name);