/Linux-v5.4/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.4/sound/core/ |
D | sgbuf.c | 60 unsigned int i, pages, chunk, maxpages; in snd_malloc_sgbuf_pages() local 91 maxpages = MAX_ALLOC_PAGES; in snd_malloc_sgbuf_pages() 95 if (chunk > maxpages) in snd_malloc_sgbuf_pages() 96 chunk = maxpages; in snd_malloc_sgbuf_pages() 120 if (chunk < maxpages) in snd_malloc_sgbuf_pages() 121 maxpages = chunk; in snd_malloc_sgbuf_pages()
|
/Linux-v5.4/fs/ramfs/ |
D | file-nommu.c | 205 unsigned long maxpages, lpages, nr, loop, ret; in ramfs_nommu_get_unmapped_area() local 215 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_get_unmapped_area() 216 if (pgoff >= maxpages) in ramfs_nommu_get_unmapped_area() 219 if (maxpages - pgoff < lpages) in ramfs_nommu_get_unmapped_area()
|
/Linux-v5.4/mm/ |
D | swapfile.c | 2936 unsigned long maxpages; in read_swap_header() local 2966 maxpages = max_swapfile_size(); in read_swap_header() 2972 if (last_page > maxpages) { in read_swap_header() 2974 maxpages << (PAGE_SHIFT - 10), in read_swap_header() 2977 if (maxpages > last_page) { in read_swap_header() 2978 maxpages = last_page + 1; in read_swap_header() 2980 if ((unsigned int)maxpages == 0) in read_swap_header() 2981 maxpages = UINT_MAX; in read_swap_header() 2983 p->highest_bit = maxpages - 1; in read_swap_header() 2985 if (!maxpages) in read_swap_header() [all …]
|
/Linux-v5.4/lib/ |
D | iov_iter.c | 1254 struct page **pages, size_t maxsize, unsigned maxpages, in pipe_get_pages() argument 1270 capacity = min(npages,maxpages) * PAGE_SIZE - *start; in pipe_get_pages() 1276 struct page **pages, size_t maxsize, unsigned maxpages, in iov_iter_get_pages() argument 1283 return pipe_get_pages(i, pages, maxsize, maxpages, start); in iov_iter_get_pages() 1293 if (len > maxpages * PAGE_SIZE) in iov_iter_get_pages() 1294 len = maxpages * PAGE_SIZE; in iov_iter_get_pages() 1551 int iov_iter_npages(const struct iov_iter *i, int maxpages) in iov_iter_npages() argument 1572 if (npages >= maxpages) in iov_iter_npages() 1573 return maxpages; in iov_iter_npages() 1578 if (npages >= maxpages) in iov_iter_npages() [all …]
|
/Linux-v5.4/drivers/infiniband/hw/hfi1/ |
D | user_exp_rcv.c | 626 int maxpages = pagecount; in find_phys_blocks() local 630 maxpages = in find_phys_blocks() 634 maxpages = in find_phys_blocks() 639 list[setcount].count = maxpages; in find_phys_blocks() 640 pagecount -= maxpages; in find_phys_blocks() 641 pageidx += maxpages; in find_phys_blocks()
|
D | tid_rdma.c | 915 int maxpages = pagecount; in tid_rdma_find_phys_blocks_4k() local 919 maxpages = in tid_rdma_find_phys_blocks_4k() 923 maxpages = in tid_rdma_find_phys_blocks_4k() 928 list[setcount].count = maxpages; in tid_rdma_find_phys_blocks_4k() 932 pagecount -= maxpages; in tid_rdma_find_phys_blocks_4k() 933 pageidx += maxpages; in tid_rdma_find_phys_blocks_4k() 974 u32 maxpages = pages; in tid_flush_pages() local 976 if (maxpages > MAX_EXPECTED_PAGES) in tid_flush_pages() 977 maxpages = MAX_EXPECTED_PAGES; in tid_flush_pages() 978 else if (!is_power_of_2(maxpages)) in tid_flush_pages() [all …]
|
/Linux-v5.4/include/rdma/ |
D | rw.h | 68 unsigned int maxpages);
|
/Linux-v5.4/include/linux/ |
D | uio.h | 226 size_t maxsize, unsigned maxpages, size_t *start); 229 int iov_iter_npages(const struct iov_iter *i, int maxpages);
|
/Linux-v5.4/fs/orangefs/ |
D | inode.c | 88 int maxpages; member 210 if (ow->npages == ow->maxpages) { in orangefs_writepages_callback() 227 ow->maxpages = orangefs_bufmap_size_query()/PAGE_SIZE; in orangefs_writepages() 228 ow->pages = kcalloc(ow->maxpages, sizeof(struct page *), GFP_KERNEL); in orangefs_writepages() 233 ow->bv = kcalloc(ow->maxpages, sizeof(struct bio_vec), GFP_KERNEL); in orangefs_writepages()
|
/Linux-v5.4/net/core/ |
D | skmsg.c | 301 int i, maxpages, ret = 0, num_elems = sk_msg_elem_used(msg); in sk_msg_zerocopy_from_iter() local 309 maxpages = to_max_pages - num_elems; in sk_msg_zerocopy_from_iter() 310 if (maxpages == 0) { in sk_msg_zerocopy_from_iter() 315 copied = iov_iter_get_pages(from, pages, bytes, maxpages, in sk_msg_zerocopy_from_iter()
|
/Linux-v5.4/drivers/infiniband/core/ |
D | rw.c | 635 unsigned int maxpages) in rdma_rw_mr_factor() argument 643 return DIV_ROUND_UP(maxpages, mr_pages); in rdma_rw_mr_factor()
|
/Linux-v5.4/net/tls/ |
D | tls_sw.c | 1286 int rc = 0, i = 0, num_elem = *pages_used, maxpages; in tls_setup_from_iter() local 1294 maxpages = to_max_pages - num_elem; in tls_setup_from_iter() 1295 if (maxpages == 0) { in tls_setup_from_iter() 1301 maxpages, &offset); in tls_setup_from_iter()
|