/linux-6.6.21/lib/ |
D | iov_iter.c | 990 size_t start, unsigned int maxpages) in want_pages_array() argument 994 if (count > maxpages) in want_pages_array() 995 count = maxpages; in want_pages_array() 1034 unsigned maxpages, size_t *_start_offset) in iter_xarray_get_pages() argument 1045 count = want_pages_array(pages, maxsize, offset, maxpages); in iter_xarray_get_pages() 1098 unsigned int maxpages, size_t *start) in __iov_iter_get_pages_alloc() argument 1121 n = want_pages_array(pages, maxsize, *start, maxpages); in __iov_iter_get_pages_alloc() 1136 n = want_pages_array(pages, maxsize, *start, maxpages); in __iov_iter_get_pages_alloc() 1153 return iter_xarray_get_pages(i, pages, maxsize, maxpages, start); in __iov_iter_get_pages_alloc() 1158 size_t maxsize, unsigned maxpages, size_t *start) in iov_iter_get_pages2() argument [all …]
|
/linux-6.6.21/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.6.21/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.6.21/include/linux/ |
D | uio.h | 288 size_t maxsize, unsigned maxpages, size_t *start); 291 int iov_iter_npages(const struct iov_iter *i, int maxpages); 329 iov_iter_npages_cap(struct iov_iter *i, int maxpages, size_t max_bytes) in iov_iter_npages_cap() argument 338 npages = iov_iter_npages(i, maxpages); in iov_iter_npages_cap() 398 size_t maxsize, unsigned int maxpages,
|
/linux-6.6.21/mm/ |
D | swapfile.c | 2827 unsigned long maxpages; in read_swap_header() local 2857 maxpages = swapfile_maximum_size; in read_swap_header() 2863 if (last_page > maxpages) { in read_swap_header() 2865 K(maxpages), K(last_page)); in read_swap_header() 2867 if (maxpages > last_page) { in read_swap_header() 2868 maxpages = last_page + 1; in read_swap_header() 2870 if ((unsigned int)maxpages == 0) in read_swap_header() 2871 maxpages = UINT_MAX; in read_swap_header() 2873 p->highest_bit = maxpages - 1; in read_swap_header() 2875 if (!maxpages) in read_swap_header() [all …]
|
/linux-6.6.21/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.6.21/include/rdma/ |
D | rw.h | 68 unsigned int maxpages);
|
/linux-6.6.21/fs/orangefs/ |
D | inode.c | 82 int maxpages; member 199 if (ow->npages == ow->maxpages) { in orangefs_writepages_callback() 216 ow->maxpages = orangefs_bufmap_size_query()/PAGE_SIZE; in orangefs_writepages() 217 ow->pages = kcalloc(ow->maxpages, sizeof(struct page *), GFP_KERNEL); in orangefs_writepages() 222 ow->bv = kcalloc(ow->maxpages, sizeof(struct bio_vec), GFP_KERNEL); in orangefs_writepages()
|
/linux-6.6.21/fs/erofs/ |
D | zdata.c | 174 unsigned int maxpages; member 178 #define _PCLP(n) { .maxpages = n } 287 size = struct_size(a, compressed_bvecs, pcs->maxpages); in z_erofs_create_pcluster_pool() 289 sprintf(pcs->name, "erofs_pcluster-%u", pcs->maxpages); in z_erofs_create_pcluster_pool() 309 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster() 329 if (pclusterpages > pcs->maxpages) in z_erofs_free_pcluster()
|
/linux-6.6.21/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.6.21/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.6.21/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()
|