Lines Matching defs:read
10 * auto-placement support, read-while load support, various fixes
195 * @param addr address to read
392 * @param addr offset to read from or write to
393 * @param len number of bytes to read or write
580 * power off recovery (POR) test, it should read ECC status first
597 printk(KERN_ERR "%s: read timeout! ctrl=0x%04x intr=0x%04x\n",
695 * 1. polling - read interrupt status register
753 * @param offset offset to read from or write to
754 * @param count number of bytes to read/write
789 * @param offset offset to read from or write to
790 * @param count number of bytes to read/write
829 * @param offset offset to read from or write to
830 * @param count number of bytes to read/write
1048 * @param column oob offset to read from
1049 * @param thislen oob length to read
1071 * become corrupt. LSB page recovery read is a way to read LSB page though page
1073 * read after power up, issue LSB page recovery read.
1094 * which was incremented by onenand_wait due to read failure
1096 printk(KERN_INFO "%s: Attempting to recover from uncorrectable read\n",
1106 * onenand_mlc_read_ops_nolock - MLC OneNAND read main and/or out-of-band
1108 * @param from offset to read from
1112 * So, read-while-load is not present.
1123 int read = 0, column, thislen;
1136 printk(KERN_ERR "%s: Attempt read beyond end of device\n",
1145 while (read < len) {
1148 thislen = min_t(int, writesize, len - read);
1181 read += thislen;
1182 if (read == len)
1194 ops->retlen = read;
1208 * onenand_read_ops_nolock - [OneNAND Interface] OneNAND read main and/or out-of-band
1210 * @param from offset to read from
1213 * OneNAND read main and/or out-of-band data
1224 int read = 0, column, thislen;
1237 printk(KERN_ERR "%s: Attempt read beyond end of device\n",
1249 if (read < len) {
1259 thislen = min_t(int, writesize, len - read);
1267 if (read + thislen < len) {
1271 * Now we issued chip 1 read and pointed chip 1
1282 /* While load is going, read from last bufferRAM */
1300 read += thislen;
1301 if (read == len)
1303 /* Set up for next read from bufferRAM */
1308 thislen = min_t(int, writesize, len - read);
1323 ops->retlen = read;
1337 * onenand_read_oob_nolock - [MTD Interface] OneNAND read out-of-band
1339 * @param from offset to read from
1342 * OneNAND read out-of-band data from the spare area
1349 int read = 0, thislen, column, oobsize;
1371 printk(KERN_ERR "%s: Attempted to start read outside oob\n",
1380 while (read < len) {
1395 printk(KERN_ERR "%s: read failed = 0x%x\n",
1405 read += thislen;
1407 if (read == len)
1413 if (read < len) {
1420 ops->oobretlen = read;
1434 * @param from: offset to read from
1502 printk(KERN_ERR "%s: read timeout! ctrl 0x%04x "
1519 * onenand_bbt_read_oob - [MTD Interface] OneNAND read out-of-band for bbt scan
1521 * @param from offset to read from
1524 * OneNAND read out-of-band data from the spare area for bbt scan
1530 int read = 0, thislen, column;
1543 printk(KERN_ERR "%s: Attempt read beyond end of device\n",
1555 while (read < len) {
1573 read += thislen;
1574 if (read == len)
1580 if (read < len) {
1590 ops->oobretlen = read;
1599 * @param to offset to read from
1627 * @param addr offset to read from
1628 * @param len number of bytes to read and compare
2688 * @param addr offset to read from or write to
2689 * @param len number of bytes to read or write
2893 * @param from The offset to read
2894 * @param len number of bytes to read
3022 * @param from The offset to read/write
3023 * @param len number of bytes to read/write
3024 * @param retlen pointer to variable to store the number of read bytes
3103 * @param len number of bytes to read
3104 * @param retlen pointer to variable to store the number of read bytes
3119 * @param from The offset to read
3120 * @param len number of bytes to read
3121 * @param retlen pointer to variable to store the number of read bytes
3135 * @param retlen pointer to variable to store the number of read bytes
3136 * @param len number of bytes to read
3151 * @param from The offset to read
3152 * @param len number of bytes to read
3153 * @param retlen pointer to variable to store the number of read bytes
3656 /* Clear Sync. Burst Read mode to read BootRAM */
3666 /* Reset OneNAND to read default register values */
3815 * The flash ID is read and the mtd/chip structures are