Lines Matching refs:retlen
315 size_t retlen; in jffs2_block_check_erase() local
319 ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen, in jffs2_block_check_erase()
326 if (retlen < c->sector_size) { in jffs2_block_check_erase()
329 retlen); in jffs2_block_check_erase()
330 mtd_unpoint(c->mtd, jeb->offset, retlen); in jffs2_block_check_erase()
334 retlen /= sizeof(*wordebuf); in jffs2_block_check_erase()
338 } while(--retlen); in jffs2_block_check_erase()
340 if (retlen) { in jffs2_block_check_erase()
344 c->sector_size-retlen * sizeof(*wordebuf)); in jffs2_block_check_erase()
365 ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); in jffs2_block_check_erase()
372 if (retlen != readlen) { in jffs2_block_check_erase()
374 ofs, readlen, retlen); in jffs2_block_check_erase()
400 size_t retlen; in jffs2_mark_erased_block() local
435 ret = jffs2_flash_direct_writev(c, vecs, 1, jeb->offset, &retlen); in jffs2_mark_erased_block()
437 if (ret || retlen != sizeof(marker)) { in jffs2_mark_erased_block()
443 jeb->offset, sizeof(marker), retlen); in jffs2_mark_erased_block()