Lines Matching refs:retlen

234 	size_t retlen;  in jffs2_verify_write()  local
237 ret = mtd_read(c->mtd, ofs, c->wbuf_pagesize, &retlen, c->wbuf_verify); in jffs2_verify_write()
242 } else if (retlen != c->wbuf_pagesize) { in jffs2_verify_write()
244 __func__, ofs, retlen, c->wbuf_pagesize); in jffs2_verify_write()
279 size_t retlen; in jffs2_wbuf_recover() local
348 ret = mtd_read(c->mtd, start, c->wbuf_ofs - start, &retlen, in jffs2_wbuf_recover()
353 (retlen == c->wbuf_ofs - start)) in jffs2_wbuf_recover()
356 if (ret || retlen != c->wbuf_ofs - start) { in jffs2_wbuf_recover()
425 mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf); in jffs2_wbuf_recover()
429 ret = mtd_write(c->mtd, ofs, towrite, &retlen, in jffs2_wbuf_recover()
432 if (ret || retlen != towrite || jffs2_verify_write(c, rewrite_buf, ofs)) { in jffs2_wbuf_recover()
437 if (retlen) in jffs2_wbuf_recover()
584 size_t retlen; in __jffs2_flush_wbuf() local
632 mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, &retlen, in __jffs2_flush_wbuf()
639 &retlen, c->wbuf); in __jffs2_flush_wbuf()
644 } else if (retlen != c->wbuf_pagesize) { in __jffs2_flush_wbuf()
646 retlen, c->wbuf_pagesize); in __jffs2_flush_wbuf()
795 unsigned long count, loff_t to, size_t *retlen, in jffs2_flash_writev() argument
805 return jffs2_flash_direct_writev(c, invecs, count, to, retlen); in jffs2_flash_writev()
903 *retlen = donelen; in jffs2_flash_writev()
932 *retlen = 0; in jffs2_flash_writev()
942 size_t *retlen, const u_char *buf) in jffs2_flash_write() argument
947 return jffs2_flash_direct_write(c, ofs, len, retlen, buf); in jffs2_flash_write()
951 return jffs2_flash_writev(c, vecs, 1, ofs, retlen, 0); in jffs2_flash_write()
957 int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf) in jffs2_flash_read() argument
963 return mtd_read(c->mtd, ofs, len, retlen, buf); in jffs2_flash_read()
967 ret = mtd_read(c->mtd, ofs, len, retlen, buf); in jffs2_flash_read()
969 if ( (ret == -EBADMSG || ret == -EUCLEAN) && (*retlen == len) ) { in jffs2_flash_read()
1043 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_oob_empty()
1085 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_nand_cleanmarker()
1110 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_write_nand_cleanmarker()