/openbmc/qemu/tests/tcg/multiarch/ |
H A D | test-mmap.c | 5 * this test program about the pagesize because getpagesize() will not reflect 6 * the -p choice. Simply pass one argument being the pagesize. 45 static unsigned int pagesize; variable 62 len = pagesize + (pagesize * i); in check_aligned_anonymous_unfixed_mmaps() 75 * Make sure we get pages aligned with the pagesize. The in check_aligned_anonymous_unfixed_mmaps() 96 memcpy(dummybuf, p1, pagesize); in check_aligned_anonymous_unfixed_mmaps() 97 memcpy(dummybuf, p2, pagesize); in check_aligned_anonymous_unfixed_mmaps() 98 memcpy(dummybuf, p3, pagesize); in check_aligned_anonymous_unfixed_mmaps() 99 memcpy(dummybuf, p4, pagesize); in check_aligned_anonymous_unfixed_mmaps() 100 memcpy(dummybuf, p5, pagesize); in check_aligned_anonymous_unfixed_mmaps() [all …]
|
H A D | vma-pthread.c | 37 int pagesize; member 54 p = &ctx->ptr[j * ctx->pagesize]; in thread_read() 89 memcpy(&ctx->ptr[j * ctx->pagesize], nop_func, sizeof(nop_func)); in thread_write() 92 ts = (struct timespec *)(&ctx->ptr[(j + 1) * ctx->pagesize] - in thread_write() 111 ((void(*)(void))&ctx->ptr[j * ctx->pagesize])(); in thread_execute() 147 ret = mprotect(&ctx->ptr[start_idx * ctx->pagesize], in thread_mutate() 148 (end_idx - start_idx + 1) * ctx->pagesize, prot); in thread_mutate() 170 ctx.pagesize = getpagesize(); in main() 171 ctx.ptr = mmap(NULL, PAGE_COUNT * ctx.pagesize, in main() 176 memcpy(&ctx.ptr[i * ctx.pagesize], nop_func, sizeof(nop_func)); in main() [all …]
|
H A D | prot-none.c | 18 long pagesize = sysconf(_SC_PAGESIZE); in main() local 22 p = mmap(NULL, pagesize * 2, PROT_READ | PROT_WRITE, in main() 25 q = p + pagesize - 1; in main() 28 err = mprotect(p, pagesize * 2, PROT_NONE); in main() 33 err = mprotect(p, pagesize * 2, PROT_READ); in main()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A 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 84 ksft_exit_fail_msg("Reading PMD pagesize failed"); in test_hugepage() 127 static void test_mprotect(int pagemap_fd, int pagesize, bool anon) in test_mprotect() argument [all …]
|
H A D | madv_populate.c | 28 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 …]
|
H A D | mkdirty.c | 28 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 …]
|
H A D | split_huge_page_test.c | 21 uint64_t pagesize; variable 177 /* remap the first pagesize of first THP */ in split_pte_mapped_thp() 178 pte_mapped = mremap(one_page, pagesize, pagesize, MREMAP_MAYMOVE); in split_pte_mapped_thp() 180 /* remap the Nth pagesize of Nth THP */ 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() [all …]
|
H A D | cow.c | 33 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 …]
|
/openbmc/qemu/tests/tcg/multiarch/linux/ |
H A D | linux-madvise.c | 8 int pagesize = getpagesize(); in test_anonymous() local 12 page = mmap(NULL, pagesize, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_anonymous() 16 ret = mprotect(page, pagesize, PROT_READ | PROT_WRITE); in test_anonymous() 21 ret = madvise(page, pagesize, MADV_DONTNEED); in test_anonymous() 25 ret = munmap(page, pagesize); in test_anonymous() 32 int pagesize = getpagesize(); in test_file() local 45 ret = ftruncate(fd, pagesize); in test_file() 47 page = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE, fd, 0); in test_file() 51 ret = mprotect(page, pagesize, PROT_READ | PROT_WRITE); in test_file() 56 ret = madvise(page, pagesize, MADV_DONTNEED); in test_file() [all …]
|
/openbmc/linux/drivers/misc/sgi-gru/ |
H 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()
|
H A D | gruhandles.h | 204 unsigned int pagesize:5; member 291 unsigned int pagesize:5; member 343 /* GRU paddr shift for pfn. (NOTE: shift is NOT by actual pagesize) */ 482 * Convert a processor pagesize into the strange encoded pagesize used by the 483 * GRU. Processor pagesize is encoded as log of bytes per page. (or PAGE_SHIFT) 484 * pagesize log pagesize grupagesize 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);
|
/openbmc/openbmc/poky/meta/recipes-devtools/patchelf/patchelf/ |
H A D | 0002-align-startOffset-with-p_align-instead-of-pagesize-f.patch | 4 Subject: [PATCH] align startOffset with p_align instead of pagesize for 8 should satisfy (p_vaddr mod pagesize) == (p_offset mod pagesize). However, 36 + (p_vaddr mod pagesize) == (p_offset mod pagesize), so glibc is probably
|
H A D | 0003-make-LOAD-segment-extensions-based-on-p_align-instea.patch | 5 pagesize 7 Since the p_align of the LOAD segment is no longer pagesize, the actual p_align 10 If calculated with pagesize, new LOAD segment may be added even though the
|
/openbmc/u-boot/drivers/mtd/onenand/ |
H A D | onenand_spl.c | 82 enum onenand_spl_pagesize pagesize) in onenand_spl_read_page() argument 110 for (offset = 0; offset < pagesize; offset += 4) in onenand_spl_read_page() 173 enum onenand_spl_pagesize pagesize; in onenand_spl_load_image() local 176 pagesize = onenand_spl_get_geometry(); in onenand_spl_load_image() 182 if (pagesize == 2048) { in onenand_spl_load_image() 193 ret = onenand_spl_read_page(block, rpage, addr, pagesize); in onenand_spl_load_image() 197 addr += pagesize / 4; in onenand_spl_load_image()
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | mp.c | 179 u32 determine_mp_bootpg(unsigned int *pagesize) in determine_mp_bootpg() argument 193 if (pagesize) in determine_mp_bootpg() 194 *pagesize = 4096; in determine_mp_bootpg() 216 if (pagesize) in determine_mp_bootpg() 217 *pagesize = 8192; in determine_mp_bootpg() 249 static void plat_mp_up(unsigned long bootpg, unsigned int pagesize) in plat_mp_up() argument 271 /* pagesize is only 4K or 8K */ in plat_mp_up() 272 if (pagesize == 8192) in plat_mp_up() 328 static void plat_mp_up(unsigned long bootpg, unsigned int pagesize) in plat_mp_up() argument 420 u32 bootpg, bootpg_map, pagesize; in setup_mp() local [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/ |
H A D | fix-build-on-non-x86.patch | 12 + size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); 13 + if (cmsg_space >= pagesize) { 22 + size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); 23 + if (cmsg_space >= pagesize) {
|
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/ |
H A D | fix-build-on-non-x86.patch | 12 + size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); 13 + if (cmsg_space >= pagesize) { 22 + size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); 23 + if (cmsg_space >= pagesize) {
|
/openbmc/u-boot/arch/arm/mach-at91/arm926ejs/ |
H A D | eflash.c | 59 static u32 pagesize; variable 84 pagesize = readl(&eefc->frr); /* word 2 */ in flash_init() 87 debug("id=%08x size=%u pagesize=%u planes=%u planesize=%u\n", in flash_init() 88 id, size, pagesize, nplanes, planesize); in flash_init() 154 u32 pagenum = (info->start[sector]-ATMEL_BASE_FLASH)/pagesize; in flash_real_protect() 228 if (addr % pagesize) { in write_buff() 235 pagenum = (addr-ATMEL_BASE_FLASH)/pagesize; in write_buff() 239 i = pagesize / 4; in write_buff() 247 if (cnt > pagesize) in write_buff() 248 cnt -= pagesize; in write_buff()
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/templates/ |
H A D | detail_pagination_bottom.html | 29 <select class="pagesize form-control"> 45 pagesize = {{request.GET.count}}; 47 $('.pagesize option').prop('selected', false) 48 .filter('[value="' + pagesize + '"]') 51 $(".pagesize").change(function () {
|
H A D | basetable_bottom.html | 26 <select class="form-control pagesize"> 62 pagesize = {{request.GET.count}}; 65 $('.pagesize option').prop('selected', false) 66 .filter('[value="' + pagesize + '"]') 84 $(".pagesize").change(function () {
|
/openbmc/linux/drivers/usb/storage/ |
H A D | alauda.c | 87 unsigned int pagesize; /* page size in bytes */ member 433 MEDIA_INFO(us).pagesize = 1 << media_info->pageshift; in alauda_init_media() 729 * redundancy data. Returns (pagesize+64)*pages bytes in data. 748 data, (MEDIA_INFO(us).pagesize + 64) * pages, NULL); in alauda_read_block_raw() 753 * data. Returns pagesize*pages bytes in data. Note that data must be big enough 754 * to hold (pagesize+64)*pages bytes of data, but you can ignore those 'extra' 761 unsigned int pagesize = MEDIA_INFO(us).pagesize; in alauda_read_block() local 769 int dest_offset = i * pagesize; in alauda_read_block() 770 int src_offset = i * (pagesize + 64); in alauda_read_block() 771 memmove(data + dest_offset, data + src_offset, pagesize); in alauda_read_block() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/ |
H A D | 0009-mkbootimg-Add-dt-parameter-to-specify-DT-image.patch | 51 " [ --pagesize <pagesize> ]\n" 62 unsigned pagesize = 2048; 66 fprintf(stderr,"error: unsupported page size %d\n", pagesize); 101 if(write_padding(fd, pagesize, hdr.second_size)) goto fail; 106 + if(write_padding(fd, pagesize, hdr.dt_size)) goto fail;
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench/ |
H A D | fix-lmbench-memory-check-failure.patch | 150 size_t pagesize = getpagesize(); 161 + if (pagesize < MEMORY_SIZE_1MB) 175 + touchRange(where, range, pagesize); 178 + if ((time_each_page = sum * pagesize / range) < 1) 185 - touchRange(where, range, pagesize); 187 n = range / pagesize; 190 touchRange(where + range - incr, incr, pagesize); 195 touchRange(where, range, pagesize);
|
/openbmc/linux/drivers/net/ethernet/ibm/ehea/ |
H 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() 47 pr_err("pagesize conflict! kernel pagesize=%d, ehea pagesize=%d\n", 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() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nand_samsung.c | 25 /* Get pagesize */ in samsung_nand_decode_id() 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()
|