• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/onenand/

Lines Matching refs:thislen

990  * @param thislen	oob length to read
993 int thislen)
998 int readend = column + thislen;
1088 int read = 0, column, thislen;
1117 thislen = min_t(int, writesize, len - read);
1120 if (column + thislen > writesize)
1121 thislen = writesize - column;
1134 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen);
1148 read += thislen;
1152 from += thislen;
1153 buf += thislen;
1190 int read = 0, column, thislen;
1229 thislen = min_t(int, writesize, len - read);
1231 if (column + thislen > writesize)
1232 thislen = writesize - column;
1236 from += thislen;
1237 if (read + thislen < len) {
1253 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen);
1270 read += thislen;
1277 buf += thislen;
1278 thislen = min_t(int, writesize, len - read);
1318 int read = 0, thislen, column, oobsize;
1361 thislen = oobsize - column;
1362 thislen = min_t(int, thislen, len);
1379 onenand_transfer_auto_oob(mtd, buf, column, thislen);
1381 this->read_bufferram(mtd, ONENAND_SPARERAM, buf, column, thislen);
1383 read += thislen;
1388 buf += thislen;
1538 int read = 0, thislen, column;
1566 thislen = mtd->oobsize - column;
1567 thislen = min_t(int, thislen, len);
1580 this->read_bufferram(mtd, ONENAND_SPARERAM, buf, column, thislen);
1581 read += thislen;
1585 buf += thislen;
1642 int thislen, column;
1645 thislen = min_t(int, this->writesize, len);
1647 if (column + thislen > this->writesize)
1648 thislen = this->writesize - column;
1662 if (memcmp(buf, this->verify_buf, thislen))
1665 len -= thislen;
1666 buf += thislen;
1667 addr += thislen;
1741 int thislen = min_t(int, mtd->writesize - column, len - written);
1744 this->command(mtd, ONENAND_CMD_BUFFERRAM, to, thislen);
1747 subpage = thislen < mtd->writesize;
1750 memcpy(this->page_buf + column, buf, thislen);
1773 written += thislen;
1779 to += thislen;
1780 buf += thislen;
1793 * @param thislen oob length to write
1796 const u_char *buf, int column, int thislen)
1801 int writeend = column + thislen;
1840 int written = 0, column, thislen = 0, subpage = 0;
1889 thislen = min_t(int, mtd->writesize - column, len - written);
1894 this->command(mtd, ONENAND_CMD_BUFFERRAM, to, thislen);
1897 subpage = thislen < mtd->writesize;
1900 memcpy(this->page_buf + column, buf, thislen);
1974 ret = onenand_verify(mtd, buf, to, thislen);
1981 written += thislen;
1987 written += thislen;
1992 prevlen = thislen;
1993 to += thislen;
1994 buf += thislen;
2074 int thislen = min_t(int, oobsize, len - written);
2084 onenand_fill_auto_oob(mtd, oobbuf, buf, column, thislen);
2086 memcpy(oobbuf + column, buf, thislen);
2117 written += thislen;
2122 buf += thislen;
2903 int thislen = min_t(int, oobsize, len - written);
2935 memcpy(oobbuf + column, buf, thislen);
2982 written += thislen;
2987 buf += thislen;