/linux-6.1.9/tools/testing/selftests/vm/ |
D | soft-dirty.c | 15 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 124 static void test_mprotect(int pagemap_fd, int pagesize, bool anon) in test_mprotect() argument 132 map = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, in test_mprotect() [all …]
|
D | madv_populate.c | 28 static size_t pagesize; variable 43 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support() 48 ret = madvise(addr, pagesize, MADV_POPULATE_READ); in sense_support() 52 ret = madvise(addr, pagesize, MADV_POPULATE_WRITE); in sense_support() 56 munmap(addr, pagesize); in sense_support() 112 ret = munmap(addr + pagesize, pagesize); in test_holes() 125 ret = madvise(addr, 2 * pagesize, MADV_POPULATE_READ); in test_holes() 128 ret = madvise(addr, 2 * pagesize, MADV_POPULATE_WRITE); in test_holes() 133 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_READ); in test_holes() 136 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_WRITE); in test_holes() [all …]
|
D | split_huge_page_test.c | 21 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 …]
|
/linux-6.1.9/drivers/misc/sgi-gru/ |
D | gruhandles.c | 141 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()
|
D | gruhandles.h | 204 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);
|
D | grutlbpurge.c | 152 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.1.9/drivers/usb/storage/ |
D | alauda.c | 87 unsigned int pagesize; /* page size in bytes */ member 430 MEDIA_INFO(us).pagesize = 1 << media_info->pageshift; in alauda_init_media() 739 data, (MEDIA_INFO(us).pagesize + 64) * pages, NULL); in alauda_read_block_raw() 752 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() 762 memmove(data + dest_offset, data + src_offset, pagesize); in alauda_read_block() 790 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block() 811 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_write_lba() local 844 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba() [all …]
|
/linux-6.1.9/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-pagefault.c | 52 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.1.9/arch/mips/dec/prom/ |
D | memory.c | 73 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.1.9/arch/arm/boot/dts/ |
D | aspeed-bmc-inventec-transformers.dts | 134 pagesize = <128>; 177 pagesize = <128>; 183 pagesize = <128>; 229 pagesize = <128>; 241 pagesize = <128>; 253 pagesize = <128>;
|
D | socfpga_cyclone5_vining_fpga.dts | 140 pagesize = <8>; 192 pagesize = <8>; 203 pagesize = <8>; 216 pagesize = <8>;
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | nand_samsung.c | 26 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()
|
D | nand_amd.c | 28 memorg->pagesize == 512) { in amd_nand_decode_id() 32 memorg->pagesize; in amd_nand_decode_id()
|
D | nand_jedec.c | 98 memorg->pagesize = le32_to_cpu(p->byte_per_page); in nand_jedec_detect() 99 mtd->writesize = memorg->pagesize; in nand_jedec_detect() 104 mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize; in nand_jedec_detect()
|
D | nand_hynix.c | 489 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.1.9/drivers/iommu/amd/ |
D | amd_iommu_types.h | 328 #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.1.9/arch/arm64/mm/ |
D | hugetlbpage.c | 78 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.1.9/arch/loongarch/lib/ |
D | dump_tlb.c | 34 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.1.9/include/linux/mtd/ |
D | nand.h | 31 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.1.9/drivers/mtd/devices/ |
D | mtd_dataflash.c | 630 int pagesize, int pageoffset, char revision) in add_dataflash_otp() argument 644 priv->page_size = pagesize; in add_dataflash_otp() 654 device->size = nr_pages * pagesize; in add_dataflash_otp() 655 device->erasesize = pagesize; in add_dataflash_otp() 656 device->writesize = pagesize; in add_dataflash_otp() 672 pagesize, otp_tag); in add_dataflash_otp() 687 int nr_pages, int pagesize, int pageoffset) in add_dataflash() argument 689 return add_dataflash_otp(spi, name, nr_pages, pagesize, in add_dataflash() 703 u16 pagesize; member 871 info->pagesize, info->pageoffset, in dataflash_probe()
|
/linux-6.1.9/drivers/net/ethernet/ibm/ehea/ |
D | ehea_qmr.c | 29 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.1.9/Documentation/devicetree/bindings/eeprom/ |
D | at25.yaml | 47 pagesize: 97 Size of the eeprom page. Deprecated, use "pagesize" property instead. 115 - pagesize 136 pagesize = <64>;
|
/linux-6.1.9/drivers/mtd/nand/ |
D | core.c | 364 if (!memorg->bits_per_cell || !memorg->pagesize || in nanddev_init() 380 mtd->erasesize = memorg->pagesize * memorg->pages_per_eraseblock; in nanddev_init() 381 mtd->writesize = memorg->pagesize; in nanddev_init() 382 mtd->writebufsize = memorg->pagesize; in nanddev_init()
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | intel_memory_region.c | 37 u8 __iomem *va, int pagesize, in __iopagetest() argument 41 int byte = prandom_u32_max(pagesize); in __iopagetest() 44 memset_io(va, value, pagesize); /* or GPF! */ in __iopagetest() 49 result[2] = ioread8(va + pagesize - 1); in __iopagetest()
|
/linux-6.1.9/arch/alpha/boot/ |
D | main.c | 159 if (INIT_HWRPB->pagesize != 8192) { in start_kernel() 160 srm_printk("Expected 8kB pages, got %ldkB\n", INIT_HWRPB->pagesize >> 10); in start_kernel()
|