Lines Matching refs:toread
393 int i, toread; local
400 toread = min_t(int, length, chip->ecc.prepad);
401 if (toread) {
402 chip->read_buf(mtd, bufpoi, toread);
403 bufpoi += toread;
404 length -= toread;
410 toread = min_t(int, length, chip->ecc.postpad);
411 if (toread) {
412 chip->read_buf(mtd, bufpoi, toread);
413 bufpoi += toread;
414 length -= toread;
426 toread = min_t(int, length, chip->ecc.bytes);
427 chip->read_buf(mtd, bufpoi, toread);