• Home
  • Raw
  • Download

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()
699 if (column >= mtd->writesize) { in nand_command()
701 column -= mtd->writesize; in nand_command()
832 column += mtd->writesize; in nand_command_lp()
1400 chip->read_buf(mtd, buf, mtd->writesize); in nand_read_page_raw()
1553 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1); in nand_read_subpage()
1569 mtd->writesize + aligned_pos, -1); in nand_read_subpage()
1881 col = (int)(from & (mtd->writesize - 1)); in nand_do_read_ops()
1890 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
1891 aligned = (bytes == mtd->writesize); in nand_do_read_ops()
2097 if (mtd->writesize > 512) in nand_read_oob_syndrome()
2127 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in nand_write_oob_std()
2167 if (mtd->writesize <= 512) { in nand_write_oob_syndrome()
2349 chip->write_buf(mtd, buf, mtd->writesize); in nand_write_page_raw()
2598 subpage = offset || (data_len < mtd->writesize); in nand_write_page()
2703 column = to & (mtd->writesize - 1); in nand_do_write_ops()
2729 int bytes = mtd->writesize; in nand_do_write_ops()
2732 int part_pagewr = (column || writelen < mtd->writesize); in nand_do_write_ops()
2750 memset(chip->buffers->databuf, 0xff, mtd->writesize); in nand_do_write_ops()
3531 mtd->writesize = le32_to_cpu(p->byte_per_page); in nand_flash_detect_onfi()
3539 mtd->erasesize *= mtd->writesize; in nand_flash_detect_onfi()
3566 if (mtd->writesize > 512 && chip->cmdfunc == nand_command) in nand_flash_detect_onfi()
3629 mtd->writesize = le32_to_cpu(p->byte_per_page); in nand_flash_detect_jedec()
3633 mtd->erasesize *= mtd->writesize; in nand_flash_detect_jedec()
3743 mtd->writesize = 1024 << (extid & 0x03); in nand_decode_ext_id()
3746 mtd->oobsize = (8 << (extid & 0x01)) * (mtd->writesize >> 9); in nand_decode_ext_id()
3767 mtd->writesize = type->pagesize; in nand_decode_id()
3768 mtd->oobsize = mtd->writesize / 32; in nand_decode_id()
3784 if (mtd->writesize > 512 || (chip->options & NAND_BUSWIDTH_16)) in nand_decode_bbm_options()
3802 mtd->writesize = type->pagesize; in find_full_id_nand()
4001 chip->page_shift = ffs(mtd->writesize) - 1; in nand_detect()
4018 if (mtd->writesize > 512 && chip->cmdfunc == nand_command) in nand_detect()
4036 mtd->erasesize >> 10, mtd->writesize, mtd->oobsize); in nand_detect()
4335 steps = mtd->writesize / ecc->size; in nand_set_ecc_soft_ops()
4382 nsteps = mtd->writesize / preset_step; in nand_check_ecc_caps()
4448 req_corr = mtd->writesize / req_step * req_strength; in nand_match_ecc_req()
4465 if (mtd->writesize % step_size) in nand_match_ecc_req()
4468 nsteps = mtd->writesize / step_size; in nand_match_ecc_req()
4537 if (mtd->writesize % step_size) in nand_maximize_ecc()
4540 nsteps = mtd->writesize / step_size; in nand_maximize_ecc()
4604 corr = (mtd->writesize * ecc->strength) / ecc->size; in nand_ecc_strength_good()
4605 ds_corr = (mtd->writesize * chip->ecc_strength_ds) / chip->ecc_step_ds; in nand_ecc_strength_good()
4673 nbuf->databuf = kmalloc(mtd->writesize + mtd->oobsize, in nand_scan_tail()
4698 chip->oob_poi = chip->buffers->databuf + mtd->writesize; in nand_scan_tail()
4781 if (mtd->writesize >= ecc->size) { in nand_scan_tail()
4790 ecc->size, mtd->writesize); in nand_scan_tail()
4822 ecc->size = mtd->writesize; in nand_scan_tail()
4847 ecc->steps = mtd->writesize / ecc->size; in nand_scan_tail()
4848 if (ecc->steps * ecc->size != mtd->writesize) { in nand_scan_tail()
4888 chip->subpagesize = mtd->writesize >> mtd->subpage_sft; in nand_scan_tail()
4929 mtd->writebufsize = mtd->writesize; in nand_scan_tail()