Lines Matching defs:no

146 	u_int i, no;
148 no = 0;
151 no++;
154 return (no);
186 /* If there are no valid disks anymore, remove device. */
305 g_stripe_start_fast(struct bio *bp, u_int no, off_t offset, off_t length)
334 cbp->bio_caller2 = sc->sc_disks[no];
340 for (no++; length > 0; no++, length -= stripesize, addr += stripesize) {
341 if (no > sc->sc_ndisks - 1) {
342 no = 0;
390 cbp->bio_caller2 = sc->sc_disks[no];
433 g_stripe_start_economic(struct bio *bp, u_int no, off_t offset, off_t length)
467 cbp->bio_caller2 = sc->sc_disks[no];
474 for (no++; length > 0; no++, length -= stripesize) {
475 if (no > sc->sc_ndisks - 1) {
476 no = 0;
505 cbp->bio_caller2 = sc->sc_disks[no];
539 u_int no;
542 for (no = 0; no < sc->sc_ndisks; no++) {
557 cbp->bio_caller2 = sc->sc_disks[no];
558 cbp->bio_to = sc->sc_disks[no]->provider;
574 u_int no, stripesize;
613 no = nstripe % sc->sc_ndisks;
631 * there will be no need to send more than one I/O request to
646 error = g_stripe_start_fast(bp, no, offset, length);
654 * 2. "Fast" mode failed. It can only fail if there is no memory.
657 error = g_stripe_start_economic(bp, no, offset, length);
670 u_int no, sectorsize = 0;
689 for (no = 1; no < sc->sc_ndisks; no++) {
690 dp = sc->sc_disks[no]->provider;
747 g_stripe_add_disk(struct g_stripe_softc *sc, struct g_provider *pp, u_int no)
755 if (no >= sc->sc_ndisks)
759 if (sc->sc_disks[no] != NULL)
768 cp->index = no;
799 sc->sc_disks[no] = cp;
818 u_int no;
865 for (no = 0; no < sc->sc_ndisks; no++)
866 sc->sc_disks[no] = NULL;
976 /* There was no md_provider field in earlier versions of metadata. */
979 /* There was no md_provsize field in earlier versions of metadata. */
1039 u_int attached, no;
1083 for (no = 1; no < *nargs; no++) {
1084 snprintf(param, sizeof(param), "arg%u", no);
1087 gctl_error(req, "No 'arg%u' argument.", no);
1109 for (attached = 0, no = 1; no < *nargs; no++) {
1110 snprintf(param, sizeof(param), "arg%u", no);
1113 gctl_error(req, "No 'arg%u' argument.", no);
1120 if (g_stripe_add_disk(sc, pp, no - 1) != 0) {
1122 no, pp->name, gp->name);