Lines Matching refs:writesize
327 ofs += mtd->erasesize - mtd->writesize; in nand_block_bad()
359 ofs += mtd->writesize; in nand_block_bad()
401 ofs += mtd->erasesize - mtd->writesize; in nand_default_block_markbad()
408 ofs += mtd->writesize; in nand_default_block_markbad()
615 if (column >= mtd->writesize) { in nand_command()
617 column -= mtd->writesize; in nand_command()
715 column += mtd->writesize; in nand_command_lp()
1251 chip->read_buf(mtd, buf, mtd->writesize); in nand_read_page_raw()
1401 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1); in nand_read_subpage()
1416 mtd->writesize + aligned_pos, -1); in nand_read_subpage()
1702 col = (int)(from & (mtd->writesize - 1)); in nand_do_read_ops()
1711 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
1712 aligned = (bytes == mtd->writesize); in nand_do_read_ops()
1916 if (mtd->writesize > 512) in nand_read_oob_syndrome()
1946 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in nand_write_oob_std()
1985 if (mtd->writesize <= 512) { in nand_write_oob_syndrome()
2172 chip->write_buf(mtd, buf, mtd->writesize); in nand_write_page_raw()
2418 subpage = offset || (data_len < mtd->writesize); in nand_write_page()
2558 column = to & (mtd->writesize - 1); in nand_do_write_ops()
2585 int bytes = mtd->writesize; in nand_do_write_ops()
2589 int part_pagewr = (column || writelen < (mtd->writesize - 1)); in nand_do_write_ops()
2606 memset(chip->buffers->databuf, 0xff, mtd->writesize); in nand_do_write_ops()
3345 mtd->writesize = le32_to_cpu(p->byte_per_page); in nand_flash_detect_onfi()
3353 mtd->erasesize *= mtd->writesize; in nand_flash_detect_onfi()
3379 if (mtd->writesize > 512 && chip->cmdfunc == nand_command) in nand_flash_detect_onfi()
3445 mtd->writesize = le32_to_cpu(p->byte_per_page); in nand_flash_detect_jedec()
3449 mtd->erasesize *= mtd->writesize; in nand_flash_detect_jedec()
3573 mtd->writesize = 2048 << (extid & 0x03); in nand_decode_ext_id()
3610 mtd->writesize = 2048 << (extid & 0x03); in nand_decode_ext_id()
3648 mtd->writesize = 1024 << (extid & 0x03); in nand_decode_ext_id()
3652 (mtd->writesize >> 9); in nand_decode_ext_id()
3672 mtd->oobsize = 32 * mtd->writesize >> 9; in nand_decode_ext_id()
3690 mtd->writesize = type->pagesize; in nand_decode_id()
3691 mtd->oobsize = mtd->writesize / 32; in nand_decode_id()
3705 && mtd->writesize == 512) { in nand_decode_id()
3722 if (mtd->writesize > 512 || (chip->options & NAND_BUSWIDTH_16)) in nand_decode_bbm_options()
3743 (mtd->writesize == 2048 && in nand_decode_bbm_options()
3757 mtd->writesize = type->pagesize; in find_full_id_nand()
3901 chip->page_shift = ffs(mtd->writesize) - 1; in nand_get_flash_type()
3918 if (mtd->writesize > 512 && chip->cmdfunc == nand_command) in nand_get_flash_type()
3936 mtd->erasesize >> 10, mtd->writesize, mtd->oobsize); in nand_get_flash_type()
4070 corr = (mtd->writesize * ecc->strength) / ecc->size; in nand_ecc_strength_good()
4071 ds_corr = (mtd->writesize * chip->ecc_strength_ds) / chip->ecc_step_ds; in nand_ecc_strength_good()
4096 nbuf = kzalloc(sizeof(*nbuf) + mtd->writesize in nand_scan_tail()
4111 chip->oob_poi = chip->buffers->databuf + mtd->writesize; in nand_scan_tail()
4197 if (mtd->writesize >= ecc->size) { in nand_scan_tail()
4205 ecc->size, mtd->writesize); in nand_scan_tail()
4267 ecc->size = mtd->writesize; in nand_scan_tail()
4302 ecc->steps = mtd->writesize / ecc->size; in nand_scan_tail()
4303 if (ecc->steps * ecc->size != mtd->writesize) { in nand_scan_tail()
4322 chip->subpagesize = mtd->writesize >> mtd->subpage_sft; in nand_scan_tail()
4363 mtd->writebufsize = mtd->writesize; in nand_scan_tail()