Lines Matching defs:bad_offset
30 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset);
38 uint32_t bad_offset;
45 bad_offset = jeb->offset;
81 bad_offset = instr->fail_addr;
104 jffs2_erase_failed(c, jeb, bad_offset);
179 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset)
183 if (jffs2_cleanmarker_oob(c) && (bad_offset != (uint32_t)MTD_FAIL_ADDR_UNKNOWN)) {
186 if (!jffs2_write_nand_badblock(c, jeb, bad_offset)) {
333 static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t *bad_offset)
382 *bad_offset = ofs;
399 *bad_offset += i;
400 printk(KERN_WARNING "Newly-erased block contained word 0x%lx at offset 0x%08x\n", *datum, *bad_offset);
418 uint32_t uninitialized_var(bad_offset);
420 switch (jffs2_block_check_erase(c, jeb, &bad_offset)) {
427 bad_offset = jeb->offset;
490 jffs2_erase_failed(c, jeb, bad_offset);