Lines Matching refs:oobblock
191 if (mtd->oobblock == 256 && column >= 256) { in nand_command()
195 } else if (mtd->oobblock == 512 && column >= 256) { in nand_command()
366 oob_data = &this->data_buf[mtd->oobblock]; in nand_write_page()
386 if ((mtd->oobblock == 512) && (last == 512)) { in nand_write_page()
393 if (eccmode != NAND_ECC_NONE && (col || last != mtd->oobblock)) in nand_write_page()
402 for (i = last; i < mtd->oobblock; i++) in nand_write_page()
413 for (i = 0; i < mtd->oobblock; i++) in nand_write_page()
427 if (mtd->oobblock == 512) { in nand_write_page()
429 for (i = mtd->eccsize; i < mtd->oobblock; i++) in nand_write_page()
440 for (i = 0; i < mtd->oobblock; i++) in nand_write_page()
450 for (i = 0; i < mtd->oobblock; i++) in nand_write_page()
511 if (eccmode != NAND_ECC_NONE && !col && last == mtd->oobblock) { in nand_write_page()
516 case NAND_ECC_HW3_256: ecc_bytes = (mtd->oobblock == 512) ? 6 : 3; break; in nand_write_page()
583 col = from & (mtd->oobblock - 1); in nand_read_ecc()
585 end = mtd->oobblock; in nand_read_ecc()
628 if (mtd->oobblock == 512) in nand_read_ecc()
638 if (mtd->oobblock == 512) { /* read second, if pagesize = 512 */ in nand_read_ecc()
684 if (mtd->oobblock == 512 && eccmode != NAND_ECC_HW3_512) { in nand_read_ecc()
700 read += mtd->oobblock; in nand_read_ecc()
811 col = to & (mtd->oobblock - 1); in nand_write_ecc()
833 if (!col && (len - written) >= mtd->oobblock) { in nand_write_ecc()
835 cnt = mtd->oobblock; in nand_write_ecc()
838 for (i = col; i < len && i < mtd->oobblock; i++) { in nand_write_ecc()
916 this->cmdfunc (mtd, NAND_CMD_SEQIN, mtd->oobblock, page); in nand_write_oob()
1002 col = to & (mtd->oobblock - 1); in nand_writev_ecc()
1029 if (!cnt && (vecs->iov_len - len) >= mtd->oobblock) { in nand_writev_ecc()
1030 cnt = mtd->oobblock; in nand_writev_ecc()
1033 len += mtd->oobblock; in nand_writev_ecc()
1045 while ((cnt < mtd->oobblock) && count) { in nand_writev_ecc()
1125 pages_per_block = mtd->erasesize / mtd->oobblock; in nand_erase()
1297 mtd->oobblock = 256; in nand_scan()
1301 mtd->oobblock = 512; in nand_scan()
1327 if (mtd->oobblock == 256) { in nand_scan()