Lines Matching refs:idx2
1092 int idx1, idx2;
1107 for (i = 0, idx1 = 0, idx2 = 0; i < sectors; i++) {
1110 layout->oobfree[idx2].offset = i * sas + 1;
1113 layout->oobfree[idx2].offset--;
1114 layout->oobfree[idx2].length = 5;
1116 layout->oobfree[idx2].offset = i * sas;
1117 layout->oobfree[idx2].length = 6;
1119 idx2++;
1123 layout->oobfree[idx2].offset = i * sas + 9;
1124 layout->oobfree[idx2].length = 7;
1125 idx2++;
1128 idx2 >= MTD_MAX_OOBFREE_ENTRIES_LARGE - 1)
1150 for (i = 0, idx1 = 0, idx2 = 0; i < sectors; i++) {
1159 layout->oobfree[idx2].offset = 0;
1160 layout->oobfree[idx2].length = 5;
1161 idx2++;
1163 layout->oobfree[idx2].offset = 6;
1164 layout->oobfree[idx2].length =
1166 idx2++;
1169 layout->oobfree[idx2].offset = i * sas + 1;
1170 layout->oobfree[idx2].length = sas - req - 1;
1171 idx2++;
1174 layout->oobfree[idx2].offset = i * sas;
1175 layout->oobfree[idx2].length = sas - req;
1176 idx2++;
1180 idx2 >= MTD_MAX_OOBFREE_ENTRIES_LARGE - 1)