Lines Matching refs:writesize

53 	int lastpage = (mtd->erasesize / mtd->writesize) - 1;  in nand_pairing_dist3_get_info()
73 int lastpair = ((mtd->erasesize / mtd->writesize) - 1) / 2; in nand_pairing_dist3_get_wunit()
88 if (page >= mtd->erasesize / mtd->writesize) in nand_pairing_dist3_get_wunit()
229 int last_page = ((mtd->erasesize - mtd->writesize) >> in nand_bbm_get_next_page()
521 ofs + (page_offset * mtd->writesize), in nand_default_block_markbad()
1095 if (offset_in_page > mtd->writesize + mtd->oobsize) in nand_fill_column_cycles()
1103 if (mtd->writesize <= 512 && offset_in_page >= mtd->writesize) in nand_fill_column_cycles()
1104 offset_in_page -= mtd->writesize; in nand_fill_column_cycles()
1123 if (mtd->writesize <= 512) in nand_fill_column_cycles()
1153 if (offset_in_page >= mtd->writesize) in nand_sp_exec_read_page_op()
1299 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_read_page_op()
1303 if (mtd->writesize > 512) { in nand_read_page_op()
1396 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_change_read_column_op()
1400 if (mtd->writesize <= 512) in nand_change_read_column_op()
1464 mtd->writesize + offset_in_oob, in nand_read_oob_op()
1518 if (mtd->writesize <= 512) { in nand_exec_prog_page_op()
1524 if (offset_in_page >= mtd->writesize) in nand_exec_prog_page_op()
1563 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_prog_page_begin_op()
1651 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_prog_page_op()
1705 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_change_write_column_op()
1709 if (mtd->writesize <= 512) in nand_change_write_column_op()
2891 ret = nand_read_page_op(chip, page, 0, buf, mtd->writesize); in nand_read_page_raw()
2925 unsigned int size = mtd->writesize; in nand_monolithic_read_page_raw()
2941 memcpy(buf, read_buf, mtd->writesize); in nand_monolithic_read_page_raw()
3111 ret = nand_change_read_column_op(chip, mtd->writesize, in nand_read_subpage()
3130 mtd->writesize + aligned_pos, in nand_read_subpage()
3438 if ((col && col + readlen < (3 * mtd->writesize)) || in rawnand_enable_cont_reads()
3439 (!col && readlen < (2 * mtd->writesize))) { in rawnand_enable_cont_reads()
3518 col = (int)(from & (mtd->writesize - 1)); in nand_do_read_ops()
3529 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
3530 aligned = (bytes == mtd->writesize); in nand_do_read_ops()
3705 if (mtd->writesize > 512) in nand_read_oob_syndrome()
3744 return nand_prog_page_op(chip, page, mtd->writesize, chip->oob_poi, in nand_write_oob_std()
3780 if (mtd->writesize <= 512) { in nand_write_oob_syndrome()
3976 ret = nand_prog_page_begin_op(chip, page, 0, buf, mtd->writesize); in nand_write_page_raw()
4011 unsigned int size = mtd->writesize; in nand_monolithic_write_page_raw()
4019 memcpy(write_buf, buf, mtd->writesize); in nand_monolithic_write_page_raw()
4323 subpage = offset || (data_len < mtd->writesize); in nand_write_page()
4382 column = to & (mtd->writesize - 1); in nand_do_write_ops()
4408 int bytes = mtd->writesize; in nand_do_write_ops()
4411 int part_pagewr = (column || writelen < mtd->writesize); in nand_do_write_ops()
4432 memset(wbuf, 0xff, mtd->writesize); in nand_do_write_ops()
4931 mtd->writesize = memorg->pagesize; in nand_decode_ext_id()
4934 memorg->oobsize = (8 << (extid & 0x01)) * (mtd->writesize >> 9); in nand_decode_ext_id()
4963 mtd->writesize = memorg->pagesize; in nand_decode_id()
4981 if (mtd->writesize > 512 || (chip->options & NAND_BUSWIDTH_16)) in nand_decode_bbm_options()
5005 mtd->writesize = memorg->pagesize; in find_full_id_nand()
5120 mtd->writesize, true)) in rawnand_check_cont_read_support()
5291 chip->page_shift = ffs(mtd->writesize) - 1; in nand_detect()
5318 mtd->erasesize >> 10, mtd->writesize, mtd->oobsize); in nand_detect()
5923 int ecc_bytes, nsteps = mtd->writesize / preset_step; in nand_check_ecc_caps()
5989 req_corr = mtd->writesize / req_step * req_strength; in nand_match_ecc_req()
6006 if (mtd->writesize % step_size) in nand_match_ecc_req()
6009 nsteps = mtd->writesize / step_size; in nand_match_ecc_req()
6075 if (mtd->writesize % step_size) in nand_maximize_ecc()
6078 nsteps = mtd->writesize / step_size; in nand_maximize_ecc()
6217 chip->data_buf = kmalloc(mtd->writesize + mtd->oobsize, GFP_KERNEL); in nand_scan_tail()
6234 chip->oob_poi = chip->data_buf + mtd->writesize; in nand_scan_tail()
6286 if (mtd->writesize >= ecc->size) { in nand_scan_tail()
6295 ecc->size, mtd->writesize); in nand_scan_tail()
6326 ecc->size = mtd->writesize; in nand_scan_tail()
6361 ecc->steps = mtd->writesize / ecc->size; in nand_scan_tail()
6362 if (ecc->steps * ecc->size != mtd->writesize) { in nand_scan_tail()
6409 chip->subpagesize = mtd->writesize >> mtd->subpage_sft; in nand_scan_tail()