Lines Matching refs:writesize

445 			if (addr & this->writesize)
738 /* Note: the 'this->writesize' is a real page size */
740 return this->writesize;
881 if (addr & this->writesize)
1101 this->command(mtd, FLEXONENAND_CMD_RECOVER_LSB, addr, this->writesize);
1126 int writesize = this->writesize;
1148 thislen = min_t(int, writesize, len - read);
1150 column = from & (writesize - 1);
1151 if (column + thislen > writesize)
1152 thislen = writesize - column;
1155 this->command(mtd, ONENAND_CMD_READ, from, writesize);
1227 int writesize = this->writesize;
1251 this->command(mtd, ONENAND_CMD_READ, from, writesize);
1259 thislen = min_t(int, writesize, len - read);
1260 column = from & (writesize - 1);
1261 if (column + thislen > writesize)
1262 thislen = writesize - column;
1268 this->command(mtd, ONENAND_CMD_READ, from, writesize);
1308 thislen = min_t(int, writesize, len - read);
1415 from += mtd->writesize;
1594 from += this->writesize;
1648 column = addr & (this->writesize - 1);
1651 thislen = min_t(int, this->writesize - column, len);
1653 this->command(mtd, ONENAND_CMD_READ, addr, this->writesize);
1663 this->read_bufferram(mtd, ONENAND_DATARAM, this->verify_buf, 0, mtd->writesize);
1730 column = to & (mtd->writesize - 1);
1734 int thislen = min_t(int, mtd->writesize - column, len - written);
1740 subpage = thislen < mtd->writesize;
1742 memset(this->page_buf, 0xff, mtd->writesize);
1747 this->write_bufferram(mtd, ONENAND_DATARAM, wbuf, 0, mtd->writesize);
1750 this->command(mtd, ONENAND_CMD_PROG, to, mtd->writesize);
1758 onenand_update_bufferram(mtd, to + this->writesize, !subpage);
1831 column = to & (mtd->writesize - 1);
1838 thislen = min_t(int, mtd->writesize - column, len - written);
1846 subpage = thislen < mtd->writesize;
1848 memset(this->page_buf, 0xff, mtd->writesize);
1853 this->write_bufferram(mtd, ONENAND_DATARAM, wbuf, 0, mtd->writesize);
1918 this->command(mtd, cmd, to, mtd->writesize);
2040 memset(this->page_buf, 0xff, mtd->writesize);
2042 this->page_buf, 0, mtd->writesize);
2050 onenand_update_bufferram(mtd, to + this->writesize, 0);
2070 to += mtd->writesize;
2721 if (addr & this->writesize)
2847 onenand_update_bufferram(mtd, to + this->writesize, 0);
2883 to += mtd->writesize;
2954 if (len < mtd->writesize) {
2956 memset(this->page_buf + len, 0xff, mtd->writesize - len);
2958 len = mtd->writesize;
3005 ops.len = mtd->writesize;
3009 ret = onenand_write_ops_nolock(mtd, mtd->writesize * 49, &ops);
3057 from += mtd->writesize * otp_pages;
3063 if (mtd->writesize * otp_pages < from + len)
3066 if (mtd->writesize * otp_pages < len)
3083 otpinfo->length = mtd->writesize;
3086 from += mtd->writesize;
3206 memset(buf, 0xff, FLEXONENAND(this) ? this->writesize
3216 len = FLEXONENAND(this) ? mtd->writesize : 16;
3746 mtd->writesize = this->read_word(this->base + ONENAND_REG_DATA_BUFFER_SIZE);
3749 mtd->writesize <<= 1;
3751 mtd->oobsize = mtd->writesize >> 5;
3753 mtd->erasesize = mtd->writesize << 6;
3763 this->page_shift = ffs(mtd->writesize) - 1;
3769 this->writesize = mtd->writesize;
3785 mtd->writesize <<= 1;
3869 this->page_buf = kzalloc(mtd->writesize, GFP_KERNEL);
3873 this->verify_buf = kzalloc(mtd->writesize, GFP_KERNEL);
3934 this->subpagesize = mtd->writesize >> mtd->subpage_sft;
3973 mtd->writebufsize = mtd->writesize;