Home
last modified time | relevance | path

Searched refs:pagesize (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/Linux-v6.6/tools/testing/selftests/mm/
Dsoft-dirty.c15 static void test_simple(int pagemap_fd, int pagesize) in test_simple() argument
20 map = aligned_alloc(pagesize, pagesize); in test_simple()
48 static void test_vma_reuse(int pagemap_fd, int pagesize) in test_vma_reuse() argument
52 map = mmap(NULL, pagesize, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANON), -1, 0); in test_vma_reuse()
61 munmap(map, pagesize); in test_vma_reuse()
63 map2 = mmap(NULL, pagesize, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANON), -1, 0); in test_vma_reuse()
74 munmap(map2, pagesize); in test_vma_reuse()
77 static void test_hugepage(int pagemap_fd, int pagesize) in test_hugepage() argument
127 static void test_mprotect(int pagemap_fd, int pagesize, bool anon) in test_mprotect() argument
135 map = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, in test_mprotect()
[all …]
Dmadv_populate.c28 static size_t pagesize; variable
35 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support()
40 ret = madvise(addr, pagesize, MADV_POPULATE_READ); in sense_support()
44 ret = madvise(addr, pagesize, MADV_POPULATE_WRITE); in sense_support()
48 munmap(addr, pagesize); in sense_support()
104 ret = munmap(addr + pagesize, pagesize); in test_holes()
117 ret = madvise(addr, 2 * pagesize, MADV_POPULATE_READ); in test_holes()
120 ret = madvise(addr, 2 * pagesize, MADV_POPULATE_WRITE); in test_holes()
125 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_READ); in test_holes()
128 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_WRITE); in test_holes()
[all …]
Dmkdirty.c28 static size_t pagesize; variable
94 mem = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 0); in test_ptrace_write()
119 munmap(mem, pagesize); in test_ptrace_write()
148 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in test_ptrace_write_thp()
164 mem = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, in test_page_migration()
172 memset(mem, 1, pagesize); in test_page_migration()
173 if (mprotect(mem, pagesize, PROT_READ)) { in test_page_migration()
179 if (syscall(__NR_mbind, mem, pagesize, MPOL_LOCAL, NULL, 0x7fful, in test_page_migration()
187 munmap(mem, pagesize); in test_page_migration()
205 memset(mem, 1, pagesize); in test_page_migration_thp()
[all …]
Dsplit_huge_page_test.c21 uint64_t pagesize; variable
178 pte_mapped = mremap(one_page, pagesize, pagesize, MREMAP_MAYMOVE); in split_pte_mapped_thp()
182 pte_mapped2 = mremap(one_page + pmd_pagesize * i + pagesize * i, in split_pte_mapped_thp()
183 pagesize, pagesize, in split_pte_mapped_thp()
185 pte_mapped + pagesize * i); in split_pte_mapped_thp()
194 for (i = 0; i < pagesize * 4; i++) in split_pte_mapped_thp()
195 if (i % pagesize == 0 && in split_pte_mapped_thp()
206 (uint64_t)pte_mapped + pagesize * 4); in split_pte_mapped_thp()
210 for (i = 0; i < pagesize * 4; i++) { in split_pte_mapped_thp()
215 if (i % pagesize == 0 && in split_pte_mapped_thp()
[all …]
Dcow.c33 static size_t pagesize; variable
68 for (; size; addr += pagesize, size -= pagesize) in range_is_swapped()
684 mem = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, in do_run_with_base_page()
691 ret = madvise(mem, pagesize, MADV_NOHUGEPAGE); in do_run_with_base_page()
699 memset(mem, 0, pagesize); in do_run_with_base_page()
702 madvise(mem, pagesize, MADV_PAGEOUT); in do_run_with_base_page()
709 fn(mem, pagesize); in do_run_with_base_page()
711 munmap(mem, pagesize); in do_run_with_base_page()
766 if (!pagemap_is_populated(pagemap_fd, mem + pagesize)) { in do_run_with_thp()
783 ret = mprotect(mem + pagesize, pagesize, PROT_READ); in do_run_with_thp()
[all …]
Dgup_longterm.c33 static size_t pagesize; variable
104 if (size == pagesize) in do_test()
114 if (size == pagesize || shared) in do_test()
248 fn(fd, pagesize); in run_with_memfd()
271 fn(fd, pagesize); in run_with_tmpfile()
293 fn(fd, pagesize); in run_with_local_tmpfile()
442 pagesize = getpagesize(); in main()
Dksm_functional_tests.c37 static size_t pagesize; variable
48 for (offs_a = 0; offs_a < size; offs_a += pagesize) { in range_maps_duplicates()
54 for (offs_b = offs_a + pagesize; offs_b < size; in range_maps_duplicates()
55 offs_b += pagesize) { in range_maps_duplicates()
271 pages_expected = size / pagesize; in test_unmerge_zero_pages()
291 for (offs = size / 2; offs < size; offs += pagesize) in test_unmerge_zero_pages()
517 for (i = 0; i < size / 2; i += pagesize) { in test_prot_none()
549 pagesize = getpagesize(); in main()
Dhugetlb-read-hwpoison.c179 const unsigned long pagesize = getpagesize(); in test_hugetlb_read_hwpoison() local
202 hwp_addr = filemap + len / 2 + pagesize; in test_hugetlb_read_hwpoison()
203 if (madvise(hwp_addr, pagesize, MADV_HWPOISON) < 0) { in test_hugetlb_read_hwpoison()
214 len / 2 + pagesize)) in test_hugetlb_read_hwpoison()
222 len / 2 + MAX(2 * pagesize, wr_chunk_size), in test_hugetlb_read_hwpoison()
223 len / 2 - MAX(2 * pagesize, wr_chunk_size))) in test_hugetlb_read_hwpoison()
/Linux-v6.6/drivers/misc/sgi-gru/
Dgruhandles.c141 int asid, int pagesize, int global, int n, in tgh_invalidate() argument
146 tgh->pagesize = pagesize; in tgh_invalidate()
159 int pagesize) in tfh_write_only() argument
166 tfh->pagesize = pagesize; in tfh_write_only()
175 int pagesize) in tfh_write_restart() argument
182 tfh->pagesize = pagesize; in tfh_write_restart()
Dgruhandles.h204 unsigned int pagesize:5; member
291 unsigned int pagesize:5; member
508 unsigned long vaddrmask, int asid, int pagesize, int global, int n,
511 int gaa, unsigned long vaddr, int asid, int dirty, int pagesize);
513 int gaa, unsigned long vaddr, int asid, int dirty, int pagesize);
/Linux-v6.6/drivers/usb/storage/
Dalauda.c87 unsigned int pagesize; /* page size in bytes */ member
431 MEDIA_INFO(us).pagesize = 1 << media_info->pageshift; in alauda_init_media()
745 data, (MEDIA_INFO(us).pagesize + 64) * pages, NULL); in alauda_read_block_raw()
758 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_read_block() local
766 int dest_offset = i * pagesize; in alauda_read_block()
767 int src_offset = i * (pagesize + 64); in alauda_read_block()
768 memmove(data + dest_offset, data + src_offset, pagesize); in alauda_read_block()
796 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block()
817 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_write_lba() local
850 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba()
[all …]
/Linux-v6.6/tools/testing/selftests/powerpc/tm/
Dtm-signal-pagefault.c52 static size_t pagesize; variable
78 uf_mem_offset = (uf_mem_offset + pagesize - 1) & ~(pagesize - 1); in get_uf_mem()
122 uffdio_copy.dst = msg.arg.pagefault.address & ~(pagesize-1); in fault_handler_thread()
127 uffdio_copy.len = pagesize; in fault_handler_thread()
145 pagesize = sysconf(_SC_PAGE_SIZE); in setup_uf_mem()
/Linux-v6.6/arch/mips/dec/prom/
Dmemory.c73 mem_size += (8 * bm->pagesize); in rex_setup_memory_region()
75 mem_start += (8 * bm->pagesize); in rex_setup_memory_region()
78 mem_start += mem_size + (8 * bm->pagesize); in rex_setup_memory_region()
/Linux-v6.6/arch/arm/boot/dts/aspeed/
Daspeed-bmc-inventec-transformers.dts134 pagesize = <128>;
177 pagesize = <128>;
183 pagesize = <128>;
229 pagesize = <128>;
241 pagesize = <128>;
253 pagesize = <128>;
/Linux-v6.6/arch/arm64/mm/
Dhugetlbpage.c78 size_t pagesize = huge_page_size(h); in arch_hugetlb_migration_supported() local
80 if (!__hugetlb_valid_size(pagesize)) { in arch_hugetlb_migration_supported()
82 __func__, pagesize); in arch_hugetlb_migration_supported()
380 size_t pagesize = 1UL << shift; in arch_make_huge_pte() local
383 if (pagesize == CONT_PTE_SIZE) { in arch_make_huge_pte()
385 } else if (pagesize == CONT_PMD_SIZE) { in arch_make_huge_pte()
387 } else if (pagesize != PUD_SIZE && pagesize != PMD_SIZE) { in arch_make_huge_pte()
389 __func__, pagesize); in arch_make_huge_pte()
/Linux-v6.6/drivers/mtd/nand/raw/
Dnand_samsung.c26 memorg->pagesize = 2048 << (extid & 0x03); in samsung_nand_decode_id()
27 mtd->writesize = memorg->pagesize; in samsung_nand_decode_id()
69 memorg->pagesize; in samsung_nand_decode_id()
Dnand_amd.c28 memorg->pagesize == 512) { in amd_nand_decode_id()
32 memorg->pagesize; in amd_nand_decode_id()
Dnand_jedec.c100 memorg->pagesize = le32_to_cpu(p->byte_per_page); in nand_jedec_detect()
101 mtd->writesize = memorg->pagesize; in nand_jedec_detect()
106 mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize; in nand_jedec_detect()
/Linux-v6.6/arch/loongarch/lib/
Ddump_tlb.c34 unsigned int pagesize, c0, c1, i; in dump_tlb() local
47 pagesize = read_csr_pagesize(); in dump_tlb()
67 pr_info("Index: %4d pgsize=0x%x ", i, (1 << pagesize)); in dump_tlb()
/Linux-v6.6/drivers/iommu/amd/
Damd_iommu_types.h337 #define PAGE_SIZE_LEVEL(pagesize) \ argument
338 ((__ffs(pagesize) - 12) / 9)
343 #define PAGE_SIZE_PTE_COUNT(pagesize) \ argument
344 (1ULL << ((__ffs(pagesize) - 12) % 9))
350 #define PAGE_SIZE_ALIGN(address, pagesize) \ argument
351 ((address) & ~((pagesize) - 1))
357 #define PAGE_SIZE_PTE(address, pagesize) \ argument
358 (((address) | ((pagesize) - 1)) & \
359 (~(pagesize >> 1)) & PM_ADDR_MASK)
/Linux-v6.6/include/linux/mtd/
Dnand.h31 unsigned int pagesize; member
44 .pagesize = (ps), \
485 return nand->memorg.pagesize; in nanddev_page_size()
534 return nand->memorg.pagesize * nand->memorg.pages_per_eraseblock; in nanddev_eraseblock_size()
572 nand->memorg.pagesize; in nanddev_target_size()
753 pageoffs = do_div(tmp, nand->memorg.pagesize); in nanddev_offs_to_pos()
813 return (loff_t)npages * nand->memorg.pagesize; in nanddev_pos_to_offs()
934 nand->memorg.pagesize - iter->req.dataoffs, in nanddev_io_iter_init()
959 iter->req.datalen = min_t(unsigned int, nand->memorg.pagesize, in nanddev_io_iter_next_page()
/Linux-v6.6/drivers/mtd/devices/
Dmtd_dataflash.c622 int pagesize, int pageoffset, char revision) in add_dataflash_otp() argument
636 priv->page_size = pagesize; in add_dataflash_otp()
646 device->size = nr_pages * pagesize; in add_dataflash_otp()
647 device->erasesize = pagesize; in add_dataflash_otp()
648 device->writesize = pagesize; in add_dataflash_otp()
664 pagesize, otp_tag); in add_dataflash_otp()
679 int nr_pages, int pagesize, int pageoffset) in add_dataflash() argument
681 return add_dataflash_otp(spi, name, nr_pages, pagesize, in add_dataflash()
695 u16 pagesize; member
863 info->pagesize, info->pageoffset, in dataflash_probe()
/Linux-v6.6/drivers/net/ethernet/ibm/ehea/
Dehea_qmr.c29 queue->current_q_offset += queue->pagesize; in hw_qpageit_get_inc()
31 queue->current_q_offset -= queue->pagesize; in hw_qpageit_get_inc()
41 const u32 pagesize, const u32 qe_size) in hw_queue_ctor() argument
43 int pages_per_kpage = PAGE_SIZE / pagesize; in hw_queue_ctor()
46 if ((pagesize > PAGE_SIZE) || (!pages_per_kpage)) { in hw_queue_ctor()
48 (int)PAGE_SIZE, (int)pagesize); in hw_queue_ctor()
52 queue->queue_length = nr_of_pages * pagesize; in hw_queue_ctor()
70 kpage += pagesize; in hw_queue_ctor()
77 queue->pagesize = pagesize; in hw_queue_ctor()
98 pages_per_kpage = PAGE_SIZE / queue->pagesize; in hw_queue_dtor()
[all …]
/Linux-v6.6/drivers/mtd/nand/
Dcore.c363 if (!memorg->bits_per_cell || !memorg->pagesize || in nanddev_init()
379 mtd->erasesize = memorg->pagesize * memorg->pages_per_eraseblock; in nanddev_init()
380 mtd->writesize = memorg->pagesize; in nanddev_init()
381 mtd->writebufsize = memorg->pagesize; in nanddev_init()
/Linux-v6.6/arch/arm/boot/dts/intel/socfpga/
Dsocfpga_cyclone5_vining_fpga.dts140 pagesize = <8>;
192 pagesize = <8>;
203 pagesize = <8>;
216 pagesize = <8>;

12345678910>>...14