/linux/tools/testing/selftests/vm/ |
A D | madv_populate.c | 27 static size_t pagesize; variable 61 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support() 74 munmap(addr, pagesize); in sense_support() 130 ret = munmap(addr + pagesize, pagesize); in test_holes() 151 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_READ); in test_holes() 154 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_WRITE); in test_holes() 168 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_populated() 182 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_not_populated() 240 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_softdirty() 254 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_not_softdirty() [all …]
|
A D | split_huge_page_test.c | 20 uint64_t pagesize; variable 259 pte_mapped = mremap(one_page, pagesize, pagesize, MREMAP_MAYMOVE); in split_pte_mapped_thp() 264 pagesize, pagesize, in split_pte_mapped_thp() 266 pte_mapped + pagesize * i); in split_pte_mapped_thp() 275 for (i = 0; i < pagesize * 4; i++) in split_pte_mapped_thp() 276 if (i % pagesize == 0 && in split_pte_mapped_thp() 287 (uint64_t)pte_mapped + pagesize * 4); in split_pte_mapped_thp() 291 for (i = 0; i < pagesize * 4; i++) { in split_pte_mapped_thp() 296 if (i % pagesize == 0 && in split_pte_mapped_thp() 381 pagesize = getpagesize(); in main() [all …]
|
/linux/drivers/misc/sgi-gru/ |
A 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()
|
A 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);
|
A 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/drivers/usb/storage/ |
A D | alauda.c | 750 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_read_block() local 758 int dest_offset = i * pagesize; in alauda_read_block() 759 int src_offset = i * (pagesize + 64); in alauda_read_block() 809 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_write_lba() local 852 cptr = bptr + pagesize; in alauda_write_lba() 873 cptr = bptr + pagesize; in alauda_write_lba() 874 memcpy(bptr, xptr, pagesize); in alauda_write_lba() 875 xptr += pagesize; in alauda_write_lba() 914 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_read_data() local 1008 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_write_data() local [all …]
|
A D | sddr09.c | 249 int pagesize; /* Size of page in bytes */ member 755 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_read_data() 900 cptr = bptr + info->pagesize; in sddr09_write_lba() 907 nand_compute_ecc(bptr+(info->pagesize / 2), ecc); in sddr09_write_lba() 921 cptr = bptr + info->pagesize; in sddr09_write_lba() 922 memcpy(bptr, xptr, info->pagesize); in sddr09_write_lba() 923 xptr += info->pagesize; in sddr09_write_lba() 926 nand_compute_ecc(bptr+(info->pagesize / 2), ecc); in sddr09_write_lba() 1000 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_write_data() 1602 info->pagesize = (1 << info->pageshift); in sddr09_transport() [all …]
|
/linux/tools/testing/selftests/powerpc/tm/ |
A 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/arch/arm64/mm/ |
A D | hugetlbpage.c | 62 size_t pagesize = huge_page_size(h); in arch_hugetlb_migration_supported() local 64 switch (pagesize) { in arch_hugetlb_migration_supported() 75 __func__, pagesize); in arch_hugetlb_migration_supported() 348 size_t pagesize = 1UL << shift; in arch_make_huge_pte() local 350 if (pagesize == CONT_PTE_SIZE) { in arch_make_huge_pte() 352 } else if (pagesize == CONT_PMD_SIZE) { in arch_make_huge_pte() 354 } else if (pagesize != PUD_SIZE && pagesize != PMD_SIZE) { in arch_make_huge_pte() 356 __func__, pagesize); in arch_make_huge_pte()
|
/linux/drivers/iommu/amd/ |
A D | amd_iommu_types.h | 316 #define PAGE_SIZE_LEVEL(pagesize) \ argument 317 ((__ffs(pagesize) - 12) / 9) 322 #define PAGE_SIZE_PTE_COUNT(pagesize) \ argument 323 (1ULL << ((__ffs(pagesize) - 12) % 9)) 329 #define PAGE_SIZE_ALIGN(address, pagesize) \ argument 330 ((address) & ~((pagesize) - 1)) 336 #define PAGE_SIZE_PTE(address, pagesize) \ argument 337 (((address) | ((pagesize) - 1)) & \ 338 (~(pagesize >> 1)) & PM_ADDR_MASK)
|
/linux/arch/mips/dec/prom/ |
A 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/arch/arm/boot/dts/ |
A D | aspeed-bmc-inventec-transformers.dts | 134 pagesize = <128>; 177 pagesize = <128>; 183 pagesize = <128>; 229 pagesize = <128>; 241 pagesize = <128>; 253 pagesize = <128>;
|
A D | socfpga_cyclone5_vining_fpga.dts | 140 pagesize = <8>; 192 pagesize = <8>; 203 pagesize = <8>; 216 pagesize = <8>;
|
/linux/include/linux/mtd/ |
A D | nand.h | 31 unsigned int pagesize; member 44 .pagesize = (ps), \ 441 return nand->memorg.pagesize; in nanddev_page_size() 490 return nand->memorg.pagesize * nand->memorg.pages_per_eraseblock; in nanddev_eraseblock_size() 528 nand->memorg.pagesize; in nanddev_target_size() 709 pageoffs = do_div(tmp, nand->memorg.pagesize); in nanddev_offs_to_pos() 769 return (loff_t)npages * nand->memorg.pagesize; in nanddev_pos_to_offs() 890 nand->memorg.pagesize - iter->req.dataoffs, in nanddev_io_iter_init() 915 iter->req.datalen = min_t(unsigned int, nand->memorg.pagesize, in nanddev_io_iter_next_page()
|
/linux/drivers/mtd/nand/raw/ |
A 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()
|
A 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()
|
A D | nand_amd.c | 28 memorg->pagesize == 512) { in amd_nand_decode_id() 32 memorg->pagesize; in amd_nand_decode_id()
|
A 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/drivers/mtd/devices/ |
A D | mtd_dataflash.c | 623 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/drivers/net/ethernet/ibm/ehea/ |
A 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/Documentation/devicetree/bindings/eeprom/ |
A D | at25.yaml | 49 pagesize: 99 Size of the eeprom page. Deprecated, use "pagesize" property instead. 116 - pagesize 137 pagesize = <64>;
|
/linux/drivers/mtd/nand/ |
A D | core.c | 357 if (!memorg->bits_per_cell || !memorg->pagesize || in nanddev_init() 373 mtd->erasesize = memorg->pagesize * memorg->pages_per_eraseblock; in nanddev_init() 374 mtd->writesize = memorg->pagesize; in nanddev_init() 375 mtd->writebufsize = memorg->pagesize; in nanddev_init()
|
/linux/arch/arm64/boot/dts/freescale/ |
A D | imx8mm-venice-gw700x.dtsi | 253 pagesize = <16>; 259 pagesize = <16>; 265 pagesize = <16>; 271 pagesize = <16>; 375 pagesize = <32>;
|
/linux/arch/alpha/boot/ |
A D | bootp.c | 153 if (INIT_HWRPB->pagesize != 8192) { in start_kernel() 155 INIT_HWRPB->pagesize >> 10); in start_kernel()
|
A 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()
|