Searched refs:ebnum (Results 1 - 8 of 8) sorted by relevance

/drivers/mtd/tests/
H A Dmtd_test.c9 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) argument
13 loff_t addr = (loff_t)ebnum * mtd->erasesize;
22 pr_info("error %d while erasing EB %d\n", err, ebnum);
27 pr_info("some erase error occurred at EB %d\n", ebnum);
33 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) argument
36 loff_t addr = (loff_t)ebnum * mtd->erasesize;
40 pr_info("block %d is bad\n", ebnum);
H A Dpagetest.c53 static int write_eraseblock(int ebnum) argument
55 loff_t addr = (loff_t)ebnum * mtd->erasesize;
62 static int verify_eraseblock(int ebnum) argument
67 loff_t addr = (loff_t)ebnum * mtd->erasesize;
97 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) {
203 int err = 0, i, ebnum, ebnum2; local
209 ebnum = 0;
213 ebnum += 1;
220 pr_info("erasing block %d\n", ebnum);
221 err = mtdtest_erase_eraseblock(mtd, ebnum);
282 int err = 0, i, ebnum, ok = 1; local
[all...]
H A Dmtd_test.h3 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum);
H A Dspeedtest.c54 static int multiblock_erase(int ebnum, int blocks) argument
58 loff_t addr = (loff_t)ebnum * mtd->erasesize;
68 err, ebnum, blocks);
74 "blocks %d\n", ebnum, blocks);
81 static int write_eraseblock(int ebnum) argument
83 loff_t addr = (loff_t)ebnum * mtd->erasesize;
88 static int write_eraseblock_by_page(int ebnum) argument
91 loff_t addr = (loff_t)ebnum * mtd->erasesize;
105 static int write_eraseblock_by_2pages(int ebnum) argument
109 loff_t addr = (loff_t)ebnum * mt
125 read_eraseblock(int ebnum) argument
132 read_eraseblock_by_page(int ebnum) argument
149 read_eraseblock_by_2pages(int ebnum) argument
[all...]
H A Dtorturetest.c100 static inline int check_eraseblock(int ebnum, unsigned char *buf) argument
104 loff_t addr = ebnum * mtd->erasesize;
108 addr = (ebnum + 1) * mtd->erasesize - pgcnt * pgsize;
116 "MTD reported that it was fixed.\n", ebnum);
119 "read %zd\n", err, ebnum, read);
126 len, ebnum, read);
131 pr_err("read wrong data from EB %d\n", ebnum);
138 ebnum);
154 static inline int write_pattern(int ebnum, void *buf) argument
158 loff_t addr = ebnum * mt
[all...]
H A Dsubpagetest.c56 static int write_eraseblock(int ebnum) argument
60 loff_t addr = (loff_t)ebnum * mtd->erasesize;
91 static int write_eraseblock2(int ebnum) argument
95 loff_t addr = (loff_t)ebnum * mtd->erasesize;
98 if (addr + (subpgsize * k) > (ebnum + 1) * mtd->erasesize)
130 static int verify_eraseblock(int ebnum) argument
134 loff_t addr = (loff_t)ebnum * mtd->erasesize;
191 static int verify_eraseblock2(int ebnum) argument
195 loff_t addr = (loff_t)ebnum * mtd->erasesize;
198 if (addr + (subpgsize * k) > (ebnum
225 verify_eraseblock_ff(int ebnum) argument
[all...]
H A Dreadtest.c47 static int read_eraseblock_by_page(int ebnum) argument
50 loff_t addr = (loff_t)ebnum * mtd->erasesize;
91 static void dump_eraseblock(int ebnum) argument
97 pr_info("dumping eraseblock %d\n", ebnum);
110 pr_info("dumping oob from eraseblock %d\n", ebnum);
H A Doobtest.c65 static int write_eraseblock(int ebnum) argument
70 loff_t addr = ebnum * mtd->erasesize;
118 static int verify_eraseblock(int ebnum) argument
123 loff_t addr = (loff_t)ebnum * mtd->erasesize;
213 static int verify_eraseblock_in_one_go(int ebnum) argument
217 loff_t addr = (loff_t)ebnum * mtd->erasesize;

Completed in 592 milliseconds