Home
last modified time | relevance | path

Searched refs:ebnum (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/mtd/tests/
H A Dpagetest.c41 static int write_eraseblock(int ebnum) in write_eraseblock() argument
50 static int verify_eraseblock(int ebnum) in verify_eraseblock() argument
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()
232 pr_info("erasing block %d\n", ebnum); in erasecrosstest()
269 int err = 0, i, ebnum, ok = 1; in erasetest() local
274 ebnum = 0; in erasetest()
278 ebnum += 1; in erasetest()
[all …]
H A Dspeedtest.c47 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()
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
109 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock()
114 static int read_eraseblock_by_page(int ebnum) in read_eraseblock_by_page() argument
[all …]
H A Dmtd_test.c10 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 Dsubpagetest.c43 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()
212 static int verify_eraseblock_ff(int ebnum) in verify_eraseblock_ff() argument
[all …]
H A Dtorturetest.c93 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()
151 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in write_pattern()
[all …]
H A Dreadtest.c35 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 Doobtest.c56 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 Dmtd_test.h16 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum);
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/
H A D0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch263 @@ -232,8 +232,8 @@ static int verify_eraseblock(int ebnum)