Lines Matching refs:writesize
254 u16 num_chunks = mtd->writesize / 512; in copy_spare()
361 no_subpages = mtd->writesize >> 9; in get_ecc_status_v1()
396 no_subpages = mtd->writesize >> 9; in get_ecc_status_v2_v3()
595 if (mtd->writesize > 512) in send_page_v1()
715 if (mtd->writesize) in mxc_nand_read_page_v1()
716 no_subpages = mtd->writesize >> 9; in mxc_nand_read_page_v1()
758 ret = nand_read_page_op(chip, page, 0, buf, mtd->writesize); in mxc_nand_read_page()
777 ret = nand_read_page_op(chip, page, 0, buf, mtd->writesize); in mxc_nand_read_page_raw()
793 ret = nand_read_page_op(chip, page, 0, host->data_buf, mtd->writesize); in mxc_nand_read_oob()
813 ret = nand_prog_page_op(chip, page, 0, buf, mtd->writesize); in mxc_nand_write_page_ecc()
827 return nand_prog_page_op(chip, page, 0, buf, mtd->writesize); in mxc_nand_write_page_raw()
835 memset(host->data_buf, 0xff, mtd->writesize); in mxc_nand_write_oob()
838 return nand_prog_page_op(chip, page, 0, host->data_buf, mtd->writesize); in mxc_nand_write_oob()
911 if (mtd->writesize <= 512) { in mxc_v1_ooblayout_free()
960 if (mtd->writesize <= 512) { in mxc_v2_ooblayout_free()
989 oobbytes_per_512 = mtd->oobsize * 512 / mtd->writesize; in get_eccsize()
1004 mtd->writesize) in preset_v1()
1111 if (mtd->writesize) { in preset_v2()
1112 uint16_t pages_per_block = mtd->erasesize / mtd->writesize; in preset_v2()
1178 if (mtd->writesize == 2048) { in preset_v3()
1181 } else if (mtd->writesize == 4096) { in preset_v3()
1189 if (mtd->writesize) { in preset_v3()
1194 ffs(mtd->erasesize / mtd->writesize) - 6, in preset_v3()
1433 host->data_buf = devm_kzalloc(dev, mtd->writesize + mtd->oobsize, in mxcnd_attach_chip()
1488 unsigned int no_subpages = mtd->writesize / 512; in copy_page_to_sram()
1538 unsigned int no_subpages = mtd->writesize / 512; in copy_page_from_sram()
1637 memcpy32_fromio(host->data_buf, host->main_area0, mtd->writesize); in mxcnd_do_exec_op()