Lines Matching defs:oobsize

527 			return mtd->oobsize;
787 this->read_bufferram(mtd, 0, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize);
861 int oobread = 0, oobcolumn, thisooblen, oobsize;
869 oobsize = this->ecclayout->oobavail;
871 oobsize = mtd->oobsize;
873 oobcolumn = from & (mtd->oobsize - 1);
932 thisooblen = oobsize - oobcolumn;
1007 int read = 0, thislen, column, oobsize;
1022 oobsize = this->ecclayout->oobavail;
1024 oobsize = mtd->oobsize;
1026 column = from & (mtd->oobsize - 1);
1028 if (unlikely(column >= oobsize)) {
1036 (from >> this->page_shift)) * oobsize)) {
1047 thislen = oobsize - column;
1051 this->command(mtd, readcmd, from, mtd->oobsize);
1241 column = from & (mtd->oobsize - 1);
1245 thislen = mtd->oobsize - column;
1249 this->command(mtd, readcmd, from, mtd->oobsize);
1299 this->command(mtd, readcmd, to, mtd->oobsize);
1305 this->read_bufferram(mtd, 0, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize);
1306 for (i = 0; i < mtd->oobsize; i++)
1419 int oobwritten = 0, oobcolumn, thisooblen, oobsize;
1441 oobsize = this->ecclayout->oobavail;
1443 oobsize = mtd->oobsize;
1445 oobcolumn = to & (mtd->oobsize - 1);
1454 thisooblen = min_t(int, oobsize - oobcolumn, ooblen - oobwritten);
1471 /* We send data to spare ram with oobsize
1473 memset(oobbuf, 0xff, mtd->oobsize);
1485 this->write_bufferram(mtd, 0, ONENAND_SPARERAM, oobbuf, 0, mtd->oobsize);
1540 int column, ret = 0, oobsize;
1556 oobsize = this->ecclayout->oobavail;
1558 oobsize = mtd->oobsize;
1560 column = to & (mtd->oobsize - 1);
1562 if (unlikely(column >= oobsize)) {
1568 if (unlikely(column + len > oobsize)) {
1577 (to >> this->page_shift)) * oobsize)) {
1589 int thislen = min_t(int, oobsize, len - written);
1591 this->command(mtd, ONENAND_CMD_BUFFERRAM, to, mtd->oobsize);
1593 /* We send data to spare ram with oobsize
1595 memset(oobbuf, 0xff, mtd->oobsize);
1600 this->write_bufferram(mtd, 0, ONENAND_SPARERAM, oobbuf, 0, mtd->oobsize);
1609 this->command(mtd, oobcmd, to, mtd->oobsize);
1912 ofs += mtd->oobsize + (bbm->badblockpos & ~0x01);
2401 .ooblen = mtd->oobsize,
2422 for (i = 0; i < mtd->oobsize; i++)
2426 if (i != mtd->oobsize) {
2630 mtd->oobsize = mtd->writesize >> 5;
2730 this->oob_buf = kzalloc(mtd->oobsize, GFP_KERNEL);
2745 * Allow subpage writes up to oobsize.
2747 switch (mtd->oobsize) {
2764 printk(KERN_WARNING "No OOB scheme defined for oobsize %d\n",
2765 mtd->oobsize);