Lines Matching refs:wbuf_ofs

240 			__func__, c->wbuf_ofs, ret);  in jffs2_verify_write()
258 eccstr, c->wbuf_ofs); in jffs2_verify_write()
285 jeb = &c->blocks[c->wbuf_ofs / c->sector_size]; in jffs2_wbuf_recover()
288 if (c->wbuf_ofs % c->mtd->erasesize) in jffs2_wbuf_recover()
302 (next && ref_offset(next) <= c->wbuf_ofs)) { in jffs2_wbuf_recover()
306 c->wbuf_ofs); in jffs2_wbuf_recover()
336 if (start < c->wbuf_ofs) { in jffs2_wbuf_recover()
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()
382 memcpy(buf + (c->wbuf_ofs - start), c->wbuf, end - c->wbuf_ofs); in jffs2_wbuf_recover()
445 c->wbuf_ofs = ofs + towrite; in jffs2_wbuf_recover()
453 memmove(c->wbuf, c->wbuf + (start - c->wbuf_ofs), end - start); in jffs2_wbuf_recover()
455 c->wbuf_ofs = ofs; in jffs2_wbuf_recover()
567 c->wbuf_ofs, c->wbuf_len); in jffs2_wbuf_recover()
599 wbuf_jeb = &c->blocks[c->wbuf_ofs / c->sector_size]; in __jffs2_flush_wbuf()
630 pr_notice("Faking write error at 0x%08x\n", c->wbuf_ofs); in __jffs2_flush_wbuf()
632 mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, &retlen, in __jffs2_flush_wbuf()
638 ret = mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, in __jffs2_flush_wbuf()
649 } else if ((ret = jffs2_verify_write(c, c->wbuf, c->wbuf_ofs))) { in __jffs2_flush_wbuf()
669 c->wbuf_ofs, c->wbuf_len, waste); in __jffs2_flush_wbuf()
677 jffs2_link_node_ref(c, wbuf_jeb, (c->wbuf_ofs + c->wbuf_len) | REF_OBSOLETE, waste, NULL); in __jffs2_flush_wbuf()
693 c->wbuf_ofs += c->wbuf_pagesize; in __jffs2_flush_wbuf()
720 old_wbuf_ofs = c->wbuf_ofs; in jffs2_flush_wbuf_gc()
735 old_wbuf_ofs == c->wbuf_ofs) { in jffs2_flush_wbuf_gc()
810 if (c->wbuf_ofs == 0xFFFFFFFF) { in jffs2_flash_writev()
811 c->wbuf_ofs = PAGE_DIV(to); in jffs2_flash_writev()
823 if (SECTOR_ADDR(to) != SECTOR_ADDR(c->wbuf_ofs)) { in jffs2_flash_writev()
827 __func__, (unsigned long)to, c->wbuf_ofs); in jffs2_flash_writev()
833 c->wbuf_ofs = PAGE_DIV(to); in jffs2_flash_writev()
837 if (to != PAD(c->wbuf_ofs + c->wbuf_len)) { in jffs2_flash_writev()
843 c->wbuf_ofs, c->wbuf_ofs + c->wbuf_len); in jffs2_flash_writev()
883 c->wbuf_ofs = outvec_to; in jffs2_flash_writev()
991 if (SECTOR_ADDR(ofs) != SECTOR_ADDR(c->wbuf_ofs)) in jffs2_flash_read()
994 if (ofs >= c->wbuf_ofs) { in jffs2_flash_read()
995 owbf = (ofs - c->wbuf_ofs); /* offset in write buffer */ in jffs2_flash_read()
1002 orbf = (c->wbuf_ofs - ofs); /* offset in read buffer */ in jffs2_flash_read()
1205 c->wbuf_ofs = 0xFFFFFFFF; in jffs2_nand_flash_setup()
1267 c->wbuf_ofs = 0xFFFFFFFF; in jffs2_dataflash_setup()
1303 c->wbuf_ofs = 0xFFFFFFFF; in jffs2_nor_wbuf_flash_setup()
1337 c->wbuf_ofs = 0xFFFFFFFF; in jffs2_ubivol_setup()