• Home
  • Raw
  • Download

Lines Matching refs:writesize

445 			if (addr & this->writesize)  in onenand_command()
740 return this->writesize; in onenand_bufferram_offset()
881 if (addr & this->writesize) in onenand_get_2x_blockpage()
1101 this->command(mtd, FLEXONENAND_CMD_RECOVER_LSB, addr, this->writesize); in onenand_recover_lsb()
1126 int writesize = this->writesize; in onenand_mlc_read_ops_nolock() local
1148 thislen = min_t(int, writesize, len - read); in onenand_mlc_read_ops_nolock()
1150 column = from & (writesize - 1); in onenand_mlc_read_ops_nolock()
1151 if (column + thislen > writesize) in onenand_mlc_read_ops_nolock()
1152 thislen = writesize - column; in onenand_mlc_read_ops_nolock()
1155 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_mlc_read_ops_nolock()
1227 int writesize = this->writesize; in onenand_read_ops_nolock() local
1251 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock()
1259 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
1260 column = from & (writesize - 1); in onenand_read_ops_nolock()
1261 if (column + thislen > writesize) in onenand_read_ops_nolock()
1262 thislen = writesize - column; in onenand_read_ops_nolock()
1268 this->command(mtd, ONENAND_CMD_READ, from, writesize); in onenand_read_ops_nolock()
1308 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
1415 from += mtd->writesize; in onenand_read_oob_nolock()
1582 from += this->writesize; in onenand_bbt_read_oob()
1636 column = addr & (this->writesize - 1); in onenand_verify()
1639 thislen = min_t(int, this->writesize - column, len); in onenand_verify()
1641 this->command(mtd, ONENAND_CMD_READ, addr, this->writesize); in onenand_verify()
1651 this->read_bufferram(mtd, ONENAND_DATARAM, this->verify_buf, 0, mtd->writesize); in onenand_verify()
1718 column = to & (mtd->writesize - 1); in onenand_panic_write()
1722 int thislen = min_t(int, mtd->writesize - column, len - written); in onenand_panic_write()
1728 subpage = thislen < mtd->writesize; in onenand_panic_write()
1730 memset(this->page_buf, 0xff, mtd->writesize); in onenand_panic_write()
1735 this->write_bufferram(mtd, ONENAND_DATARAM, wbuf, 0, mtd->writesize); in onenand_panic_write()
1738 this->command(mtd, ONENAND_CMD_PROG, to, mtd->writesize); in onenand_panic_write()
1746 onenand_update_bufferram(mtd, to + this->writesize, !subpage); in onenand_panic_write()
1819 column = to & (mtd->writesize - 1); in onenand_write_ops_nolock()
1826 thislen = min_t(int, mtd->writesize - column, len - written); in onenand_write_ops_nolock()
1834 subpage = thislen < mtd->writesize; in onenand_write_ops_nolock()
1836 memset(this->page_buf, 0xff, mtd->writesize); in onenand_write_ops_nolock()
1841 this->write_bufferram(mtd, ONENAND_DATARAM, wbuf, 0, mtd->writesize); in onenand_write_ops_nolock()
1906 this->command(mtd, cmd, to, mtd->writesize); in onenand_write_ops_nolock()
2031 memset(this->page_buf, 0xff, mtd->writesize); in onenand_write_oob_nolock()
2033 this->page_buf, 0, mtd->writesize); in onenand_write_oob_nolock()
2041 onenand_update_bufferram(mtd, to + this->writesize, 0); in onenand_write_oob_nolock()
2061 to += mtd->writesize; in onenand_write_oob_nolock()
2712 if (addr & this->writesize) in onenand_otp_command()
2840 onenand_update_bufferram(mtd, to + this->writesize, 0); in onenand_otp_write_oob_nolock()
2876 to += mtd->writesize; in onenand_otp_write_oob_nolock()
2946 if (len < mtd->writesize) { in do_otp_write()
2948 memset(this->page_buf + len, 0xff, mtd->writesize - len); in do_otp_write()
2950 len = mtd->writesize; in do_otp_write()
2997 ops.len = mtd->writesize; in do_otp_lock()
3001 ret = onenand_write_ops_nolock(mtd, mtd->writesize * 49, &ops); in do_otp_lock()
3049 from += mtd->writesize * otp_pages; in onenand_otp_walk()
3055 if (mtd->writesize * otp_pages < from + len) in onenand_otp_walk()
3058 if (mtd->writesize * otp_pages < len) in onenand_otp_walk()
3075 otpinfo->length = mtd->writesize; in onenand_otp_walk()
3078 from += mtd->writesize; in onenand_otp_walk()
3197 memset(buf, 0xff, FLEXONENAND(this) ? this->writesize in onenand_lock_user_prot_reg()
3207 len = FLEXONENAND(this) ? mtd->writesize : 16; in onenand_lock_user_prot_reg()
3738 mtd->writesize = this->read_word(this->base + ONENAND_REG_DATA_BUFFER_SIZE); in onenand_probe()
3741 mtd->writesize <<= 1; in onenand_probe()
3743 mtd->oobsize = mtd->writesize >> 5; in onenand_probe()
3745 mtd->erasesize = mtd->writesize << 6; in onenand_probe()
3755 this->page_shift = ffs(mtd->writesize) - 1; in onenand_probe()
3761 this->writesize = mtd->writesize; in onenand_probe()
3777 mtd->writesize <<= 1; in onenand_probe()
3861 this->page_buf = kzalloc(mtd->writesize, GFP_KERNEL); in onenand_scan()
3865 this->verify_buf = kzalloc(mtd->writesize, GFP_KERNEL); in onenand_scan()
3926 this->subpagesize = mtd->writesize >> mtd->subpage_sft; in onenand_scan()
3965 mtd->writebufsize = mtd->writesize; in onenand_scan()