Lines Matching refs:idx
2060 int idx;
2108 for (idx = i, cnt = 0; idx < alts_used; idx++, altp++, cnt++) {
2134 for (idx = 0; i < alts_used; i++, altp++) {
2140 if (ckp[idx].ck_sector > altp->bad_end)
2144 if ((ckp[idx].ck_sector >= altp->bad_start) &&
2146 ckp[idx].ck_sector = altp->good_start +
2147 ckp[idx].ck_sector - altp->bad_start;
2155 ckp[idx+1].ck_seclen = lastsec - altp->bad_start + 1;
2156 ckp[idx].ck_seclen -= ckp[idx+1].ck_seclen;
2157 ckp[idx+1].ck_sector = altp->good_start;
2161 if ((ckp[idx].ck_sector <= altp->bad_end) &&
2162 (ckp[idx].ck_sector >= altp->bad_start)) {
2163 ckp[idx+1].ck_seclen = ckp[idx].ck_seclen;
2164 ckp[idx].ck_seclen = altp->bad_end -
2165 ckp[idx].ck_sector + 1;
2166 ckp[idx+1].ck_seclen -= ckp[idx].ck_seclen;
2167 ckp[idx].ck_sector = altp->good_start +
2168 ckp[idx].ck_sector - altp->bad_start;
2169 idx++;
2170 ckp[idx].ck_sector = altp->bad_end + 1;
2175 ckp[idx].ck_seclen = altp->bad_start - ckp[idx].ck_sector;
2176 ckp[idx+1].ck_sector = altp->good_start;
2177 ckp[idx+1].ck_seclen = altp->bad_end - altp->bad_start + 1;
2178 idx += 2;
2179 ckp[idx].ck_sector = altp->bad_end + 1;
2180 ckp[idx].ck_seclen = lastsec - altp->bad_end;