Searched refs:ebnum (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/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() 202 int err = 0, i, ebnum, ebnum2; in erasecrosstest() local 208 ebnum = 0; in erasecrosstest() 212 ebnum += 1; in erasecrosstest() 219 pr_info("erasing block %d\n", ebnum); in erasecrosstest() 220 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() 68 err, ebnum, blocks); in multiblock_erase() 75 static int write_eraseblock(int ebnum) in write_eraseblock() argument 77 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 82 static int write_eraseblock_by_page(int ebnum) in write_eraseblock_by_page() argument 85 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_page() 99 static int write_eraseblock_by_2pages(int ebnum) in write_eraseblock_by_2pages() argument 103 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_2pages() 119 static int read_eraseblock(int ebnum) in read_eraseblock() argument [all …]
|
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() 29 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad() argument 32 loff_t addr = (loff_t)ebnum * mtd->erasesize; in is_block_bad() 36 pr_info("block %d is bad\n", ebnum); in is_block_bad()
|
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 | 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 | 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() 273 static int verify_eraseblock_in_one_go(int ebnum) in verify_eraseblock_in_one_go() argument 277 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock_in_one_go()
|
D | mtd_test.h | 16 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum);
|