ebnum 10 drivers/mtd/tests/mtd_test.c int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) ebnum 14 drivers/mtd/tests/mtd_test.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 22 drivers/mtd/tests/mtd_test.c pr_info("error %d while erasing EB %d\n", err, ebnum); ebnum 29 drivers/mtd/tests/mtd_test.c static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) ebnum 32 drivers/mtd/tests/mtd_test.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 36 drivers/mtd/tests/mtd_test.c pr_info("block %d is bad\n", ebnum); ebnum 16 drivers/mtd/tests/mtd_test.h int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum); ebnum 56 drivers/mtd/tests/oobtest.c static int write_eraseblock(int ebnum) ebnum 61 drivers/mtd/tests/oobtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 165 drivers/mtd/tests/oobtest.c static int verify_eraseblock(int ebnum) ebnum 170 drivers/mtd/tests/oobtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 261 drivers/mtd/tests/oobtest.c static int verify_eraseblock_in_one_go(int ebnum) ebnum 265 drivers/mtd/tests/oobtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 41 drivers/mtd/tests/pagetest.c static int write_eraseblock(int ebnum) ebnum 43 drivers/mtd/tests/pagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 50 drivers/mtd/tests/pagetest.c static int verify_eraseblock(int ebnum) ebnum 55 drivers/mtd/tests/pagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 85 drivers/mtd/tests/pagetest.c if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { ebnum 190 drivers/mtd/tests/pagetest.c int err = 0, i, ebnum, ebnum2; ebnum 196 drivers/mtd/tests/pagetest.c ebnum = 0; ebnum 200 drivers/mtd/tests/pagetest.c ebnum += 1; ebnum 207 drivers/mtd/tests/pagetest.c pr_info("erasing block %d\n", ebnum); ebnum 208 drivers/mtd/tests/pagetest.c err = mtdtest_erase_eraseblock(mtd, ebnum); ebnum 212 drivers/mtd/tests/pagetest.c pr_info("writing 1st page of block %d\n", ebnum); ebnum 219 drivers/mtd/tests/pagetest.c pr_info("reading 1st page of block %d\n", ebnum); ebnum 225 drivers/mtd/tests/pagetest.c pr_info("verifying 1st page of block %d\n", ebnum); ebnum 232 drivers/mtd/tests/pagetest.c pr_info("erasing block %d\n", ebnum); ebnum 233 drivers/mtd/tests/pagetest.c err = mtdtest_erase_eraseblock(mtd, ebnum); ebnum 237 drivers/mtd/tests/pagetest.c pr_info("writing 1st page of block %d\n", ebnum); ebnum 249 drivers/mtd/tests/pagetest.c pr_info("reading 1st page of block %d\n", ebnum); ebnum 255 drivers/mtd/tests/pagetest.c pr_info("verifying 1st page of block %d\n", ebnum); ebnum 269 drivers/mtd/tests/pagetest.c int err = 0, i, ebnum, ok = 1; ebnum 274 drivers/mtd/tests/pagetest.c ebnum = 0; ebnum 278 drivers/mtd/tests/pagetest.c ebnum += 1; ebnum 281 drivers/mtd/tests/pagetest.c pr_info("erasing block %d\n", ebnum); ebnum 282 drivers/mtd/tests/pagetest.c err = mtdtest_erase_eraseblock(mtd, ebnum); ebnum 286 drivers/mtd/tests/pagetest.c pr_info("writing 1st page of block %d\n", ebnum); ebnum 292 drivers/mtd/tests/pagetest.c pr_info("erasing block %d\n", ebnum); ebnum 293 drivers/mtd/tests/pagetest.c err = mtdtest_erase_eraseblock(mtd, ebnum); ebnum 297 drivers/mtd/tests/pagetest.c pr_info("reading 1st page of block %d\n", ebnum); ebnum 303 drivers/mtd/tests/pagetest.c ebnum); ebnum 35 drivers/mtd/tests/readtest.c static int read_eraseblock_by_page(int ebnum) ebnum 38 drivers/mtd/tests/readtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 79 drivers/mtd/tests/readtest.c static void dump_eraseblock(int ebnum) ebnum 85 drivers/mtd/tests/readtest.c pr_info("dumping eraseblock %d\n", ebnum); ebnum 98 drivers/mtd/tests/readtest.c pr_info("dumping oob from eraseblock %d\n", ebnum); ebnum 43 drivers/mtd/tests/speedtest.c static int multiblock_erase(int ebnum, int blocks) ebnum 47 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 56 drivers/mtd/tests/speedtest.c err, ebnum, blocks); ebnum 63 drivers/mtd/tests/speedtest.c static int write_eraseblock(int ebnum) ebnum 65 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 70 drivers/mtd/tests/speedtest.c static int write_eraseblock_by_page(int ebnum) ebnum 73 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 87 drivers/mtd/tests/speedtest.c static int write_eraseblock_by_2pages(int ebnum) ebnum 91 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 107 drivers/mtd/tests/speedtest.c static int read_eraseblock(int ebnum) ebnum 109 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 114 drivers/mtd/tests/speedtest.c static int read_eraseblock_by_page(int ebnum) ebnum 117 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 131 drivers/mtd/tests/speedtest.c static int read_eraseblock_by_2pages(int ebnum) ebnum 135 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 43 drivers/mtd/tests/subpagetest.c static int write_eraseblock(int ebnum) ebnum 47 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 78 drivers/mtd/tests/subpagetest.c static int write_eraseblock2(int ebnum) ebnum 82 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 85 drivers/mtd/tests/subpagetest.c if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) ebnum 117 drivers/mtd/tests/subpagetest.c static int verify_eraseblock(int ebnum) ebnum 121 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 178 drivers/mtd/tests/subpagetest.c static int verify_eraseblock2(int ebnum) ebnum 182 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 185 drivers/mtd/tests/subpagetest.c if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) ebnum 212 drivers/mtd/tests/subpagetest.c static int verify_eraseblock_ff(int ebnum) ebnum 217 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 89 drivers/mtd/tests/torturetest.c static inline int check_eraseblock(int ebnum, unsigned char *buf) ebnum 93 drivers/mtd/tests/torturetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 97 drivers/mtd/tests/torturetest.c addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; ebnum 105 drivers/mtd/tests/torturetest.c "MTD reported that it was fixed.\n", ebnum); ebnum 108 drivers/mtd/tests/torturetest.c "read %zd\n", err, ebnum, read); ebnum 115 drivers/mtd/tests/torturetest.c len, ebnum, read); ebnum 120 drivers/mtd/tests/torturetest.c pr_err("read wrong data from EB %d\n", ebnum); ebnum 127 drivers/mtd/tests/torturetest.c ebnum); ebnum 143 drivers/mtd/tests/torturetest.c static inline int write_pattern(int ebnum, void *buf) ebnum 147 drivers/mtd/tests/torturetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; ebnum 151 drivers/mtd/tests/torturetest.c addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; ebnum 157 drivers/mtd/tests/torturetest.c " bytes\n", err, ebnum, written);