/Linux-v4.19/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 = kcalloc(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 89 err = mtdtest_write(mtd, addr, pgsize, buf); in write_eraseblock_by_page() 92 addr += pgsize; in write_eraseblock_by_page() 93 buf += pgsize; in write_eraseblock_by_page() 101 size_t sz = pgsize * 2; in write_eraseblock_by_2pages() 114 err = mtdtest_write(mtd, addr, pgsize, buf); in write_eraseblock_by_2pages() 133 err = mtdtest_read(mtd, addr, pgsize, buf); in read_eraseblock_by_page() 136 addr += pgsize; in read_eraseblock_by_page() 137 buf += pgsize; in read_eraseblock_by_page() 145 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-v4.19/arch/arm64/mm/ |
D | hugetlbpage.c | 55 pte_t *ptep, size_t *pgsize) in find_num_contig() argument 61 *pgsize = PAGE_SIZE; in find_num_contig() 65 *pgsize = PMD_SIZE; in find_num_contig() 71 static inline int num_contig_ptes(unsigned long size, size_t *pgsize) in num_contig_ptes() argument 75 *pgsize = size; in num_contig_ptes() 85 *pgsize = PMD_SIZE; in num_contig_ptes() 89 *pgsize = PAGE_SIZE; in num_contig_ptes() 108 unsigned long pgsize, in get_clear_flush() argument 115 for (i = 0; i < ncontig; i++, addr += pgsize, ptep++) { in get_clear_flush() 149 unsigned long pgsize, in clear_flush() argument [all …]
|
/Linux-v4.19/tools/testing/selftests/powerpc/tm/ |
D | tm-vmxcopy.c | 39 unsigned long pgsize = getpagesize(); in test_vmxcopy() local 42 int size = pgsize*16; in test_vmxcopy() 44 char buf[pgsize]; in test_vmxcopy() 54 memset(buf, 0, pgsize); in test_vmxcopy() 55 for (i = 0; i < size; i += pgsize) in test_vmxcopy() 56 assert(write(fd, buf, pgsize) == pgsize); in test_vmxcopy()
|
/Linux-v4.19/drivers/gpu/drm/etnaviv/ |
D | etnaviv_mmu.c | 18 size_t pgsize = SZ_4K; in etnaviv_domain_unmap() local 20 if (!IS_ALIGNED(iova | size, pgsize)) { in etnaviv_domain_unmap() 22 iova, size, pgsize); in etnaviv_domain_unmap() 27 unmapped_page = domain->ops->unmap(domain, iova, pgsize); in etnaviv_domain_unmap() 41 size_t pgsize = SZ_4K; in etnaviv_domain_map() local 45 if (!IS_ALIGNED(iova | paddr | size, pgsize)) { in etnaviv_domain_map() 47 iova, &paddr, size, pgsize); in etnaviv_domain_map() 52 ret = domain->ops->map(domain, iova, paddr, pgsize, prot); in etnaviv_domain_map() 56 iova += pgsize; in etnaviv_domain_map() 57 paddr += pgsize; in etnaviv_domain_map() [all …]
|
/Linux-v4.19/drivers/iommu/ |
D | iommu.c | 1517 size_t pgsize; in iommu_pgsize() local 1530 pgsize = (1UL << (pgsize_idx + 1)) - 1; in iommu_pgsize() 1533 pgsize &= domain->pgsize_bitmap; in iommu_pgsize() 1536 BUG_ON(!pgsize); in iommu_pgsize() 1539 pgsize_idx = __fls(pgsize); in iommu_pgsize() 1540 pgsize = 1UL << pgsize_idx; in iommu_pgsize() 1542 return pgsize; in iommu_pgsize() 1578 size_t pgsize = iommu_pgsize(domain, iova | paddr, size); in iommu_map() local 1581 iova, &paddr, pgsize); in iommu_map() 1583 ret = domain->ops->map(domain, iova, paddr, pgsize, prot); in iommu_map() [all …]
|
D | io-pgtable-arm.c | 1157 static const unsigned long pgsize[] = { in arm_lpae_do_selftests() local 1174 for (i = 0; i < ARRAY_SIZE(pgsize); ++i) { in arm_lpae_do_selftests() 1176 cfg.pgsize_bitmap = pgsize[i]; in arm_lpae_do_selftests() 1179 pgsize[i], ias[j]); in arm_lpae_do_selftests()
|
/Linux-v4.19/arch/powerpc/kvm/ |
D | book3s_64_mmu.c | 231 int pgsize; in kvmppc_mmu_book3s_64_xlate() local 267 pgsize = slbe->large ? MMU_PAGE_16M : MMU_PAGE_4K; in kvmppc_mmu_book3s_64_xlate() 296 pgsize = decode_pagesize(slbe, pte1); in kvmppc_mmu_book3s_64_xlate() 297 if (pgsize < 0) in kvmppc_mmu_book3s_64_xlate() 322 eaddr_mask = (1ull << mmu_pagesize(pgsize)) - 1; in kvmppc_mmu_book3s_64_xlate() 324 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_vio_hv.c | 225 const unsigned long pgsize = 1ULL << tbl->it_page_shift; in kvmppc_rm_tce_iommu_mapped_dec() local 232 mem = mm_iommu_lookup_rm(kvm->mm, be64_to_cpu(*pua), pgsize); in kvmppc_rm_tce_iommu_mapped_dec()
|
D | book3s_64_vio.c | 378 const unsigned long pgsize = 1ULL << tbl->it_page_shift; in kvmppc_tce_iommu_mapped_dec() local 385 mem = mm_iommu_lookup(kvm->mm, be64_to_cpu(*pua), pgsize); in kvmppc_tce_iommu_mapped_dec()
|
D | book3s_64_mmu_hv.c | 204 static inline unsigned long hpte0_pgsize_encoding(unsigned long pgsize) in hpte0_pgsize_encoding() argument 206 return (pgsize > 0x1000) ? HPTE_V_LARGE : 0; in hpte0_pgsize_encoding() 210 static inline unsigned long hpte1_pgsize_encoding(unsigned long pgsize) in hpte1_pgsize_encoding() argument 212 return (pgsize == 0x10000) ? 0x1000 : 0; in hpte1_pgsize_encoding()
|
/Linux-v4.19/drivers/s390/char/ |
D | sclp_diag.h | 51 u8 pgsize; member
|
D | sclp_ftp.c | 108 sccb->evbuf.mdd.ftp.pgsize = 0; in sclp_ftp_et7()
|
/Linux-v4.19/arch/ia64/kernel/ |
D | head.S | 165 #define SET_ONE_RR(num, pgsize, _tmp1, _tmp2, vhpt) \ argument 167 mov _tmp2=((ia64_rid(IA64_REGION_ID_KERNEL, (num<<61)) << 8) | (pgsize << 2) | vhpt);; \
|