Lines Matching refs:page_size

190 		page_size = default_huge_page_size();  in uffd_setup_environment()
192 page_size = psize(); in uffd_setup_environment()
194 nr_pages = UFFD_TEST_MEM_SIZE / page_size; in uffd_setup_environment()
318 if (test_pin && pin_pages(&args, area_dst, page_size)) in pagemap_test_fork()
356 if (uffd_register(uffd, area_dst, nr_pages * page_size, in uffd_wp_unpopulated_test()
363 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_unpopulated_test()
368 wp_range(uffd, (uint64_t)area_dst, page_size, false); in uffd_wp_unpopulated_test()
373 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_unpopulated_test()
374 if (madvise(area_dst, page_size, MADV_DONTNEED)) in uffd_wp_unpopulated_test()
384 if (madvise(area_dst, page_size, MADV_DONTNEED)) in uffd_wp_unpopulated_test()
388 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_unpopulated_test()
391 if (madvise(area_dst, page_size, MADV_DONTNEED)) in uffd_wp_unpopulated_test()
403 if (uffd_register(uffd, area_dst, nr_pages * page_size, in uffd_wp_fork_test_common()
411 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_fork_test_common()
432 if (madvise(area_dst, page_size, MADV_DONTNEED)) in uffd_wp_fork_test_common()
439 madvise(area_dst, page_size, MADV_PAGEOUT); in uffd_wp_fork_test_common()
452 wp_range(uffd, (uint64_t)area_dst, page_size, false); in uffd_wp_fork_test_common()
462 if (uffd_unregister(uffd, area_dst, nr_pages * page_size)) in uffd_wp_fork_test_common()
483 if (uffd_register(uffd, area_dst, page_size, false, true, false)) in uffd_wp_fork_pin_test_common()
490 wp_range(uffd, (uint64_t)area_dst, page_size, true); in uffd_wp_fork_pin_test_common()
496 if (pin_pages(&pin_args, area_dst, page_size)) { in uffd_wp_fork_pin_test_common()
500 uffd_unregister(uffd, area_dst, page_size); in uffd_wp_fork_pin_test_common()
524 if (uffd_unregister(uffd, area_dst, page_size)) in uffd_wp_fork_pin_test_common()
546 for (j = 0; j < page_size; j++) { in check_memory_contents()
547 uint8_t v = *(uint8_t *)(p + (i * page_size) + j); in check_memory_contents()
567 if (uffd_register(uffd, area_dst_alias, nr_pages * page_size, in uffd_minor_test_common()
577 memset(area_dst + (p * page_size), p % ((uint8_t)-1), in uffd_minor_test_common()
578 page_size); in uffd_minor_test_common()
598 if (madvise(area_dst_alias, nr_pages * page_size, in uffd_minor_test_common()
606 nr_pages * page_size / in uffd_minor_test_common()
691 unsigned long offset = nr * page_size; in faulting_process()
711 page_size, false); in faulting_process()
734 area_dst = mremap(area_dst, nr_pages * page_size, nr_pages * page_size, in faulting_process()
757 for (i = 0; i < page_size; i++) in faulting_process()
758 if (*(area_dst + nr * page_size + i) != 0) in faulting_process()
775 if (uffd_register(uffd, area_dst, nr_pages * page_size, in uffd_sigbus_test_common()
828 if (uffd_register(uffd, area_dst, nr_pages * page_size, in uffd_events_test_common()
890 uffdio_zeropage.range.len = page_size; in do_uffdio_zeropage()
901 if (res != page_size) in do_uffdio_zeropage()
935 has_zeropage = uffd_register_detect_zeropage(uffd, area_dst, page_size); in uffd_zeropage_test()
938 uffd_register_detect_zeropage(uffd, area_dst_alias, page_size); in uffd_zeropage_test()
941 for (i = 0; i < page_size; i++) in uffd_zeropage_test()
945 if (uffd_unregister(uffd, area_dst, page_size)) in uffd_zeropage_test()
948 if (area_dst_alias && uffd_unregister(uffd, area_dst_alias, page_size)) in uffd_zeropage_test()
974 uffdio_poison.range.len = page_size; in do_uffdio_poison()
981 else if (res != page_size) in do_uffdio_poison()
998 offset &= ~(page_size-1); in uffd_poison_handle_fault()
1001 if (offset & page_size) in uffd_poison_handle_fault()
1018 uffd_register_poison(uffd, area_dst, nr_pages * page_size); in uffd_poison_test()
1019 memset(area_src, 0, nr_pages * page_size); in uffd_poison_test()
1032 unsigned long offset = nr * page_size; in uffd_poison_test()
1046 for (i = bytes; i < bytes + page_size; ++i) { in uffd_poison_test()
1076 ret = uffd_register_with_ioctls(uffd, area_dst, page_size, in do_register_ioctls_test()
1107 if (uffd_unregister(uffd, area_dst, page_size)) in do_register_ioctls_test()