Searched refs:pgsize (Results 1 - 17 of 17) sorted by relevance

/linux-4.1.27/drivers/mtd/tests/
H A Dpagetest.c46 static int pgsize; variable
78 for (j = 0; j < pgcnt - 1; ++j, addr += pgsize) { verify_eraseblock()
90 if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) { verify_eraseblock()
97 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { verify_eraseblock()
111 memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); verify_eraseblock()
112 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); verify_eraseblock()
130 pp1 = kmalloc(pgsize * 4, GFP_KERNEL); crosstest()
133 pp2 = pp1 + pgsize; crosstest()
134 pp3 = pp2 + pgsize; crosstest()
135 pp4 = pp3 + pgsize; crosstest()
136 memset(pp1, 0, pgsize * 4); crosstest()
147 addr = addrn - pgsize - pgsize; crosstest()
148 err = mtdtest_read(mtd, addr, pgsize, pp1); crosstest()
155 addr = addrn - pgsize - pgsize - pgsize; crosstest()
156 err = mtdtest_read(mtd, addr, pgsize, pp1); crosstest()
165 err = mtdtest_read(mtd, addr, pgsize, pp2); crosstest()
172 addr = addrn - pgsize; crosstest()
174 err = mtdtest_read(mtd, addr, pgsize, pp3); crosstest()
183 err = mtdtest_read(mtd, addr, pgsize, pp4); crosstest()
192 if (memcmp(pp2, pp4, pgsize)) { crosstest()
226 prandom_bytes_state(&rnd_state, writebuf, pgsize); erasecrosstest()
228 err = mtdtest_write(mtd, addr0, pgsize, writebuf); erasecrosstest()
233 memset(readbuf, 0, pgsize); erasecrosstest()
234 err = mtdtest_read(mtd, addr0, pgsize, readbuf); erasecrosstest()
239 if (memcmp(writebuf, readbuf, pgsize)) { erasecrosstest()
251 prandom_bytes_state(&rnd_state, writebuf, pgsize); erasecrosstest()
253 err = mtdtest_write(mtd, addr0, pgsize, writebuf); erasecrosstest()
263 memset(readbuf, 0, pgsize); erasecrosstest()
264 err = mtdtest_read(mtd, addr0, pgsize, readbuf); erasecrosstest()
269 if (memcmp(writebuf, readbuf, pgsize)) { erasecrosstest()
300 prandom_bytes_state(&rnd_state, writebuf, pgsize); erasetest()
301 err = mtdtest_write(mtd, addr0, pgsize, writebuf); erasetest()
311 err = mtdtest_read(mtd, addr0, pgsize, twopages); erasetest()
317 for (i = 0; i < pgsize; ++i) erasetest()
365 pgsize = mtd->writesize; mtd_pagetest_init()
371 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_pagetest_init()
374 bufsize = pgsize * 2; mtd_pagetest_init()
H A Dreadtest.c43 static int pgsize; variable
55 memset(buf, 0 , pgsize); read_eraseblock_by_page()
56 ret = mtdtest_read(mtd, addr, pgsize, buf); read_eraseblock_by_page()
84 addr += pgsize; read_eraseblock_by_page()
85 buf += pgsize; read_eraseblock_by_page()
150 pgsize = 512; mtd_readtest_init()
152 pgsize = mtd->writesize; mtd_readtest_init()
157 pgcnt = mtd->erasesize / pgsize; mtd_readtest_init()
163 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_readtest_init()
H A Dtorturetest.c81 static int pgsize; variable
108 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; check_eraseblock()
109 len = pgcnt * pgsize; check_eraseblock()
162 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; write_pattern()
163 len = pgcnt * pgsize; write_pattern()
214 pgsize = 512; tort_init()
216 pgsize = mtd->writesize; tort_init()
218 if (pgcnt && (pgcnt > mtd->erasesize / pgsize || pgcnt < 0)) { tort_init()
248 for (i = 0; i < mtd->erasesize / pgsize; i++) { tort_init()
250 memset(patt_5A5 + i * pgsize, 0x55, pgsize); tort_init()
251 memset(patt_A5A + i * pgsize, 0xAA, pgsize); tort_init()
253 memset(patt_5A5 + i * pgsize, 0xAA, pgsize); tort_init()
254 memset(patt_A5A + i * pgsize, 0x55, pgsize); tort_init()
393 check_len = pgcnt * pgsize; report_corrupt()
396 for (i = 0; i < check_len; i += pgsize) report_corrupt()
397 if (countdiffs(written, read, i, pgsize, &bytes, report_corrupt()
406 for (i = 0; i < check_len; i += pgsize) { report_corrupt()
409 first = countdiffs(written, read, i, pgsize, &bytes, report_corrupt()
419 (mtd->erasesize - check_len + i) / pgsize, report_corrupt()
H A Dspeedtest.c48 static int pgsize; variable
95 err = mtdtest_write(mtd, addr, pgsize, buf); write_eraseblock_by_page()
98 addr += pgsize; write_eraseblock_by_page()
99 buf += pgsize; write_eraseblock_by_page()
107 size_t sz = pgsize * 2; write_eraseblock_by_2pages()
120 err = mtdtest_write(mtd, addr, pgsize, buf); write_eraseblock_by_2pages()
139 err = mtdtest_read(mtd, addr, pgsize, buf); read_eraseblock_by_page()
142 addr += pgsize; read_eraseblock_by_page()
143 buf += pgsize; read_eraseblock_by_page()
151 size_t sz = pgsize * 2; read_eraseblock_by_2pages()
164 err = mtdtest_read(mtd, addr, pgsize, buf); read_eraseblock_by_2pages()
223 pgsize = 512; mtd_speedtest_init()
225 pgsize = mtd->writesize; mtd_speedtest_init()
230 pgcnt = mtd->erasesize / pgsize; mtd_speedtest_init()
236 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_speedtest_init()
H A Dstresstest.c50 static int pgsize; variable
116 len = ((len + pgsize - 1) / pgsize) * pgsize; do_write()
175 pgsize = 512; mtd_stresstest_init()
177 pgsize = mtd->writesize; mtd_stresstest_init()
182 pgcnt = mtd->erasesize / pgsize; mtd_stresstest_init()
188 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_stresstest_init()
/linux-4.1.27/drivers/s390/char/
H A Dsclp_diag.h35 * @pgsize: page size (0 = 4kB, 1 = large page size)
50 u8 pgsize; member in struct:sclp_diag_ftp
H A Dsclp_ftp.c107 sccb->evbuf.mdd.ftp.pgsize = 0; sclp_ftp_et7()
/linux-4.1.27/drivers/iommu/
H A Diommu.c1000 size_t pgsize; iommu_pgsize() local
1013 pgsize = (1UL << (pgsize_idx + 1)) - 1; iommu_pgsize()
1016 pgsize &= domain->ops->pgsize_bitmap; iommu_pgsize()
1019 BUG_ON(!pgsize); iommu_pgsize()
1022 pgsize_idx = __fls(pgsize); iommu_pgsize()
1023 pgsize = 1UL << pgsize_idx; iommu_pgsize()
1025 return pgsize; iommu_pgsize()
1060 size_t pgsize = iommu_pgsize(domain, iova | paddr, size); iommu_map() local
1062 pr_debug("mapping: iova 0x%lx pa %pa pgsize 0x%zx\n", iommu_map()
1063 iova, &paddr, pgsize); iommu_map()
1065 ret = domain->ops->map(domain, iova, paddr, pgsize, prot); iommu_map()
1069 iova += pgsize; iommu_map()
1070 paddr += pgsize; iommu_map()
1071 size -= pgsize; iommu_map()
1118 size_t pgsize = iommu_pgsize(domain, iova, size - unmapped); iommu_unmap() local
1120 unmapped_page = domain->ops->unmap(domain, iova, pgsize); iommu_unmap()
H A Dio-pgtable-arm.c975 static const unsigned long pgsize[] = { arm_lpae_do_selftests() local
991 for (i = 0; i < ARRAY_SIZE(pgsize); ++i) { arm_lpae_do_selftests()
993 cfg.pgsize_bitmap = pgsize[i]; arm_lpae_do_selftests()
996 pgsize[i], ias[j]); arm_lpae_do_selftests()
/linux-4.1.27/arch/powerpc/kvm/
H A Dbook3s_64_mmu.c223 int pgsize; kvmppc_mmu_book3s_64_xlate() local
258 pgsize = slbe->large ? MMU_PAGE_16M : MMU_PAGE_4K; kvmppc_mmu_book3s_64_xlate()
283 /* If large page bit is set, check pgsize encoding */ kvmppc_mmu_book3s_64_xlate()
286 pgsize = decode_pagesize(slbe, pte1); kvmppc_mmu_book3s_64_xlate()
287 if (pgsize < 0) kvmppc_mmu_book3s_64_xlate()
312 eaddr_mask = (1ull << mmu_pagesize(pgsize)) - 1; kvmppc_mmu_book3s_64_xlate()
314 gpte->page_size = pgsize; kvmppc_mmu_book3s_64_xlate()
H A De500.h166 unsigned int pgsize = get_tlb_size(tlbe); get_tlb_bytes() local
167 return 1ULL << 10 << pgsize; get_tlb_bytes()
H A Dbook3s_64_mmu_hv.c163 static inline unsigned long hpte0_pgsize_encoding(unsigned long pgsize) hpte0_pgsize_encoding() argument
165 return (pgsize > 0x1000) ? HPTE_V_LARGE : 0; hpte0_pgsize_encoding()
169 static inline unsigned long hpte1_pgsize_encoding(unsigned long pgsize) hpte1_pgsize_encoding() argument
171 return (pgsize == 0x10000) ? 0x1000 : 0; hpte1_pgsize_encoding()
/linux-4.1.27/drivers/infiniband/hw/ehca/
H A Dehca_mrmw.h120 void ehca_mrmw_set_pgsize_hipz_acl(u32 pgsize, u32 *hipz_acl);
H A Dehca_mrmw.c106 static u32 ehca_encode_hwpage_size(u32 pgsize) ehca_encode_hwpage_size() argument
108 int log = ilog2(pgsize); ehca_encode_hwpage_size()
274 /* for kernel space we try most possible pgsize */ ehca_reg_phys_mr()
2182 void ehca_mrmw_set_pgsize_hipz_acl(u32 pgsize, u32 *hipz_acl) /*INOUT*/ ehca_mrmw_set_pgsize_hipz_acl() argument
2184 *hipz_acl |= (ehca_encode_hwpage_size(pgsize) << 24); ehca_mrmw_set_pgsize_hipz_acl()
H A Dehca_classes.h128 /* MR pgsize: bit 0-3 means 4K, 64K, 1M, 16M respectively */
/linux-4.1.27/arch/ia64/kernel/
H A Dhead.S164 #define SET_ONE_RR(num, pgsize, _tmp1, _tmp2, vhpt) \
166 mov _tmp2=((ia64_rid(IA64_REGION_ID_KERNEL, (num<<61)) << 8) | (pgsize << 2) | vhpt);; \
/linux-4.1.27/arch/powerpc/platforms/ps3/
H A Dmm.c600 DBG("%s: pgsize=%#x len=%#lx pages=%#x iopteflag=%#llx\n", __func__, dma_ioc0_map_pages()

Completed in 539 milliseconds