Searched refs:ebnum (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/mtd/tests/ |
H A D | pagetest.c | 41 static int write_eraseblock(int ebnum) in write_eraseblock() argument 43 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 50 static int verify_eraseblock(int ebnum) in verify_eraseblock() argument 55 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock() 85 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { in verify_eraseblock() 190 int err = 0, i, ebnum, ebnum2; in erasecrosstest() local 196 ebnum = 0; in erasecrosstest() 200 ebnum += 1; in erasecrosstest() 207 pr_info("erasing block %d\n", ebnum); in erasecrosstest() 208 err = mtdtest_erase_eraseblock(mtd, ebnum); in erasecrosstest() [all …]
|
H A D | speedtest.c | 43 static int multiblock_erase(int ebnum, int blocks) in multiblock_erase() argument 47 loff_t addr = (loff_t)ebnum * mtd->erasesize; in multiblock_erase() 56 err, ebnum, blocks); in multiblock_erase() 63 static int write_eraseblock(int ebnum) in write_eraseblock() argument 65 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 70 static int write_eraseblock_by_page(int ebnum) in write_eraseblock_by_page() argument 73 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_page() 87 static int write_eraseblock_by_2pages(int ebnum) in write_eraseblock_by_2pages() argument 91 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_2pages() 107 static int read_eraseblock(int ebnum) in read_eraseblock() argument [all …]
|
H A D | mtd_test.c | 10 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock() argument 14 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() 30 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad() argument 33 loff_t addr = (loff_t)ebnum * mtd->erasesize; in is_block_bad() 37 pr_info("block %d is bad\n", ebnum); in is_block_bad()
|
H A D | subpagetest.c | 43 static int write_eraseblock(int ebnum) in write_eraseblock() argument 47 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 78 static int write_eraseblock2(int ebnum) in write_eraseblock2() argument 82 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock2() 85 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in write_eraseblock2() 117 static int verify_eraseblock(int ebnum) in verify_eraseblock() argument 121 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock() 178 static int verify_eraseblock2(int ebnum) in verify_eraseblock2() argument 182 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock2() 185 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in verify_eraseblock2() [all …]
|
H A D | torturetest.c | 89 static inline int check_eraseblock(int ebnum, unsigned char *buf) in check_eraseblock() argument 93 loff_t addr = (loff_t)ebnum * mtd->erasesize; in check_eraseblock() 97 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock() 105 "MTD reported that it was fixed.\n", ebnum); in check_eraseblock() 108 "read %zd\n", err, ebnum, read); in check_eraseblock() 115 len, ebnum, read); in check_eraseblock() 120 pr_err("read wrong data from EB %d\n", ebnum); in check_eraseblock() 127 ebnum); in check_eraseblock() 143 static inline int write_pattern(int ebnum, void *buf) in write_pattern() argument 147 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_pattern() [all …]
|
H A D | readtest.c | 35 static int read_eraseblock_by_page(int ebnum) in read_eraseblock_by_page() argument 38 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock_by_page() 79 static void dump_eraseblock(int ebnum) in dump_eraseblock() argument 85 pr_info("dumping eraseblock %d\n", ebnum); in dump_eraseblock() 98 pr_info("dumping oob from eraseblock %d\n", ebnum); in dump_eraseblock()
|
H A D | oobtest.c | 56 static int write_eraseblock(int ebnum) in write_eraseblock() argument 61 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 165 static int verify_eraseblock(int ebnum) in verify_eraseblock() argument 170 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock() 261 static int verify_eraseblock_in_one_go(int ebnum) in verify_eraseblock_in_one_go() argument 265 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock_in_one_go()
|
H A D | mtd_test.h | 16 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum);
|