Searched refs:ebnum (Results 1 – 8 of 8) sorted by relevance
/drivers/mtd/tests/ |
D | pagetest.c | 53 static int write_eraseblock(int ebnum) in write_eraseblock() argument 55 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 62 static int verify_eraseblock(int ebnum) in verify_eraseblock() argument 67 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock() 97 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { in verify_eraseblock() 203 int err = 0, i, ebnum, ebnum2; in erasecrosstest() local 209 ebnum = 0; in erasecrosstest() 213 ebnum += 1; in erasecrosstest() 220 pr_info("erasing block %d\n", ebnum); in erasecrosstest() 221 err = mtdtest_erase_eraseblock(mtd, ebnum); in erasecrosstest() [all …]
|
D | speedtest.c | 55 static int multiblock_erase(int ebnum, int blocks) in multiblock_erase() argument 59 loff_t addr = (loff_t)ebnum * mtd->erasesize; in multiblock_erase() 69 err, ebnum, blocks); in multiblock_erase() 75 "blocks %d\n", ebnum, blocks); in multiblock_erase() 82 static int write_eraseblock(int ebnum) in write_eraseblock() argument 84 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 89 static int write_eraseblock_by_page(int ebnum) in write_eraseblock_by_page() argument 92 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_page() 106 static int write_eraseblock_by_2pages(int ebnum) in write_eraseblock_by_2pages() argument 110 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_2pages() [all …]
|
D | mtd_test.c | 9 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock() argument 13 loff_t addr = (loff_t)ebnum * mtd->erasesize; in mtdtest_erase_eraseblock() 22 pr_info("error %d while erasing EB %d\n", err, ebnum); in mtdtest_erase_eraseblock() 27 pr_info("some erase error occurred at EB %d\n", ebnum); in mtdtest_erase_eraseblock() 33 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad() argument 36 loff_t addr = (loff_t)ebnum * mtd->erasesize; in is_block_bad() 40 pr_info("block %d is bad\n", ebnum); in is_block_bad()
|
D | torturetest.c | 101 static inline int check_eraseblock(int ebnum, unsigned char *buf) in check_eraseblock() argument 105 loff_t addr = (loff_t)ebnum * mtd->erasesize; in check_eraseblock() 109 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock() 117 "MTD reported that it was fixed.\n", ebnum); in check_eraseblock() 120 "read %zd\n", err, ebnum, read); in check_eraseblock() 127 len, ebnum, read); in check_eraseblock() 132 pr_err("read wrong data from EB %d\n", ebnum); in check_eraseblock() 139 ebnum); in check_eraseblock() 155 static inline int write_pattern(int ebnum, void *buf) in write_pattern() argument 159 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_pattern() [all …]
|
D | subpagetest.c | 56 static int write_eraseblock(int ebnum) in write_eraseblock() argument 60 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 91 static int write_eraseblock2(int ebnum) in write_eraseblock2() argument 95 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock2() 98 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in write_eraseblock2() 130 static int verify_eraseblock(int ebnum) in verify_eraseblock() argument 134 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock() 191 static int verify_eraseblock2(int ebnum) in verify_eraseblock2() argument 195 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock2() 198 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in verify_eraseblock2() [all …]
|
D | readtest.c | 47 static int read_eraseblock_by_page(int ebnum) in read_eraseblock_by_page() argument 50 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock_by_page() 91 static void dump_eraseblock(int ebnum) in dump_eraseblock() argument 97 pr_info("dumping eraseblock %d\n", ebnum); in dump_eraseblock() 110 pr_info("dumping oob from eraseblock %d\n", ebnum); in dump_eraseblock()
|
D | oobtest.c | 68 static int write_eraseblock(int ebnum) in write_eraseblock() argument 73 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 177 static int verify_eraseblock(int ebnum) in verify_eraseblock() argument 182 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock() 267 static int verify_eraseblock_in_one_go(int ebnum) in verify_eraseblock_in_one_go() argument 271 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock_in_one_go()
|
D | mtd_test.h | 15 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum);
|