Lines Matching refs:writesize
524 return mtd->writesize; in onenand_bufferram_offset()
627 if (addr & this->writesize) in onenand_get_2x_blockpage()
838 this->command(mtd, FLEXONENAND_CMD_RECOVER_LSB, addr, this->writesize); in onenand_recover_lsb()
862 int writesize = this->writesize; in onenand_read_ops_nolock() local
891 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock()
901 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
902 column = from & (writesize - 1); in onenand_read_ops_nolock()
903 if (column + thislen > writesize) in onenand_read_ops_nolock()
904 thislen = writesize - column; in onenand_read_ops_nolock()
911 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock()
944 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock()
963 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
1078 from += mtd->writesize; in onenand_read_oob_nolock()
1269 from += this->writesize; in onenand_bbt_read_oob()
1327 thislen = min_t(int, this->writesize, len); in onenand_verify()
1328 column = addr & (this->writesize - 1); in onenand_verify()
1329 if (column + thislen > this->writesize) in onenand_verify()
1330 thislen = this->writesize - column; in onenand_verify()
1332 this->command(mtd, ONENAND_CMD_READ, addr, this->writesize); in onenand_verify()
1446 column = to & (mtd->writesize - 1); in onenand_write_ops_nolock()
1452 thislen = min_t(int, mtd->writesize - column, len - written); in onenand_write_ops_nolock()
1458 subpage = thislen < mtd->writesize; in onenand_write_ops_nolock()
1460 memset(this->page_buf, 0xff, mtd->writesize); in onenand_write_ops_nolock()
1465 this->write_bufferram(mtd, to, ONENAND_DATARAM, wbuf, 0, mtd->writesize); in onenand_write_ops_nolock()
1486 this->command(mtd, ONENAND_CMD_PROG, to, mtd->writesize); in onenand_write_ops_nolock()
1494 onenand_update_bufferram(mtd, to + this->writesize, !ret && !subpage); in onenand_write_ops_nolock()
1603 memset(this->page_buf, 0xff, mtd->writesize); in onenand_write_oob_nolock()
1605 this->page_buf, 0, mtd->writesize); in onenand_write_oob_nolock()
1613 onenand_update_bufferram(mtd, to + this->writesize, 0); in onenand_write_oob_nolock()
1632 to += mtd->writesize; in onenand_write_oob_nolock()
2626 mtd->writesize = in onenand_probe()
2630 mtd->writesize <<= 1; in onenand_probe()
2632 mtd->oobsize = mtd->writesize >> 5; in onenand_probe()
2634 mtd->erasesize = mtd->writesize << 6; in onenand_probe()
2644 this->page_shift = ffs(mtd->writesize) - 1; in onenand_probe()
2646 this->page_mask = (mtd->erasesize / mtd->writesize) - 1; in onenand_probe()
2651 this->writesize = mtd->writesize; in onenand_probe()
2668 mtd->writebufsize = mtd->writesize; in onenand_probe()
2724 this->page_buf = kzalloc(mtd->writesize, GFP_KERNEL); in onenand_scan()
2774 this->subpagesize = mtd->writesize >> mtd->subpage_sft; in onenand_scan()