Lines Matching refs:writesize
95 return mtdtest_write(mtd, offset, mtd->writesize, wbuffer); in write_page()
108 ops.len = mtd->writesize; in rewrite_page()
117 if (err || ops.retlen != mtd->writesize) { in rewrite_page()
140 err = mtd_read(mtd, offset, mtd->writesize, &read, rbuffer); in read_page()
144 if (err < 0 || read != mtd->writesize) { in read_page()
161 for (i = 0; i < mtd->writesize; i++) { in verify_page()
184 while (byte < mtd->writesize) { in insert_biterror()
208 for (i = 0; i < mtd->writesize; i++) in incremental_errors_test()
271 for (i = 0; i < mtd->writesize; i++) in overwrite_test()
351 mtd->writesize, mtd->oobsize); in mtd_nandbiterrs_init()
353 subsize = mtd->writesize >> mtd->subpage_sft; in mtd_nandbiterrs_init()
354 subcount = mtd->writesize / subsize; in mtd_nandbiterrs_init()
358 offset = (loff_t)page_offset * mtd->writesize; in mtd_nandbiterrs_init()
364 wbuffer = kmalloc(mtd->writesize, GFP_KERNEL); in mtd_nandbiterrs_init()
370 rbuffer = kmalloc(mtd->writesize, GFP_KERNEL); in mtd_nandbiterrs_init()