Lines Matching refs:thislen
1049 * @param thislen oob length to read
1052 int thislen)
1059 column, thislen);
1123 int read = 0, column, thislen;
1148 thislen = min_t(int, writesize, len - read);
1151 if (column + thislen > writesize)
1152 thislen = writesize - column;
1167 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen);
1181 read += thislen;
1185 from += thislen;
1186 buf += thislen;
1224 int read = 0, column, thislen;
1259 thislen = min_t(int, writesize, len - read);
1261 if (column + thislen > writesize)
1262 thislen = writesize - column;
1266 from += thislen;
1267 if (read + thislen < len) {
1283 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen);
1300 read += thislen;
1307 buf += thislen;
1308 thislen = min_t(int, writesize, len - read);
1349 int read = 0, thislen, column, oobsize;
1383 thislen = oobsize - column;
1384 thislen = min_t(int, thislen, len);
1401 onenand_transfer_auto_oob(mtd, buf, column, thislen);
1403 this->read_bufferram(mtd, ONENAND_SPARERAM, buf, column, thislen);
1405 read += thislen;
1410 buf += thislen;
1530 int read = 0, thislen, column;
1558 thislen = mtd->oobsize - column;
1559 thislen = min_t(int, thislen, len);
1572 this->read_bufferram(mtd, ONENAND_SPARERAM, buf, column, thislen);
1573 read += thislen;
1577 buf += thislen;
1634 int thislen, column;
1639 thislen = min_t(int, this->writesize - column, len);
1653 if (memcmp(buf, this->verify_buf + column, thislen))
1656 len -= thislen;
1657 buf += thislen;
1658 addr += thislen;
1722 int thislen = min_t(int, mtd->writesize - column, len - written);
1725 this->command(mtd, ONENAND_CMD_BUFFERRAM, to, thislen);
1728 subpage = thislen < mtd->writesize;
1731 memcpy(this->page_buf + column, buf, thislen);
1749 written += thislen;
1755 to += thislen;
1756 buf += thislen;
1769 * @param thislen oob length to write
1772 const u_char *buf, int column, int thislen)
1774 return mtd_ooblayout_set_databytes(mtd, buf, oob_buf, column, thislen);
1789 int written = 0, column, thislen = 0, subpage = 0;
1826 thislen = min_t(int, mtd->writesize - column, len - written);
1831 this->command(mtd, ONENAND_CMD_BUFFERRAM, to, thislen);
1834 subpage = thislen < mtd->writesize;
1837 memcpy(this->page_buf + column, buf, thislen);
1901 ((written + thislen) < len)) {
1923 ret = onenand_verify(mtd, buf, to, thislen);
1930 written += thislen;
1936 written += thislen;
1941 prevlen = thislen;
1942 to += thislen;
1943 buf += thislen;
2014 int thislen = min_t(int, oobsize, len - written);
2024 onenand_fill_auto_oob(mtd, oobbuf, buf, column, thislen);
2026 memcpy(oobbuf + column, buf, thislen);
2057 written += thislen;
2062 buf += thislen;
2793 int thislen = min_t(int, oobsize, len - written);
2825 memcpy(oobbuf + column, buf, thislen);
2872 written += thislen;
2877 buf += thislen;