/linux-4.1.27/drivers/mtd/tests/ |
H A D | torturetest.c | 47 static int pgcnt; variable 48 module_param(pgcnt, int, S_IRUGO); 49 MODULE_PARM_DESC(pgcnt, "number of pages per eraseblock to torture (0 => all)"); 107 if (pgcnt) { check_eraseblock() 108 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; check_eraseblock() 109 len = pgcnt * pgsize; check_eraseblock() 161 if (pgcnt) { write_pattern() 162 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; write_pattern() 163 len = pgcnt * pgsize; write_pattern() 199 if (pgcnt) tort_init() 201 pgcnt); tort_init() 218 if (pgcnt && (pgcnt > mtd->erasesize / pgsize || pgcnt < 0)) { tort_init() 219 pr_err("error: invalid pgcnt value %d\n", pgcnt); tort_init() 392 if (pgcnt) report_corrupt() 393 check_len = pgcnt * pgsize; report_corrupt()
|
H A D | readtest.c | 45 static int pgcnt; variable 54 for (i = 0; i < pgcnt; i++) { read_eraseblock_by_page() 112 for (pg = 0, i = 0; pg < pgcnt; pg++) dump_eraseblock() 157 pgcnt = mtd->erasesize / pgsize; mtd_readtest_init() 163 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_readtest_init()
|
H A D | speedtest.c | 50 static int pgcnt; variable 94 for (i = 0; i < pgcnt; i++) { write_eraseblock_by_page() 108 int i, n = pgcnt / 2, err = 0; write_eraseblock_by_2pages() 119 if (pgcnt % 2) write_eraseblock_by_2pages() 138 for (i = 0; i < pgcnt; i++) { read_eraseblock_by_page() 152 int i, n = pgcnt / 2, err = 0; read_eraseblock_by_2pages() 163 if (pgcnt % 2) read_eraseblock_by_2pages() 230 pgcnt = mtd->erasesize / pgsize; mtd_speedtest_init() 236 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_speedtest_init()
|
H A D | oobtest.c | 49 static int pgcnt; variable 75 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); write_eraseblock() 76 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { write_eraseblock() 180 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); verify_eraseblock() 181 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { verify_eraseblock() 266 size_t len = mtd->ecclayout->oobavail * pgcnt; verify_eraseblock_in_one_go() 291 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { verify_eraseblock_in_one_go() 367 pgcnt = mtd->erasesize / mtd->writesize; mtd_oobtest_init() 373 mtd->writesize, ebcnt, pgcnt, mtd->oobsize); mtd_oobtest_init()
|
H A D | pagetest.c | 49 static int pgcnt; variable 78 for (j = 0; j < pgcnt - 1; ++j, addr += pgsize) { verify_eraseblock() 364 pgcnt = mtd->erasesize / mtd->writesize; mtd_pagetest_init() 371 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_pagetest_init()
|
H A D | stresstest.c | 53 static int pgcnt; variable 182 pgcnt = mtd->erasesize / pgsize; mtd_stresstest_init() 188 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_stresstest_init()
|
H A D | subpagetest.c | 47 static int pgcnt; variable 314 pgcnt = mtd->erasesize / mtd->writesize; mtd_subpagetest_init() 320 mtd->writesize, subpgsize, ebcnt, pgcnt, mtd->oobsize); mtd_subpagetest_init()
|
/linux-4.1.27/drivers/iommu/ |
H A D | exynos-iommu.c | 902 phys_addr_t paddr, short *pgcnt) lv1set_section() 911 if (*pgcnt != NUM_LV2ENTRIES) { lv1set_section() 918 *pgcnt = 0; lv1set_section() 941 short *pgcnt) lv2set_page() 949 *pgcnt -= 1; lv2set_page() 963 *pgcnt -= SPAGES_PER_LPAGE; lv2set_page() 900 lv1set_section(struct exynos_iommu_domain *priv, sysmmu_pte_t *sent, sysmmu_iova_t iova, phys_addr_t paddr, short *pgcnt) lv1set_section() argument 940 lv2set_page(sysmmu_pte_t *pent, phys_addr_t paddr, size_t size, short *pgcnt) lv2set_page() argument
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_crtn.h | 402 extern unsigned int pgcnt;
|