Searched refs:ebnum (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/mtd/tests/ |
| 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 | 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 | 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 | 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 | mtd_test.h | 16 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum);
|