/linux-6.12.1/lib/ |
D | iov_iter.c | 984 size_t start, unsigned int maxpages) in want_pages_array() argument 988 if (count > maxpages) in want_pages_array() 989 count = maxpages; in want_pages_array() 1001 unsigned maxpages, size_t *_start_offset) in iter_folioq_get_pages() argument 1015 maxpages = want_pages_array(ppages, maxsize, iov_offset & ~PAGE_MASK, maxpages); in iter_folioq_get_pages() 1016 if (!maxpages) in iter_folioq_get_pages() 1035 maxpages--; in iter_folioq_get_pages() 1038 if (maxpages == 0 || extracted >= maxsize) in iter_folioq_get_pages() 1087 unsigned maxpages, size_t *_start_offset) in iter_xarray_get_pages() argument 1098 count = want_pages_array(pages, maxsize, offset, maxpages); in iter_xarray_get_pages() [all …]
|
/linux-6.12.1/fs/romfs/ |
D | mmap-nommu.c | 26 unsigned long isize, offset, maxpages, lpages; in romfs_get_unmapped_area() local 37 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in romfs_get_unmapped_area() 38 if ((pgoff >= maxpages) || (maxpages - pgoff < lpages)) in romfs_get_unmapped_area()
|
/linux-6.12.1/fs/ramfs/ |
D | file-nommu.c | 206 unsigned long maxpages, lpages, nr_folios, loop, ret, nr_pages, pfn; in ramfs_nommu_get_unmapped_area() local 216 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_get_unmapped_area() 217 if (pgoff >= maxpages) in ramfs_nommu_get_unmapped_area() 220 if (maxpages - pgoff < lpages) in ramfs_nommu_get_unmapped_area()
|
/linux-6.12.1/include/linux/ |
D | uio.h | 297 size_t maxsize, unsigned maxpages, size_t *start); 300 int iov_iter_npages(const struct iov_iter *i, int maxpages); 338 iov_iter_npages_cap(struct iov_iter *i, int maxpages, size_t max_bytes) in iov_iter_npages_cap() argument 347 npages = iov_iter_npages(i, maxpages); in iov_iter_npages_cap() 382 size_t maxsize, unsigned int maxpages,
|
/linux-6.12.1/mm/ |
D | swapfile.c | 3170 unsigned long maxpages; in read_swap_header() local 3200 maxpages = swapfile_maximum_size; in read_swap_header() 3206 if (last_page > maxpages) { in read_swap_header() 3208 K(maxpages), K(last_page)); in read_swap_header() 3210 if (maxpages > last_page) { in read_swap_header() 3211 maxpages = last_page + 1; in read_swap_header() 3213 if ((unsigned int)maxpages == 0) in read_swap_header() 3214 maxpages = UINT_MAX; in read_swap_header() 3216 si->highest_bit = maxpages - 1; in read_swap_header() 3218 if (!maxpages) in read_swap_header() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/hfi1/ |
D | user_exp_rcv.c | 602 int maxpages = pagecount; in find_phys_blocks() local 606 maxpages = in find_phys_blocks() 610 maxpages = in find_phys_blocks() 615 list[setcount].count = maxpages; in find_phys_blocks() 616 pagecount -= maxpages; in find_phys_blocks() 617 pageidx += maxpages; in find_phys_blocks()
|
D | tid_rdma.c | 921 int maxpages = pagecount; in tid_rdma_find_phys_blocks_4k() local 925 maxpages = in tid_rdma_find_phys_blocks_4k() 929 maxpages = in tid_rdma_find_phys_blocks_4k() 934 list[setcount].count = maxpages; in tid_rdma_find_phys_blocks_4k() 938 pagecount -= maxpages; in tid_rdma_find_phys_blocks_4k() 939 pageidx += maxpages; in tid_rdma_find_phys_blocks_4k() 980 u32 maxpages = pages; in tid_flush_pages() local 982 if (maxpages > MAX_EXPECTED_PAGES) in tid_flush_pages() 983 maxpages = MAX_EXPECTED_PAGES; in tid_flush_pages() 984 else if (!is_power_of_2(maxpages)) in tid_flush_pages() [all …]
|
/linux-6.12.1/include/rdma/ |
D | rw.h | 68 unsigned int maxpages);
|
/linux-6.12.1/fs/orangefs/ |
D | inode.c | 81 int maxpages; member 197 if (ow->npages == ow->maxpages) { in orangefs_writepages_callback() 214 ow->maxpages = orangefs_bufmap_size_query()/PAGE_SIZE; in orangefs_writepages() 215 ow->pages = kcalloc(ow->maxpages, sizeof(struct page *), GFP_KERNEL); in orangefs_writepages() 220 ow->bv = kcalloc(ow->maxpages, sizeof(struct bio_vec), GFP_KERNEL); in orangefs_writepages()
|
/linux-6.12.1/fs/erofs/ |
D | zdata.c | 133 unsigned int maxpages; member 137 #define _PCLP(n) { .maxpages = n } 247 size = struct_size(a, compressed_bvecs, pcs->maxpages); in z_erofs_create_pcluster_pool() 249 sprintf(pcs->name, "erofs_pcluster-%u", pcs->maxpages); in z_erofs_create_pcluster_pool() 269 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster() 289 if (pclusterpages > pcs->maxpages) in z_erofs_free_pcluster()
|
/linux-6.12.1/net/core/ |
D | skmsg.c | 314 int i, maxpages, ret = 0, num_elems = sk_msg_elem_used(msg); in sk_msg_zerocopy_from_iter() local 322 maxpages = to_max_pages - num_elems; in sk_msg_zerocopy_from_iter() 323 if (maxpages == 0) { in sk_msg_zerocopy_from_iter() 328 copied = iov_iter_get_pages2(from, pages, bytes, maxpages, in sk_msg_zerocopy_from_iter()
|
/linux-6.12.1/drivers/infiniband/core/ |
D | rw.c | 642 unsigned int maxpages) in rdma_rw_mr_factor() argument 650 return DIV_ROUND_UP(maxpages, mr_pages); in rdma_rw_mr_factor()
|
/linux-6.12.1/net/tls/ |
D | tls_sw.c | 1369 int rc = 0, i = 0, num_elem = *pages_used, maxpages; in tls_setup_from_iter() local 1377 maxpages = to_max_pages - num_elem; in tls_setup_from_iter() 1378 if (maxpages == 0) { in tls_setup_from_iter() 1384 maxpages, &offset); in tls_setup_from_iter()
|