Lines Matching refs:blocksize
66 int blocksize = (1 << this->erase_shift); in onenand_block_read() local
74 ops.ooblen = blocksize; in onenand_block_read()
76 ops.len = blocksize; in onenand_block_read()
83 ofs += blocksize; in onenand_block_read()
96 ofs += blocksize; in onenand_block_read()
99 ofs += blocksize; in onenand_block_read()
100 buf += blocksize; in onenand_block_read()
137 int blocksize = (1 << this->erase_shift); in onenand_block_write() local
162 skip_ofs += blocksize; in onenand_block_write()
167 ret = mtd_write(mtd, ofs, blocksize, &_retlen, buf); in onenand_block_write()
172 skip_ofs += blocksize; in onenand_block_write()
176 buf += blocksize; in onenand_block_write()
180 ofs += blocksize; in onenand_block_write()
194 int blocksize = 1 << this->erase_shift; in onenand_block_erase() local
196 for (ofs = start; ofs < (start + size); ofs += blocksize) { in onenand_block_erase()
205 instr.len = blocksize; in onenand_block_erase()
229 int blocksize = 1 << this->erase_shift; in onenand_block_test() local
236 buf = malloc(blocksize); in onenand_block_test()
242 verify_buf = malloc(blocksize); in onenand_block_test()
271 instr.len = blocksize; in onenand_block_test()
278 ret = mtd_write(mtd, ofs, blocksize, &retlen, buf); in onenand_block_test()
284 ret = mtd_read(mtd, ofs, blocksize, &retlen, verify_buf); in onenand_block_test()
290 if (memcmp(buf, verify_buf, blocksize)) in onenand_block_test()
294 ofs += blocksize; in onenand_block_test()