Searched refs:npages (Results 1 – 5 of 5) sorted by relevance
/lib/ |
D | kunit_iov_iter.c | 49 size_t npages) in iov_kunit_create_buffer() argument 55 pages = kunit_kcalloc(test, npages, sizeof(struct page *), GFP_KERNEL); in iov_kunit_create_buffer() 59 got = alloc_pages_bulk_array(GFP_KERNEL, npages, pages); in iov_kunit_create_buffer() 60 if (got != npages) { in iov_kunit_create_buffer() 62 KUNIT_ASSERT_EQ(test, got, npages); in iov_kunit_create_buffer() 65 buffer = vmap(pages, npages, VM_MAP | VM_MAP_PUT_PAGES, PAGE_KERNEL); in iov_kunit_create_buffer() 105 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_kvec() local 109 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_to_kvec() 111 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_to_kvec() 115 buffer = iov_kunit_create_buffer(test, &bpages, npages); in iov_kunit_copy_to_kvec() [all …]
|
D | test_hmm.c | 390 unsigned long size = cmd->npages << PAGE_SHIFT; in dmirror_read() 456 unsigned long size = cmd->npages << PAGE_SHIFT; in dmirror_write() 781 unsigned long size = cmd->npages << PAGE_SHIFT; in dmirror_exclusive() 892 for (i = 0; i < migrate->npages; i++) { in dmirror_successful_migrated_pages() 904 unsigned long size = cmd->npages << PAGE_SHIFT; in dmirror_migrate_to_system() 964 unsigned long size = cmd->npages << PAGE_SHIFT; in dmirror_migrate_to_device() 1169 unsigned long size = cmd->npages << PAGE_SHIFT; in dmirror_snapshot() 1224 unsigned long npages = end_pfn - start_pfn + 1; in dmirror_device_evict_chunk() local 1229 src_pfns = kvcalloc(npages, sizeof(*src_pfns), GFP_KERNEL | __GFP_NOFAIL); in dmirror_device_evict_chunk() 1230 dst_pfns = kvcalloc(npages, sizeof(*dst_pfns), GFP_KERNEL | __GFP_NOFAIL); in dmirror_device_evict_chunk() [all …]
|
D | test_hmm_uapi.h | 26 __u64 npages; member
|
D | iov_iter.c | 1260 int npages = 0; in iov_npages() local 1268 npages += DIV_ROUND_UP(offs + len, PAGE_SIZE); in iov_npages() 1269 if (unlikely(npages > maxpages)) in iov_npages() 1273 return npages; in iov_npages() 1280 int npages = 0; in bvec_npages() local 1287 npages += DIV_ROUND_UP(offs + len, PAGE_SIZE); in bvec_npages() 1288 if (unlikely(npages > maxpages)) in bvec_npages() 1291 return npages; in bvec_npages() 1300 int npages = DIV_ROUND_UP(offs + i->count, PAGE_SIZE); in iov_iter_npages() local 1301 return min(npages, maxpages); in iov_iter_npages() [all …]
|
D | scatterlist.c | 1115 unsigned int npages; in extract_user_to_sg() local 1133 npages = DIV_ROUND_UP(off + len, PAGE_SIZE); in extract_user_to_sg() 1134 sg_max -= npages; in extract_user_to_sg() 1136 for (; npages > 0; npages--) { in extract_user_to_sg()
|