Lines Matching +full:256 +full:k
81 int err = 0, k; in write_eraseblock2() local
84 for (k = 1; k < 33; ++k) { in write_eraseblock2()
85 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in write_eraseblock2()
87 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in write_eraseblock2()
88 err = mtd_write(mtd, addr, subpgsize * k, &written, writebuf); in write_eraseblock2()
89 if (unlikely(err || written != subpgsize * k)) { in write_eraseblock2()
92 if (written != subpgsize * k) { in write_eraseblock2()
94 subpgsize * k); in write_eraseblock2()
100 addr += subpgsize * k; in write_eraseblock2()
181 int err = 0, k; in verify_eraseblock2() local
184 for (k = 1; k < 33; ++k) { in verify_eraseblock2()
185 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in verify_eraseblock2()
187 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in verify_eraseblock2()
188 clear_data(readbuf, subpgsize * k); in verify_eraseblock2()
189 err = mtd_read(mtd, addr, subpgsize * k, &read, readbuf); in verify_eraseblock2()
190 if (unlikely(err || read != subpgsize * k)) { in verify_eraseblock2()
191 if (mtd_is_bitflip(err) && read == subpgsize * k) { in verify_eraseblock2()
201 if (unlikely(memcmp(readbuf, writebuf, subpgsize * k))) { in verify_eraseblock2()
206 addr += subpgsize * k; in verify_eraseblock2()
257 if (i % 256 == 0) in verify_all_eraseblocks_ff()
337 if (i % 256 == 0) in mtd_subpagetest_init()
354 if (i % 256 == 0) in mtd_subpagetest_init()
380 if (i % 256 == 0) in mtd_subpagetest_init()
398 if (i % 256 == 0) in mtd_subpagetest_init()