/linux-4.4.14/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 = kmalloc(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()
|
/linux-4.4.14/tools/testing/selftests/vm/ |
D | run_vmtests | 15 pgsize=$size 20 if [ -n "$freepgs" ] && [ -n "$pgsize" ]; then 22 needpgs=`expr $needmem / $pgsize`
|
/linux-4.4.14/drivers/iommu/ |
D | iommu.c | 1284 size_t pgsize; in iommu_pgsize() local 1297 pgsize = (1UL << (pgsize_idx + 1)) - 1; in iommu_pgsize() 1300 pgsize &= domain->ops->pgsize_bitmap; in iommu_pgsize() 1303 BUG_ON(!pgsize); in iommu_pgsize() 1306 pgsize_idx = __fls(pgsize); in iommu_pgsize() 1307 pgsize = 1UL << pgsize_idx; in iommu_pgsize() 1309 return pgsize; in iommu_pgsize() 1344 size_t pgsize = iommu_pgsize(domain, iova | paddr, size); in iommu_map() local 1347 iova, &paddr, pgsize); in iommu_map() 1349 ret = domain->ops->map(domain, iova, paddr, pgsize, prot); in iommu_map() [all …]
|
D | io-pgtable-arm.c | 1037 static const unsigned long pgsize[] = { in arm_lpae_do_selftests() local 1053 for (i = 0; i < ARRAY_SIZE(pgsize); ++i) { in arm_lpae_do_selftests() 1055 cfg.pgsize_bitmap = pgsize[i]; in arm_lpae_do_selftests() 1058 pgsize[i], ias[j]); in arm_lpae_do_selftests()
|
/linux-4.4.14/arch/powerpc/kvm/ |
D | book3s_64_mmu.c | 223 int pgsize; in kvmppc_mmu_book3s_64_xlate() local 258 pgsize = slbe->large ? MMU_PAGE_16M : MMU_PAGE_4K; in kvmppc_mmu_book3s_64_xlate() 286 pgsize = decode_pagesize(slbe, pte1); in kvmppc_mmu_book3s_64_xlate() 287 if (pgsize < 0) in kvmppc_mmu_book3s_64_xlate() 312 eaddr_mask = (1ull << mmu_pagesize(pgsize)) - 1; in kvmppc_mmu_book3s_64_xlate() 314 gpte->page_size = pgsize; in kvmppc_mmu_book3s_64_xlate()
|
D | e500.h | 166 unsigned int pgsize = get_tlb_size(tlbe); in get_tlb_bytes() local 167 return 1ULL << 10 << pgsize; in get_tlb_bytes()
|
D | book3s_64_mmu_hv.c | 164 static inline unsigned long hpte0_pgsize_encoding(unsigned long pgsize) in hpte0_pgsize_encoding() argument 166 return (pgsize > 0x1000) ? HPTE_V_LARGE : 0; in hpte0_pgsize_encoding() 170 static inline unsigned long hpte1_pgsize_encoding(unsigned long pgsize) in hpte1_pgsize_encoding() argument 172 return (pgsize == 0x10000) ? 0x1000 : 0; in hpte1_pgsize_encoding()
|
/linux-4.4.14/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()
|
/linux-4.4.14/drivers/staging/rdma/ehca/ |
D | ehca_mrmw.h | 120 void ehca_mrmw_set_pgsize_hipz_acl(u32 pgsize, u32 *hipz_acl);
|
D | ehca_mrmw.c | 106 static u32 ehca_encode_hwpage_size(u32 pgsize) in ehca_encode_hwpage_size() argument 108 int log = ilog2(pgsize); in ehca_encode_hwpage_size() 2182 void ehca_mrmw_set_pgsize_hipz_acl(u32 pgsize, u32 *hipz_acl) /*INOUT*/ in ehca_mrmw_set_pgsize_hipz_acl() argument 2184 *hipz_acl |= (ehca_encode_hwpage_size(pgsize) << 24); in ehca_mrmw_set_pgsize_hipz_acl()
|
/linux-4.4.14/arch/ia64/kernel/ |
D | head.S | 163 #define SET_ONE_RR(num, pgsize, _tmp1, _tmp2, vhpt) \ argument 165 mov _tmp2=((ia64_rid(IA64_REGION_ID_KERNEL, (num<<61)) << 8) | (pgsize << 2) | vhpt);; \
|