Lines Matching refs:ii
219 struct ccdiinfo *ii; in g_ccd_freesc() local
223 for (ii = sc->sc_itable; ii->ii_ndisk > 0; ii++) in g_ccd_freesc()
224 g_free(ii->ii_index); in g_ccd_freesc()
349 struct ccdiinfo *ii; in ccdinterleave() local
372 ii = cs->sc_itable; in ccdinterleave()
376 ii->ii_index = g_malloc(sizeof(int), M_WAITOK); in ccdinterleave()
377 ii->ii_ndisk = 1; in ccdinterleave()
378 ii->ii_startblk = bn; in ccdinterleave()
379 ii->ii_startoff = 0; in ccdinterleave()
380 ii->ii_index[0] = ix; in ccdinterleave()
382 ii++; in ccdinterleave()
384 ii->ii_ndisk = 0; in ccdinterleave()
393 for (ii = cs->sc_itable; ; ii++) { in ccdinterleave()
398 ii->ii_index = g_malloc((sizeof(int) * cs->sc_ndisks), in ccdinterleave()
418 ii->ii_ndisk = 0; in ccdinterleave()
419 g_free(ii->ii_index); in ccdinterleave()
420 ii->ii_index = NULL; in ccdinterleave()
427 ii->ii_startblk = bn / cs->sc_ileave; in ccdinterleave()
434 ii->ii_startoff = lbn; in ccdinterleave()
444 ii->ii_index[ix++] = ci - cs->sc_cinfo; in ccdinterleave()
447 ii->ii_ndisk = ix; in ccdinterleave()
562 struct ccdiinfo *ii; in ccdbuffer() local
576 for (ii = cs->sc_itable; ii->ii_ndisk; ii++) { in ccdbuffer()
577 if (ii->ii_startblk > cbn) in ccdbuffer()
580 ii--; in ccdbuffer()
586 off = cbn - ii->ii_startblk; in ccdbuffer()
598 if (ii->ii_ndisk == 1) { in ccdbuffer()
603 ccdisk = ii->ii_index[0]; in ccdbuffer()
604 cbn = ii->ii_startoff + off; in ccdbuffer()
619 int ndisk2 = ii->ii_ndisk / 2; in ccdbuffer()
620 ccdisk = ii->ii_index[off % ndisk2]; in ccdbuffer()
621 cbn = ii->ii_startoff + off / ndisk2; in ccdbuffer()
624 ccdisk = ii->ii_index[off % ii->ii_ndisk]; in ccdbuffer()
625 cbn = ii->ii_startoff + off / ii->ii_ndisk; in ccdbuffer()