Lines Matching refs:retlen
317 size_t retlen; in jffs2_block_check_erase() local
321 ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen, in jffs2_block_check_erase()
328 if (retlen < c->sector_size) { in jffs2_block_check_erase()
331 retlen); in jffs2_block_check_erase()
332 mtd_unpoint(c->mtd, jeb->offset, retlen); in jffs2_block_check_erase()
336 retlen /= sizeof(*wordebuf); in jffs2_block_check_erase()
340 } while(--retlen); in jffs2_block_check_erase()
342 if (retlen) { in jffs2_block_check_erase()
346 c->sector_size-retlen * sizeof(*wordebuf)); in jffs2_block_check_erase()
367 ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); in jffs2_block_check_erase()
374 if (retlen != readlen) { in jffs2_block_check_erase()
376 ofs, readlen, retlen); in jffs2_block_check_erase()
402 size_t retlen; in jffs2_mark_erased_block() local
437 ret = jffs2_flash_direct_writev(c, vecs, 1, jeb->offset, &retlen); in jffs2_mark_erased_block()
439 if (ret || retlen != sizeof(marker)) { in jffs2_mark_erased_block()
445 jeb->offset, sizeof(marker), retlen); in jffs2_mark_erased_block()