Home
last modified time | relevance | path

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

12345678910>>...13

/linux-6.3-rc2/tools/testing/selftests/mm/
A Dsoft-dirty.c20 map = aligned_alloc(pagesize, pagesize); in test_simple()
61 munmap(map, pagesize); in test_vma_reuse()
74 munmap(map2, pagesize); in test_vma_reuse()
143 ftruncate(test_fd, pagesize); in test_mprotect()
158 mprotect(map, pagesize, PROT_READ); in test_mprotect()
171 munmap(map, pagesize); in test_mprotect()
190 int pagesize; in main() local
199 pagesize = getpagesize(); in main()
201 test_simple(pagemap_fd, pagesize); in main()
202 test_vma_reuse(pagemap_fd, pagesize); in main()
[all …]
A Dmadv_populate.c35 static size_t pagesize; variable
42 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support()
55 munmap(addr, pagesize); in sense_support()
111 ret = munmap(addr + pagesize, pagesize); in test_holes()
132 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_READ); in test_holes()
135 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_WRITE); in test_holes()
149 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_populated()
163 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_not_populated()
221 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_softdirty()
235 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_not_softdirty()
[all …]
A Dsplit_huge_page_test.c21 uint64_t pagesize; variable
178 pte_mapped = mremap(one_page, pagesize, pagesize, MREMAP_MAYMOVE); 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()
300 pagesize = getpagesize(); in main()
[all …]
A Dcow.c40 static size_t pagesize; variable
64 if (size < pagesize) in detect_thpsize()
128 for (; size; addr += pagesize, size -= pagesize) in range_is_swapped()
843 ret = mprotect(mem + pagesize, pagesize, PROT_READ); in do_run_with_thp()
848 ret = mprotect(mem + pagesize, pagesize, PROT_READ | PROT_WRITE); in do_run_with_thp()
860 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTNEED); in do_run_with_thp()
865 size = pagesize; in do_run_with_thp()
893 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTFORK); in do_run_with_thp()
907 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DOFORK); in do_run_with_thp()
1212 ret = mprotect(mem + pagesize, pagesize, PROT_READ); in do_test_anon_thp_collapse()
[all …]
A Dksm_functional_tests.c31 static size_t pagesize; variable
42 for (offs_a = 0; offs_a < size; offs_a += pagesize) { in range_maps_duplicates()
48 for (offs_b = offs_a + pagesize; offs_b < size; in range_maps_duplicates()
49 offs_b += pagesize) { in range_maps_duplicates()
256 pagesize = getpagesize(); in main()
/linux-6.3-rc2/drivers/misc/sgi-gru/
A 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()
A 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);
A Dgrutlbpurge.c152 int grupagesize, pagesize, pageshift, gid, asid; in gru_flush_tlb_range() local
156 pagesize = (1UL << pageshift); in gru_flush_tlb_range()
158 num = min(((len + pagesize - 1) >> pageshift), GRUMAXINVAL); in gru_flush_tlb_range()
/linux-6.3-rc2/drivers/usb/storage/
A Dalauda.c752 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_read_block() local
760 int dest_offset = i * pagesize; in alauda_read_block()
761 int src_offset = i * (pagesize + 64); in alauda_read_block()
811 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_write_lba() local
854 cptr = bptr + pagesize; in alauda_write_lba()
875 cptr = bptr + pagesize; in alauda_write_lba()
876 memcpy(bptr, xptr, pagesize); in alauda_write_lba()
877 xptr += pagesize; in alauda_write_lba()
916 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_read_data() local
1010 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_write_data() local
[all …]
/linux-6.3-rc2/tools/testing/selftests/powerpc/tm/
A 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-6.3-rc2/arch/mips/dec/prom/
A 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-6.3-rc2/arch/arm/boot/dts/
A Daspeed-bmc-inventec-transformers.dts134 pagesize = <128>;
177 pagesize = <128>;
183 pagesize = <128>;
229 pagesize = <128>;
241 pagesize = <128>;
253 pagesize = <128>;
A Dsocfpga_cyclone5_vining_fpga.dts140 pagesize = <8>;
192 pagesize = <8>;
203 pagesize = <8>;
216 pagesize = <8>;
/linux-6.3-rc2/drivers/iommu/amd/
A Damd_iommu_types.h328 #define PAGE_SIZE_LEVEL(pagesize) \ argument
329 ((__ffs(pagesize) - 12) / 9)
334 #define PAGE_SIZE_PTE_COUNT(pagesize) \ argument
335 (1ULL << ((__ffs(pagesize) - 12) % 9))
341 #define PAGE_SIZE_ALIGN(address, pagesize) \ argument
342 ((address) & ~((pagesize) - 1))
348 #define PAGE_SIZE_PTE(address, pagesize) \ argument
349 (((address) | ((pagesize) - 1)) & \
350 (~(pagesize >> 1)) & PM_ADDR_MASK)
/linux-6.3-rc2/arch/arm64/mm/
A 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()
398 size_t pagesize = 1UL << shift; in arch_make_huge_pte() local
401 if (pagesize == CONT_PTE_SIZE) { in arch_make_huge_pte()
403 } else if (pagesize == CONT_PMD_SIZE) { in arch_make_huge_pte()
405 } else if (pagesize != PUD_SIZE && pagesize != PMD_SIZE) { in arch_make_huge_pte()
407 __func__, pagesize); in arch_make_huge_pte()
/linux-6.3-rc2/drivers/mtd/nand/raw/
A 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()
A Dnand_amd.c28 memorg->pagesize == 512) { in amd_nand_decode_id()
32 memorg->pagesize; in amd_nand_decode_id()
A Dnand_jedec.c97 memorg->pagesize = le32_to_cpu(p->byte_per_page); in nand_jedec_detect()
98 mtd->writesize = memorg->pagesize; in nand_jedec_detect()
103 mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize; in nand_jedec_detect()
A Dnand_hynix.c489 memorg->oobsize *= memorg->pagesize / SZ_8K; in hynix_nand_extract_oobsize()
631 memorg->pagesize = 2048 << (chip->id.data[3] & 0x03); in hynix_nand_decode_id()
632 mtd->writesize = memorg->pagesize; in hynix_nand_decode_id()
644 memorg->pagesize; in hynix_nand_decode_id()
648 memorg->pagesize; in hynix_nand_decode_id()
652 memorg->pagesize; in hynix_nand_decode_id()
/linux-6.3-rc2/arch/loongarch/lib/
A 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-6.3-rc2/include/linux/mtd/
A 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-6.3-rc2/drivers/mtd/devices/
A Dmtd_dataflash.c623 int pagesize, int pageoffset, char revision) in add_dataflash_otp() argument
637 priv->page_size = pagesize; in add_dataflash_otp()
647 device->size = nr_pages * pagesize; in add_dataflash_otp()
648 device->erasesize = pagesize; in add_dataflash_otp()
649 device->writesize = pagesize; in add_dataflash_otp()
665 pagesize, otp_tag); in add_dataflash_otp()
680 int nr_pages, int pagesize, int pageoffset) in add_dataflash() argument
682 return add_dataflash_otp(spi, name, nr_pages, pagesize, in add_dataflash()
696 u16 pagesize; member
864 info->pagesize, info->pageoffset, in dataflash_probe()
/linux-6.3-rc2/drivers/net/ethernet/ibm/ehea/
A 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-6.3-rc2/Documentation/devicetree/bindings/eeprom/
A Dat25.yaml47 pagesize:
97 Size of the eeprom page. Deprecated, use "pagesize" property instead.
116 - pagesize
137 pagesize = <64>;
/linux-6.3-rc2/drivers/mtd/nand/
A 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()

Completed in 52 milliseconds

12345678910>>...13