Lines Matching refs:writesize
521 return mtd->writesize; in onenand_bufferram_offset()
624 if (addr & this->writesize) in onenand_get_2x_blockpage()
835 this->command(mtd, FLEXONENAND_CMD_RECOVER_LSB, addr, this->writesize); in onenand_recover_lsb()
859 int writesize = this->writesize; in onenand_read_ops_nolock() local
888 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock()
898 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
899 column = from & (writesize - 1); in onenand_read_ops_nolock()
900 if (column + thislen > writesize) in onenand_read_ops_nolock()
901 thislen = writesize - column; in onenand_read_ops_nolock()
908 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock()
941 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock()
960 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
1075 from += mtd->writesize; in onenand_read_oob_nolock()
1266 from += this->writesize; in onenand_bbt_read_oob()
1324 thislen = min_t(int, this->writesize, len); in onenand_verify()
1325 column = addr & (this->writesize - 1); in onenand_verify()
1326 if (column + thislen > this->writesize) in onenand_verify()
1327 thislen = this->writesize - column; in onenand_verify()
1329 this->command(mtd, ONENAND_CMD_READ, addr, this->writesize); in onenand_verify()
1443 column = to & (mtd->writesize - 1); in onenand_write_ops_nolock()
1449 thislen = min_t(int, mtd->writesize - column, len - written); in onenand_write_ops_nolock()
1455 subpage = thislen < mtd->writesize; in onenand_write_ops_nolock()
1457 memset(this->page_buf, 0xff, mtd->writesize); in onenand_write_ops_nolock()
1462 this->write_bufferram(mtd, to, ONENAND_DATARAM, wbuf, 0, mtd->writesize); in onenand_write_ops_nolock()
1483 this->command(mtd, ONENAND_CMD_PROG, to, mtd->writesize); in onenand_write_ops_nolock()
1491 onenand_update_bufferram(mtd, to + this->writesize, !ret && !subpage); in onenand_write_ops_nolock()
1600 memset(this->page_buf, 0xff, mtd->writesize); in onenand_write_oob_nolock()
1602 this->page_buf, 0, mtd->writesize); in onenand_write_oob_nolock()
1610 onenand_update_bufferram(mtd, to + this->writesize, 0); in onenand_write_oob_nolock()
1629 to += mtd->writesize; in onenand_write_oob_nolock()
2623 mtd->writesize = in onenand_probe()
2627 mtd->writesize <<= 1; in onenand_probe()
2629 mtd->oobsize = mtd->writesize >> 5; in onenand_probe()
2631 mtd->erasesize = mtd->writesize << 6; in onenand_probe()
2641 this->page_shift = ffs(mtd->writesize) - 1; in onenand_probe()
2643 this->page_mask = (mtd->erasesize / mtd->writesize) - 1; in onenand_probe()
2648 this->writesize = mtd->writesize; in onenand_probe()
2664 mtd->writebufsize = mtd->writesize; in onenand_probe()
2720 this->page_buf = kzalloc(mtd->writesize, GFP_KERNEL); in onenand_scan()
2770 this->subpagesize = mtd->writesize >> mtd->subpage_sft; in onenand_scan()