Lines Matching refs:bad

106  *   that this eraseblock may become bad soon (but do not have to);
217 * bad.
305 * %-EIO is returned, the physical eraseblock most probably went bad.
355 * torture_peb - test a supposedly bad physical eraseblock.
412 ubi_msg(ubi, "PEB %d passed torture test, do not mark it as bad", pnum);
422 ubi_err(ubi, "read problems on freshly erased PEB %d, must be bad",
521 * eraseblock is bad.
558 * ubi_io_is_bad - check if a physical eraseblock is bad.
562 * This function returns a positive number if the physical eraseblock is bad,
576 ubi_err(ubi, "error %d while checking if PEB %d is bad",
579 dbg_io("PEB %d is bad", pnum);
587 * ubi_io_mark_bad - mark a physical eraseblock as bad.
611 ubi_err(ubi, "cannot mark PEB %d bad, error %d", pnum, err);
636 goto bad;
640 ubi_err(ubi, "bad VID header offset %d, expected %d",
642 goto bad;
646 ubi_err(ubi, "bad data offset %d, expected %d",
648 goto bad;
652 ubi_err(ubi, "bad erase counter %lld", ec);
653 goto bad;
658 bad:
659 ubi_err(ubi, "bad EC header");
680 * this eraseblock may become bad soon (but may be not);
740 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x",
744 dbg_bld("bad magic number at PEB %d: %08x instead of %08x",
754 ubi_warn(ubi, "bad EC header CRC at PEB %d, calculated %#08x, read %#08x",
758 dbg_bld("bad EC header CRC at PEB %d, calculated %#08x, read %#08x",
794 * went bad.
847 ubi_err(ubi, "bad copy_flag");
848 goto bad;
854 goto bad;
858 ubi_err(ubi, "bad vol_id");
859 goto bad;
863 ubi_err(ubi, "bad compat");
864 goto bad;
870 ubi_err(ubi, "bad compat");
871 goto bad;
875 ubi_err(ubi, "bad vol_type");
876 goto bad;
880 ubi_err(ubi, "bad data_pad");
881 goto bad;
885 ubi_err(ubi, "bad data_size");
886 goto bad;
898 goto bad;
902 goto bad;
906 ubi_err(ubi, "bad data_size");
907 goto bad;
911 ubi_err(ubi, "bad data_size at last LEB");
912 goto bad;
916 goto bad;
922 goto bad;
926 goto bad;
931 goto bad;
935 ubi_err(ubi, "bad used_ebs");
936 goto bad;
942 bad:
943 ubi_err(ubi, "bad VID header");
998 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x",
1002 dbg_bld("bad magic number at PEB %d: %08x instead of %08x",
1012 ubi_warn(ubi, "bad CRC at PEB %d, calculated %#08x, read %#08x",
1016 dbg_bld("bad CRC at PEB %d, calculated %#08x, read %#08x",
1046 * bad.
1081 * self_check_not_bad - ensure that a physical eraseblock is not bad.
1086 * it is bad and a negative error code if an error occurred.
1124 ubi_err(ubi, "bad magic %#08x, must be %#08x",
1171 ubi_err(ubi, "bad CRC, calculated %#08x, read %#08x",
1207 ubi_err(ubi, "bad VID header magic %#08x at PEB %d, must be %#08x",
1261 ubi_err(ubi, "bad VID header CRC at PEB %d, calculated %#08x, read %#08x",