Lines Matching refs:pgsize

34 static int pgsize;  variable
66 for (j = 0; j < pgcnt - 1; ++j, addr += pgsize) { in verify_eraseblock()
78 if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) { in verify_eraseblock()
85 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { in verify_eraseblock()
99 memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); in verify_eraseblock()
100 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); in verify_eraseblock()
118 pp1 = kcalloc(pgsize, 4, GFP_KERNEL); in crosstest()
121 pp2 = pp1 + pgsize; in crosstest()
122 pp3 = pp2 + pgsize; in crosstest()
123 pp4 = pp3 + pgsize; in crosstest()
134 addr = addrn - pgsize - pgsize; in crosstest()
135 err = mtdtest_read(mtd, addr, pgsize, pp1); in crosstest()
142 addr = addrn - pgsize - pgsize - pgsize; in crosstest()
143 err = mtdtest_read(mtd, addr, pgsize, pp1); in crosstest()
152 err = mtdtest_read(mtd, addr, pgsize, pp2); in crosstest()
159 addr = addrn - pgsize; in crosstest()
161 err = mtdtest_read(mtd, addr, pgsize, pp3); in crosstest()
170 err = mtdtest_read(mtd, addr, pgsize, pp4); in crosstest()
179 if (memcmp(pp2, pp4, pgsize)) { in crosstest()
213 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
215 err = mtdtest_write(mtd, addr0, pgsize, writebuf); in erasecrosstest()
220 memset(readbuf, 0, pgsize); in erasecrosstest()
221 err = mtdtest_read(mtd, addr0, pgsize, readbuf); in erasecrosstest()
226 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
238 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
240 err = mtdtest_write(mtd, addr0, pgsize, writebuf); in erasecrosstest()
250 memset(readbuf, 0, pgsize); in erasecrosstest()
251 err = mtdtest_read(mtd, addr0, pgsize, readbuf); in erasecrosstest()
256 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
287 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasetest()
288 err = mtdtest_write(mtd, addr0, pgsize, writebuf); in erasetest()
298 err = mtdtest_read(mtd, addr0, pgsize, twopages); in erasetest()
304 for (i = 0; i < pgsize; ++i) in erasetest()
352 pgsize = mtd->writesize; in mtd_pagetest_init()
358 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_pagetest_init()
361 bufsize = pgsize * 2; in mtd_pagetest_init()