Lines Matching refs:writesize
436 ofs += mtd->erasesize - mtd->writesize; in nand_block_bad()
488 ofs += mtd->erasesize - mtd->writesize; in nand_default_block_markbad()
495 ofs += mtd->writesize; in nand_default_block_markbad()
775 if (column >= mtd->writesize) { in nand_command()
777 column -= mtd->writesize; in nand_command()
907 column += mtd->writesize; in nand_command_lp()
1407 if (offset_in_page > mtd->writesize + mtd->oobsize) in nand_fill_column_cycles()
1415 if (mtd->writesize <= 512 && offset_in_page >= mtd->writesize) in nand_fill_column_cycles()
1416 offset_in_page -= mtd->writesize; in nand_fill_column_cycles()
1435 if (mtd->writesize <= 512) in nand_fill_column_cycles()
1465 if (offset_in_page >= mtd->writesize) in nand_sp_exec_read_page_op()
1544 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_read_page_op()
1548 if (mtd->writesize > 512) in nand_read_page_op()
1635 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_change_read_column_op()
1639 if (mtd->writesize <= 512) in nand_change_read_column_op()
1703 mtd->writesize + offset_in_oob, in nand_read_oob_op()
1758 if (mtd->writesize <= 512) { in nand_exec_prog_page_op()
1764 if (offset_in_page >= mtd->writesize) in nand_exec_prog_page_op()
1811 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_prog_page_begin_op()
1898 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_prog_page_op()
1941 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_change_write_column_op()
1945 if (mtd->writesize <= 512) in nand_change_write_column_op()
3001 ret = nand_read_page_op(chip, page, 0, buf, mtd->writesize); in nand_read_page_raw()
3182 ret = nand_change_read_column_op(chip, mtd->writesize, in nand_read_subpage()
3201 mtd->writesize + aligned_pos, in nand_read_subpage()
3557 col = (int)(from & (mtd->writesize - 1)); in nand_do_read_ops()
3566 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
3567 aligned = (bytes == mtd->writesize); in nand_do_read_ops()
3746 if (mtd->writesize > 512) in nand_read_oob_syndrome()
3785 return nand_prog_page_op(chip, page, mtd->writesize, chip->oob_poi, in nand_write_oob_std()
3822 if (mtd->writesize <= 512) { in nand_write_oob_syndrome()
4012 ret = nand_prog_page_begin_op(chip, page, 0, buf, mtd->writesize); in nand_write_page_raw()
4329 subpage = offset || (data_len < mtd->writesize); in nand_write_page()
4423 column = to & (mtd->writesize - 1); in nand_do_write_ops()
4449 int bytes = mtd->writesize; in nand_do_write_ops()
4452 int part_pagewr = (column || writelen < mtd->writesize); in nand_do_write_ops()
4470 memset(chip->data_buf, 0xff, mtd->writesize); in nand_do_write_ops()
5234 mtd->writesize = le32_to_cpu(p->byte_per_page); in nand_flash_detect_onfi()
5242 mtd->erasesize *= mtd->writesize; in nand_flash_detect_onfi()
5269 if (mtd->writesize > 512 && chip->cmdfunc == nand_command) in nand_flash_detect_onfi()
5382 mtd->writesize = le32_to_cpu(p->byte_per_page); in nand_flash_detect_jedec()
5386 mtd->erasesize *= mtd->writesize; in nand_flash_detect_jedec()
5498 mtd->writesize = 1024 << (extid & 0x03); in nand_decode_ext_id()
5501 mtd->oobsize = (8 << (extid & 0x01)) * (mtd->writesize >> 9); in nand_decode_ext_id()
5522 mtd->writesize = type->pagesize; in nand_decode_id()
5523 mtd->oobsize = mtd->writesize / 32; in nand_decode_id()
5539 if (mtd->writesize > 512 || (chip->options & NAND_BUSWIDTH_16)) in nand_decode_bbm_options()
5557 mtd->writesize = type->pagesize; in find_full_id_nand()
5769 chip->page_shift = ffs(mtd->writesize) - 1; in nand_detect()
5789 if (mtd->writesize > 512 && chip->cmdfunc == nand_command) in nand_detect()
5798 mtd->erasesize >> 10, mtd->writesize, mtd->oobsize); in nand_detect()
6125 steps = mtd->writesize / ecc->size; in nand_set_ecc_soft_ops()
6164 int ecc_bytes, nsteps = mtd->writesize / preset_step; in nand_check_ecc_caps()
6228 req_corr = mtd->writesize / req_step * req_strength; in nand_match_ecc_req()
6245 if (mtd->writesize % step_size) in nand_match_ecc_req()
6248 nsteps = mtd->writesize / step_size; in nand_match_ecc_req()
6314 if (mtd->writesize % step_size) in nand_maximize_ecc()
6317 nsteps = mtd->writesize / step_size; in nand_maximize_ecc()
6418 corr = (mtd->writesize * ecc->strength) / ecc->size; in nand_ecc_strength_good()
6419 ds_corr = (mtd->writesize * chip->ecc_strength_ds) / chip->ecc_step_ds; in nand_ecc_strength_good()
6444 chip->data_buf = kmalloc(mtd->writesize + mtd->oobsize, GFP_KERNEL); in nand_scan_tail()
6461 chip->oob_poi = chip->data_buf + mtd->writesize; in nand_scan_tail()
6557 if (mtd->writesize >= ecc->size) { in nand_scan_tail()
6566 ecc->size, mtd->writesize); in nand_scan_tail()
6598 ecc->size = mtd->writesize; in nand_scan_tail()
6632 ecc->steps = mtd->writesize / ecc->size; in nand_scan_tail()
6633 if (ecc->steps * ecc->size != mtd->writesize) { in nand_scan_tail()
6673 chip->subpagesize = mtd->writesize >> mtd->subpage_sft; in nand_scan_tail()
6712 mtd->writebufsize = mtd->writesize; in nand_scan_tail()