Lines Matching refs:writesize

252 	u16 num_chunks = mtd->writesize / 512;  in copy_spare()
299 if (mtd->writesize > 512) in mxc_do_addr_cycle()
311 if (mtd->writesize > 512) { in mxc_do_addr_cycle()
588 if (mtd->writesize > 512) in send_page_v1()
724 if (mtd->writesize > 512) in mxc_nand_read_page_v1()
727 no_subpages = mtd->writesize >> 9; in mxc_nand_read_page_v1()
761 memcpy32_fromio(buf, host->main_area0, mtd->writesize); in mxc_nand_read_page_v1()
783 if (mtd->writesize > 512) in mxc_nand_read_page_v2_v3()
790 memcpy32_fromio(buf, host->main_area0, mtd->writesize); in mxc_nand_read_page_v2_v3()
797 no_subpages = mtd->writesize >> 9; in mxc_nand_read_page_v2_v3()
863 memcpy32_toio(host->main_area0, buf, mtd->writesize); in mxc_nand_write_page()
890 memset(host->data_buf, 0xff, mtd->writesize); in mxc_nand_write_oob()
927 int n = mtd->oobsize + mtd->writesize - col; in mxc_nand_write_buf()
946 int n = mtd->oobsize + mtd->writesize - col; in mxc_nand_read_buf()
1025 if (mtd->writesize <= 512) { in mxc_v1_ooblayout_free()
1074 if (mtd->writesize <= 512) { in mxc_v2_ooblayout_free()
1103 oobbytes_per_512 = mtd->oobsize * 512 / mtd->writesize; in get_eccsize()
1118 mtd->writesize) in preset_v1()
1225 if (mtd->writesize) { in preset_v2()
1226 uint16_t pages_per_block = mtd->erasesize / mtd->writesize; in preset_v2()
1292 if (mtd->writesize == 2048) { in preset_v3()
1295 } else if (mtd->writesize == 4096) { in preset_v3()
1303 if (mtd->writesize) { in preset_v3()
1308 ffs(mtd->erasesize / mtd->writesize) - 6, in preset_v3()
1405 memcpy32_toio(host->main_area0, host->data_buf, mtd->writesize); in mxc_nand_set_features()
1646 host->data_buf = devm_kzalloc(dev, mtd->writesize + mtd->oobsize, in mxcnd_attach_chip()