/Linux-v5.15/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-v5.15/sound/core/ |
D | sgbuf.c | 69 unsigned int i, pages, chunk, maxpages; in snd_dma_sg_alloc() local 99 maxpages = MAX_ALLOC_PAGES; in snd_dma_sg_alloc() 103 if (chunk > maxpages) in snd_dma_sg_alloc() 104 chunk = maxpages; in snd_dma_sg_alloc() 126 if (chunk < maxpages) in snd_dma_sg_alloc() 127 maxpages = chunk; in snd_dma_sg_alloc()
|
/Linux-v5.15/fs/ramfs/ |
D | file-nommu.c | 206 unsigned long maxpages, lpages, nr, loop, ret; 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-v5.15/lib/ |
D | iov_iter.c | 1340 struct page **pages, size_t maxsize, unsigned maxpages, in pipe_get_pages() argument 1352 capacity = min(npages, maxpages) * PAGE_SIZE - *start; in pipe_get_pages() 1386 unsigned maxpages, size_t *_start_offset) in iter_xarray_get_pages() argument 1393 if (!size || !maxpages) in iter_xarray_get_pages() 1410 if (count > maxpages) in iter_xarray_get_pages() 1411 count = maxpages; in iter_xarray_get_pages() 1429 size_t maxsize, unsigned maxpages) in first_iovec_segment() argument 1443 if (len > maxpages * PAGE_SIZE) in first_iovec_segment() 1444 len = maxpages * PAGE_SIZE; in first_iovec_segment() 1454 size_t maxsize, unsigned maxpages) in first_bvec_segment() argument [all …]
|
/Linux-v5.15/mm/ |
D | swapfile.c | 2961 unsigned long maxpages; in read_swap_header() local 2991 maxpages = max_swapfile_size(); in read_swap_header() 2997 if (last_page > maxpages) { in read_swap_header() 2999 maxpages << (PAGE_SHIFT - 10), in read_swap_header() 3002 if (maxpages > last_page) { in read_swap_header() 3003 maxpages = last_page + 1; in read_swap_header() 3005 if ((unsigned int)maxpages == 0) in read_swap_header() 3006 maxpages = UINT_MAX; in read_swap_header() 3008 p->highest_bit = maxpages - 1; in read_swap_header() 3010 if (!maxpages) in read_swap_header() [all …]
|
/Linux-v5.15/drivers/infiniband/hw/hfi1/ |
D | user_exp_rcv.c | 556 int maxpages = pagecount; in find_phys_blocks() local 560 maxpages = in find_phys_blocks() 564 maxpages = in find_phys_blocks() 569 list[setcount].count = maxpages; in find_phys_blocks() 570 pagecount -= maxpages; in find_phys_blocks() 571 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-v5.15/include/rdma/ |
D | rw.h | 68 unsigned int maxpages);
|
/Linux-v5.15/include/linux/ |
D | uio.h | 245 size_t maxsize, unsigned maxpages, size_t *start); 248 int iov_iter_npages(const struct iov_iter *i, int maxpages);
|
/Linux-v5.15/fs/erofs/ |
D | zdata.c | 18 unsigned int maxpages; member 22 #define _PCLP(n) { .maxpages = n } 49 size = struct_size(a, compressed_pages, pcs->maxpages); in z_erofs_create_pcluster_pool() 51 sprintf(pcs->name, "erofs_pcluster-%u", pcs->maxpages); in z_erofs_create_pcluster_pool() 71 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster() 90 if (pcl->pclusterpages > pcs->maxpages) in z_erofs_free_pcluster()
|
/Linux-v5.15/fs/orangefs/ |
D | inode.c | 84 int maxpages; member 206 if (ow->npages == ow->maxpages) { in orangefs_writepages_callback() 223 ow->maxpages = orangefs_bufmap_size_query()/PAGE_SIZE; in orangefs_writepages() 224 ow->pages = kcalloc(ow->maxpages, sizeof(struct page *), GFP_KERNEL); in orangefs_writepages() 229 ow->bv = kcalloc(ow->maxpages, sizeof(struct bio_vec), GFP_KERNEL); in orangefs_writepages()
|
/Linux-v5.15/net/core/ |
D | skmsg.c | 304 int i, maxpages, ret = 0, num_elems = sk_msg_elem_used(msg); in sk_msg_zerocopy_from_iter() local 312 maxpages = to_max_pages - num_elems; in sk_msg_zerocopy_from_iter() 313 if (maxpages == 0) { in sk_msg_zerocopy_from_iter() 318 copied = iov_iter_get_pages(from, pages, bytes, maxpages, in sk_msg_zerocopy_from_iter()
|
/Linux-v5.15/drivers/infiniband/core/ |
D | rw.c | 652 unsigned int maxpages) in rdma_rw_mr_factor() argument 660 return DIV_ROUND_UP(maxpages, mr_pages); in rdma_rw_mr_factor()
|
/Linux-v5.15/net/tls/ |
D | tls_sw.c | 1349 int rc = 0, i = 0, num_elem = *pages_used, maxpages; in tls_setup_from_iter() local 1357 maxpages = to_max_pages - num_elem; in tls_setup_from_iter() 1358 if (maxpages == 0) { in tls_setup_from_iter() 1364 maxpages, &offset); in tls_setup_from_iter()
|