Searched refs:nr_pages (Results 1 – 9 of 9) sorted by relevance
/tools/testing/selftests/vm/ |
D | userfaultfd.c | 66 static unsigned long nr_cpus, nr_pages, nr_pages_per_cpu, page_size; variable 208 if (madvise(rel_area, nr_pages * page_size, MADV_DONTNEED)) in anon_release_pages() 214 *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, in anon_allocate_area() 230 rel_area == huge_fd_off0 ? 0 : nr_pages * page_size, in hugetlb_release_pages() 231 nr_pages * page_size)) in hugetlb_release_pages() 240 *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, in hugetlb_allocate_area() 245 *alloc_area == area_src ? 0 : nr_pages * page_size); in hugetlb_allocate_area() 250 area_alias = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, in hugetlb_allocate_area() 253 nr_pages * page_size); in hugetlb_allocate_area() 283 if (madvise(rel_area, nr_pages * page_size, MADV_REMOVE)) in shmem_release_pages() [all …]
|
D | transhuge-stress.c | 104 int nr_succeed = 0, nr_failed = 0, nr_pages = 0; in main() local 128 nr_pages++; in main() 142 nr_succeed, nr_failed, nr_pages); in main()
|
D | gup_test.c | 87 int filed, i, opt, nr_pages = 1, thp = -1, write = 1, nthreads = 1, ret; in main() local 133 nr_pages = atoi(optarg); in main() 202 gup.nr_pages_per_call = nr_pages; in main()
|
/tools/testing/nvdimm/ |
D | pmem-dax.c | 11 long nr_pages, void **kaddr, pfn_t *pfn) in __pmem_direct_access() argument 16 PFN_PHYS(nr_pages)))) in __pmem_direct_access() 47 return nr_pages; in __pmem_direct_access()
|
/tools/vm/ |
D | page-types.c | 203 static unsigned long nr_pages[HASH_SIZE]; variable 437 for (i = 0; i < ARRAY_SIZE(nr_pages); i++) { in show_summary() 438 if (nr_pages[i]) in show_summary() 441 nr_pages[i], in show_summary() 442 pages2mb(nr_pages[i]), in show_summary() 658 nr_pages[hash_slot(flags)]++; in add_page() 722 nr_pages[hash_slot(flags)]++; in walk_swap() 976 unsigned long nr_pages, pfn, i; in walk_file() local 986 nr_pages = (end - off + page_size - 1) / page_size; in walk_file() 987 if (nr_pages > PAGEMAP_BATCH) in walk_file() [all …]
|
/tools/cgroup/ |
D | memcg_slabinfo.py | 72 nr_pages = 0 75 nr_pages += fn(page) 76 return nr_pages
|
/tools/testing/radix-tree/ |
D | regression1.c | 80 unsigned int nr_pages, struct page **pages) in find_get_pages() argument
|
/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 146 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages);
|
/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 1296 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages) in vm_vaddr_alloc_pages() argument 1298 return vm_vaddr_alloc(vm, nr_pages * getpagesize(), KVM_UTIL_MIN_VADDR); in vm_vaddr_alloc_pages()
|