Searched refs:pgsize (Results 1 – 9 of 9) sorted by relevance
/drivers/mtd/tests/ |
D | pagetest.c | 46 static int pgsize; variable 78 for (j = 0; j < pgcnt - 1; ++j, addr += pgsize) { in verify_eraseblock() 90 if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) { in verify_eraseblock() 97 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { in verify_eraseblock() 111 memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); in verify_eraseblock() 112 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); in verify_eraseblock() 130 pp1 = kzalloc(pgsize * 4, GFP_KERNEL); in crosstest() 133 pp2 = pp1 + pgsize; in crosstest() 134 pp3 = pp2 + pgsize; in crosstest() 135 pp4 = pp3 + pgsize; in crosstest() [all …]
|
D | torturetest.c | 82 static int pgsize; variable 109 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock() 110 len = pgcnt * pgsize; in check_eraseblock() 163 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in write_pattern() 164 len = pgcnt * pgsize; in write_pattern() 215 pgsize = 512; in tort_init() 217 pgsize = mtd->writesize; in tort_init() 219 if (pgcnt && (pgcnt > mtd->erasesize / pgsize || pgcnt < 0)) { in tort_init() 249 for (i = 0; i < mtd->erasesize / pgsize; i++) { in tort_init() 251 memset(patt_5A5 + i * pgsize, 0x55, pgsize); in tort_init() [all …]
|
D | speedtest.c | 49 static int pgsize; variable 96 err = mtdtest_write(mtd, addr, pgsize, buf); in write_eraseblock_by_page() 99 addr += pgsize; in write_eraseblock_by_page() 100 buf += pgsize; in write_eraseblock_by_page() 108 size_t sz = pgsize * 2; in write_eraseblock_by_2pages() 121 err = mtdtest_write(mtd, addr, pgsize, buf); in write_eraseblock_by_2pages() 140 err = mtdtest_read(mtd, addr, pgsize, buf); in read_eraseblock_by_page() 143 addr += pgsize; in read_eraseblock_by_page() 144 buf += pgsize; in read_eraseblock_by_page() 152 size_t sz = pgsize * 2; in read_eraseblock_by_2pages() [all …]
|
D | readtest.c | 43 static int pgsize; variable 55 memset(buf, 0 , pgsize); in read_eraseblock_by_page() 56 ret = mtdtest_read(mtd, addr, pgsize, buf); in read_eraseblock_by_page() 84 addr += pgsize; in read_eraseblock_by_page() 85 buf += pgsize; in read_eraseblock_by_page() 150 pgsize = 512; in mtd_readtest_init() 152 pgsize = mtd->writesize; in mtd_readtest_init() 157 pgcnt = mtd->erasesize / pgsize; in mtd_readtest_init() 163 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_readtest_init()
|
D | stresstest.c | 50 static int pgsize; variable 116 len = ((len + pgsize - 1) / pgsize) * pgsize; in do_write() 175 pgsize = 512; in mtd_stresstest_init() 177 pgsize = mtd->writesize; in mtd_stresstest_init() 182 pgcnt = mtd->erasesize / pgsize; in mtd_stresstest_init() 188 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_stresstest_init()
|
/drivers/iommu/ |
D | iommu.c | 1285 size_t pgsize; in iommu_pgsize() local 1298 pgsize = (1UL << (pgsize_idx + 1)) - 1; in iommu_pgsize() 1301 pgsize &= domain->pgsize_bitmap; in iommu_pgsize() 1304 BUG_ON(!pgsize); in iommu_pgsize() 1307 pgsize_idx = __fls(pgsize); in iommu_pgsize() 1308 pgsize = 1UL << pgsize_idx; in iommu_pgsize() 1310 return pgsize; in iommu_pgsize() 1346 size_t pgsize = iommu_pgsize(domain, iova | paddr, size); in iommu_map() local 1349 iova, &paddr, pgsize); in iommu_map() 1351 ret = domain->ops->map(domain, iova, paddr, pgsize, prot); in iommu_map() [all …]
|
D | io-pgtable-arm.c | 1055 static const unsigned long pgsize[] = { in arm_lpae_do_selftests() local 1071 for (i = 0; i < ARRAY_SIZE(pgsize); ++i) { in arm_lpae_do_selftests() 1073 cfg.pgsize_bitmap = pgsize[i]; in arm_lpae_do_selftests() 1076 pgsize[i], ias[j]); in arm_lpae_do_selftests()
|
/drivers/s390/char/ |
D | sclp_diag.h | 50 u8 pgsize; member
|
D | sclp_ftp.c | 107 sccb->evbuf.mdd.ftp.pgsize = 0; in sclp_ftp_et7()
|