Home
last modified time | relevance | path

Searched refs:pgsize (Results 1 – 25 of 38) sorted by relevance

12

/linux/drivers/mtd/tests/
A Dpagetest.c34 static int pgsize; variable
85 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { in verify_eraseblock()
99 memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); in verify_eraseblock()
100 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); in verify_eraseblock()
121 pp2 = pp1 + pgsize; in crosstest()
122 pp3 = pp2 + pgsize; in crosstest()
123 pp4 = pp3 + pgsize; in crosstest()
134 addr = addrn - pgsize - pgsize; in crosstest()
142 addr = addrn - pgsize - pgsize - pgsize; in crosstest()
159 addr = addrn - pgsize; in crosstest()
[all …]
A Dtorturetest.c70 static int pgsize; variable
98 len = pgcnt * pgsize; in check_eraseblock()
152 len = pgcnt * pgsize; in write_pattern()
203 pgsize = 512; in tort_init()
205 pgsize = mtd->writesize; in tort_init()
237 memset(patt_5A5 + i * pgsize, 0x55, pgsize); in tort_init()
238 memset(patt_A5A + i * pgsize, 0xAA, pgsize); in tort_init()
240 memset(patt_5A5 + i * pgsize, 0xAA, pgsize); in tort_init()
241 memset(patt_A5A + i * pgsize, 0x55, pgsize); in tort_init()
379 check_len = pgcnt * pgsize; in report_corrupt()
[all …]
A Dspeedtest.c37 static int pgsize; variable
77 err = mtdtest_write(mtd, addr, pgsize, buf); in write_eraseblock_by_page()
80 addr += pgsize; in write_eraseblock_by_page()
81 buf += pgsize; in write_eraseblock_by_page()
89 size_t sz = pgsize * 2; in write_eraseblock_by_2pages()
124 addr += pgsize; in read_eraseblock_by_page()
125 buf += pgsize; in read_eraseblock_by_page()
133 size_t sz = pgsize * 2; in read_eraseblock_by_2pages()
204 pgsize = 512; in mtd_speedtest_init()
206 pgsize = mtd->writesize; in mtd_speedtest_init()
[all …]
A Dreadtest.c31 static int pgsize; variable
43 memset(buf, 0 , pgsize); in read_eraseblock_by_page()
44 ret = mtdtest_read(mtd, addr, pgsize, buf); in read_eraseblock_by_page()
72 addr += pgsize; in read_eraseblock_by_page()
73 buf += pgsize; in read_eraseblock_by_page()
138 pgsize = 512; in mtd_readtest_init()
140 pgsize = mtd->writesize; in mtd_readtest_init()
145 pgcnt = mtd->erasesize / pgsize; in mtd_readtest_init()
151 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_readtest_init()
A Dstresstest.c38 static int pgsize; variable
104 len = ((len + pgsize - 1) / pgsize) * pgsize; in do_write()
163 pgsize = 512; in mtd_stresstest_init()
165 pgsize = mtd->writesize; in mtd_stresstest_init()
170 pgcnt = mtd->erasesize / pgsize; in mtd_stresstest_init()
176 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_stresstest_init()
/linux/arch/arm64/mm/
A Dhugetlbpage.c112 *pgsize = PAGE_SIZE; in find_num_contig()
117 *pgsize = PMD_SIZE; in find_num_contig()
127 *pgsize = size; in num_contig_ptes()
140 *pgsize = PMD_SIZE; in num_contig_ptes()
219 size_t pgsize; in set_huge_pte_at() local
251 size_t pgsize; in set_huge_swap_pte_at() local
365 size_t pgsize; in huge_pte_clear() local
377 size_t pgsize; in huge_ptep_get_and_clear() local
422 size_t pgsize = 0; in huge_ptep_set_access_flags() local
458 size_t pgsize; in huge_ptep_set_wrprotect() local
[all …]
/linux/tools/testing/selftests/powerpc/mm/
A Dpkey_exec_prot.c27 static unsigned long pgsize, numinsns; variable
62 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE)) { in segv_handler()
84 if (mprotect(insns, pgsize, PROT_EXEC)) { in segv_handler()
129 pgsize = getpagesize(); in test()
130 numinsns = pgsize / sizeof(unsigned int); in test()
179 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
196 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
216 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
233 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
270 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
[all …]
A Dpkey_siginfo.c38 size_t pgsize; in segv_handler() local
67 pgsize = getpagesize(); in segv_handler()
68 pgstart = (void *) ((unsigned long) fault_addr & ~(pgsize - 1)); in segv_handler()
83 mprotect(pgstart, pgsize, PROT_EXEC)) in segv_handler()
/linux/tools/testing/selftests/powerpc/tm/
A Dtm-vmxcopy.c39 unsigned long pgsize = getpagesize(); in test_vmxcopy() local
42 int size = pgsize*16; in test_vmxcopy()
44 char buf[pgsize]; in test_vmxcopy()
55 memset(buf, 0, pgsize); in test_vmxcopy()
56 for (i = 0; i < size; i += pgsize) in test_vmxcopy()
57 assert(write(fd, buf, pgsize) == pgsize); in test_vmxcopy()
/linux/drivers/gpu/drm/etnaviv/
A Detnaviv_mmu.c20 size_t pgsize = SZ_4K; in etnaviv_context_unmap() local
22 if (!IS_ALIGNED(iova | size, pgsize)) { in etnaviv_context_unmap()
24 iova, size, pgsize); in etnaviv_context_unmap()
30 pgsize); in etnaviv_context_unmap()
44 size_t pgsize = SZ_4K; in etnaviv_context_map() local
48 if (!IS_ALIGNED(iova | paddr | size, pgsize)) { in etnaviv_context_map()
50 iova, &paddr, size, pgsize); in etnaviv_context_map()
55 ret = context->global->ops->map(context, iova, paddr, pgsize, in etnaviv_context_map()
60 iova += pgsize; in etnaviv_context_map()
61 paddr += pgsize; in etnaviv_context_map()
[all …]
/linux/drivers/vfio/
A Dvfio_iommu_type1.c1200 size_t pgsize) in update_user_bitmap() argument
1295 size_t unmapped = 0, pgsize; in vfio_dma_do_unmap() local
1307 pgsize = (size_t)1 << pgshift; in vfio_dma_do_unmap()
1309 if (iova & (pgsize - 1)) in vfio_dma_do_unmap()
1323 (!iommu->dirty_page_tracking || (bitmap->pgsize != pgsize))) { in vfio_dma_do_unmap()
1327 WARN_ON((pgsize - 1) & PAGE_MASK); in vfio_dma_do_unmap()
1437 iova, pgsize); in vfio_dma_do_unmap()
1558 size_t pgsize; in vfio_dma_do_map() local
2863 pgshift = __ffs(bitmap.pgsize); in vfio_iommu_type1_unmap_dma()
2904 size_t pgsize; in vfio_iommu_type1_dirty_pages() local
[all …]
/linux/drivers/iommu/
A Dapple-dart.c110 u32 pgsize; member
358 phys_addr_t paddr, size_t pgsize, in apple_dart_map_pages() argument
368 return ops->map_pages(ops, iova, paddr, pgsize, pgcount, prot, gfp, in apple_dart_map_pages()
373 unsigned long iova, size_t pgsize, in apple_dart_unmap_pages() argument
380 return ops->unmap_pages(ops, iova, pgsize, pgcount, gather); in apple_dart_unmap_pages()
422 .pgsize_bitmap = dart->pgsize, in apple_dart_finalize_domain()
629 if (cfg_dart->pgsize != dart->pgsize) in apple_dart_of_xlate()
889 dart->pgsize = 1 << FIELD_GET(DART_PARAMS_PAGE_SHIFT, dart_params[0]); in apple_dart_probe()
891 dart->force_bypass = dart->pgsize > PAGE_SIZE; in apple_dart_probe()
916 dart->pgsize, dart->supports_bypass, dart->force_bypass); in apple_dart_probe()
A Dio-pgtable-arm.c477 phys_addr_t paddr, size_t pgsize, size_t pgcount, in arm_lpae_map_pages() argument
487 if (WARN_ON(!pgsize || (pgsize & cfg->pgsize_bitmap) != pgsize)) in arm_lpae_map_pages()
500 ret = __arm_lpae_map(data, iova, paddr, pgsize, pgcount, prot, lvl, in arm_lpae_map_pages()
677 size_t pgsize, size_t pgcount, in arm_lpae_unmap_pages() argument
685 if (WARN_ON(!pgsize || (pgsize & cfg->pgsize_bitmap) != pgsize || !pgcount)) in arm_lpae_unmap_pages()
693 return __arm_lpae_unmap(data, gather, iova, pgsize, pgcount, in arm_lpae_unmap_pages()
1334 static const unsigned long pgsize[] __initconst = { in arm_lpae_do_selftests() local
1351 for (i = 0; i < ARRAY_SIZE(pgsize); ++i) { in arm_lpae_do_selftests()
1353 cfg.pgsize_bitmap = pgsize[i]; in arm_lpae_do_selftests()
1356 pgsize[i], ias[j]); in arm_lpae_do_selftests()
A Dio-pgtable-arm-v7s.c523 phys_addr_t paddr, size_t pgsize, size_t pgcount, in arm_v7s_map_pages() argument
538 ret = __arm_v7s_map(data, iova, paddr, pgsize, prot, 1, data->pgd, in arm_v7s_map_pages()
543 iova += pgsize; in arm_v7s_map_pages()
544 paddr += pgsize; in arm_v7s_map_pages()
546 *mapped += pgsize; in arm_v7s_map_pages()
724 size_t pgsize, size_t pgcount, in arm_v7s_unmap_pages() argument
734 ret = __arm_v7s_unmap(data, gather, iova, pgsize, 1, data->pgd); in arm_v7s_unmap_pages()
738 unmapped += pgsize; in arm_v7s_unmap_pages()
739 iova += pgsize; in arm_v7s_unmap_pages()
A Diommu.c2403 size_t offset, pgsize, pgsize_next; in iommu_pgsize() local
2418 pgsize = BIT(pgsize_idx); in iommu_pgsize()
2420 return pgsize; in iommu_pgsize()
2449 return pgsize; in iommu_pgsize()
2457 size_t pgsize, count; in __iommu_map_pages() local
2463 iova, &paddr, pgsize, count); in __iommu_map_pages()
2469 ret = ops->map(domain, iova, paddr, pgsize, prot, gfp); in __iommu_map_pages()
2470 *mapped = ret ? 0 : pgsize; in __iommu_map_pages()
2569 size_t pgsize, count; in __iommu_unmap_pages() local
2571 pgsize = iommu_pgsize(domain, iova, iova, size, &count); in __iommu_unmap_pages()
[all …]
/linux/drivers/gpu/drm/panfrost/
A Dpanfrost_mmu.c290 size_t pgsize = get_pgsize(iova | paddr, len); in mmu_map_sg() local
292 ops->map(ops, iova, paddr, pgsize, prot, GFP_KERNEL); in mmu_map_sg()
293 iova += pgsize; in mmu_map_sg()
294 paddr += pgsize; in mmu_map_sg()
295 len -= pgsize; in mmu_map_sg()
347 size_t pgsize = get_pgsize(iova, len - unmapped_len); in panfrost_mmu_unmap() local
350 unmapped_page = ops->unmap(ops, iova, pgsize, NULL); in panfrost_mmu_unmap()
351 WARN_ON(unmapped_page != pgsize); in panfrost_mmu_unmap()
353 iova += pgsize; in panfrost_mmu_unmap()
354 unmapped_len += pgsize; in panfrost_mmu_unmap()
/linux/drivers/infiniband/hw/bnxt_re/
A Dqplib_res.c97 rdma_umem_for_each_dma_block(sginfo->umem, &biter, sginfo->pgsize) { in bnxt_qplib_fill_user_dma_pages()
117 pages = ib_umem_num_dma_blocks(sginfo->umem, sginfo->pgsize); in __alloc_pbl()
132 pbl->pg_size = sginfo->pgsize; in __alloc_pbl()
196 pg_size = hwq_attr->sginfo->pgsize; in bnxt_qplib_alloc_init_hwq()
219 hwq_attr->sginfo->umem, hwq_attr->sginfo->pgsize); in bnxt_qplib_alloc_init_hwq()
252 sginfo.pgsize = npde * pg_size; in bnxt_qplib_alloc_init_hwq()
258 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_init_hwq()
317 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_init_hwq()
401 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_tqm_rings()
518 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_ctx()
/linux/arch/powerpc/kvm/
A Dbook3s_64_mmu.c206 int pgsize; in kvmppc_mmu_book3s_64_xlate() local
242 pgsize = slbe->large ? MMU_PAGE_16M : MMU_PAGE_4K; in kvmppc_mmu_book3s_64_xlate()
271 pgsize = decode_pagesize(slbe, pte1); in kvmppc_mmu_book3s_64_xlate()
272 if (pgsize < 0) in kvmppc_mmu_book3s_64_xlate()
296 eaddr_mask = (1ull << mmu_pagesize(pgsize)) - 1; in kvmppc_mmu_book3s_64_xlate()
298 gpte->page_size = pgsize; in kvmppc_mmu_book3s_64_xlate()
A De500.h163 unsigned int pgsize = get_tlb_size(tlbe); in get_tlb_bytes() local
164 return 1ULL << 10 << pgsize; in get_tlb_bytes()
A Dbook3s_64_vio_hv.c263 const unsigned long pgsize = 1ULL << tbl->it_page_shift; in kvmppc_rm_tce_iommu_mapped_dec() local
270 mem = mm_iommu_lookup_rm(kvm->mm, be64_to_cpu(*pua), pgsize); in kvmppc_rm_tce_iommu_mapped_dec()
/linux/include/linux/
A Diommu.h188 size_t pgsize; member
254 phys_addr_t paddr, size_t pgsize, size_t pgcount,
259 size_t pgsize, size_t pgcount,
589 if ((gather->pgsize && gather->pgsize != size) || in iommu_iotlb_gather_add_page()
593 gather->pgsize = size; in iommu_iotlb_gather_add_page()
A Dio-pgtable.h159 phys_addr_t paddr, size_t pgsize, size_t pgcount,
164 size_t pgsize, size_t pgcount,
/linux/drivers/s390/char/
A Dsclp_diag.h51 u8 pgsize; member
A Dsclp_ftp.c111 sccb->evbuf.mdd.ftp.pgsize = 0; in sclp_ftp_et7()
/linux/drivers/gpu/drm/arm/
A Dmalidp_planes.c333 u32 pgsize) in malidp_check_pages_threshold() argument
357 if (sgl->length < pgsize) { in malidp_check_pages_threshold()
469 u8 readahead, u8 n_planes, u32 pgsize) in malidp_calc_mmu_control_value() argument
481 if (pgsize == SZ_64K || pgsize == SZ_2M) { in malidp_calc_mmu_control_value()

Completed in 65 milliseconds

12