Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/fs/ramfs/
Dfile-nommu.c208 unsigned long maxpages, lpages, nr, loop, ret; in ramfs_nommu_get_unmapped_area() local
221 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_get_unmapped_area()
222 if (pgoff >= maxpages) in ramfs_nommu_get_unmapped_area()
225 if (maxpages - pgoff < lpages) in ramfs_nommu_get_unmapped_area()
/linux-4.1.27/mm/
Dswapfile.c2173 unsigned long maxpages; in read_swap_header() local
2215 maxpages = swp_offset(pte_to_swp_entry( in read_swap_header()
2218 if (last_page > maxpages) { in read_swap_header()
2220 maxpages << (PAGE_SHIFT - 10), in read_swap_header()
2223 if (maxpages > last_page) { in read_swap_header()
2224 maxpages = last_page + 1; in read_swap_header()
2226 if ((unsigned int)maxpages == 0) in read_swap_header()
2227 maxpages = UINT_MAX; in read_swap_header()
2229 p->highest_bit = maxpages - 1; in read_swap_header()
2231 if (!maxpages) in read_swap_header()
[all …]
/linux-4.1.27/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.1.27/include/linux/
Duio.h97 size_t maxsize, unsigned maxpages, size_t *start);
100 int iov_iter_npages(const struct iov_iter *i, int maxpages);