Lines Matching refs:pos
33 loff_t pos, opos, end, bpos;
189 for (pos = start, opos = 0; pos < end; pos += mtdinfo.writesize) {
192 printf("reading at %llx\n", pos);
193 lseek64(fd, pos, SEEK_SET);
196 fprintf(stderr, "short read at %llx, %d\n", pos, ret);
200 oobbuf.start = pos;
203 fprintf(stderr, "failed to read oob data at %llx, %d\n", pos, ret);
213 bpos = pos / mtdinfo.erasesize * mtdinfo.erasesize;
216 printf("badblock at %llx\n", pos);
220 printf("ecc corrected, %u, at %llx\n", ecc.corrected - last_ecc.corrected, pos);
222 printf("ecc failed, %u, at %llx\n", ecc.failed - last_ecc.failed, pos);
224 printf("ecc badblocks, %u, at %llx\n", ecc.badblocks - last_ecc.badblocks, pos);
226 printf("ecc bbtblocks, %u, at %llx\n", ecc.bbtblocks - last_ecc.bbtblocks, pos);
244 fprintf(stderr, "short write at %llx, %d\n", pos, ret);
263 else if (verbose > 2 || (verbose > 1 && !(pos & (mtdinfo.erasesize - 1))))
265 "%08x %08x %08x %08x\n", pos, oobbuf.start,