Home
last modified time | relevance | path

Searched refs:maxpages (Results 1 – 6 of 6) sorted by relevance

/linux-4.4.14/sound/core/
Dsgbuf.c71 unsigned int i, pages, chunk, maxpages; in snd_malloc_sgbuf_pages() local
94 maxpages = MAX_ALLOC_PAGES; in snd_malloc_sgbuf_pages()
98 if (chunk > maxpages) in snd_malloc_sgbuf_pages()
99 chunk = maxpages; in snd_malloc_sgbuf_pages()
123 if (chunk < maxpages) in snd_malloc_sgbuf_pages()
124 maxpages = chunk; in snd_malloc_sgbuf_pages()
/linux-4.4.14/fs/romfs/
Dmmap-nommu.c30 unsigned long isize, offset, maxpages, lpages; in romfs_get_unmapped_area() local
41 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in romfs_get_unmapped_area()
42 if ((pgoff >= maxpages) || (maxpages - pgoff < lpages)) in romfs_get_unmapped_area()
/linux-4.4.14/fs/ramfs/
Dfile-nommu.c209 unsigned long maxpages, lpages, nr, loop, ret; in ramfs_nommu_get_unmapped_area() local
222 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_get_unmapped_area()
223 if (pgoff >= maxpages) in ramfs_nommu_get_unmapped_area()
226 if (maxpages - pgoff < lpages) in ramfs_nommu_get_unmapped_area()
/linux-4.4.14/mm/
Dswapfile.c2214 unsigned long maxpages; in read_swap_header() local
2256 maxpages = swp_offset(pte_to_swp_entry( in read_swap_header()
2259 if (last_page > maxpages) { in read_swap_header()
2261 maxpages << (PAGE_SHIFT - 10), in read_swap_header()
2264 if (maxpages > last_page) { in read_swap_header()
2265 maxpages = last_page + 1; in read_swap_header()
2267 if ((unsigned int)maxpages == 0) in read_swap_header()
2268 maxpages = UINT_MAX; in read_swap_header()
2270 p->highest_bit = maxpages - 1; in read_swap_header()
2272 if (!maxpages) in read_swap_header()
[all …]
/linux-4.4.14/lib/
Diov_iter.c573 struct page **pages, size_t maxsize, unsigned maxpages, in iov_iter_get_pages() argument
588 if (len > maxpages * PAGE_SIZE) in iov_iter_get_pages()
589 len = maxpages * PAGE_SIZE; in iov_iter_get_pages()
751 int iov_iter_npages(const struct iov_iter *i, int maxpages) in iov_iter_npages() argument
763 if (npages >= maxpages) in iov_iter_npages()
764 return maxpages; in iov_iter_npages()
767 if (npages >= maxpages) in iov_iter_npages()
768 return maxpages; in iov_iter_npages()
773 if (npages >= maxpages) in iov_iter_npages()
774 return maxpages; in iov_iter_npages()
/linux-4.4.14/include/linux/
Duio.h97 size_t maxsize, unsigned maxpages, size_t *start);
100 int iov_iter_npages(const struct iov_iter *i, int maxpages);