Searched refs:max_pages (Results 1 - 25 of 62) sorted by last modified time

123

/linux-master/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_svm.c1989 uint64_t max_pages; local
2006 max_pages = READ_ONCE(max_svm_range_pages);
2007 _pages = min_not_zero(max_pages, min_pages);
2008 } while (cmpxchg(&max_svm_range_pages, max_pages, _pages) != max_pages);
2013 uint64_t max_pages, struct list_head *insert_list,
2020 max_pages, start, last);
2023 l = min(last, ALIGN_DOWN(start + max_pages, max_pages) - 1);
2012 svm_range_split_new(struct svm_range_list *svms, uint64_t start, uint64_t last, uint64_t max_pages, struct list_head *insert_list, struct list_head *update_list) argument
/linux-master/fs/btrfs/
H A Dinode.c10639 unsigned long max_pages; local
10651 max_pages = sis->max - bsi->nr_pages;
10658 nr_pages = min(nr_pages, max_pages);
/linux-master/tools/include/uapi/linux/
H A Dfs.h375 * @max_pages: Optional limit for number of returned pages (0 = disabled)
389 __u64 max_pages; member in struct:pm_scan_arg
/linux-master/fs/fuse/
H A Dinode.c934 fc->max_pages = FUSE_DEFAULT_MAX_PAGES_PER_REQ;
1290 fc->max_pages =
1292 max_t(unsigned int, arg->max_pages, 1));
H A Dfile.c993 unsigned int i, max_pages, nr_pages = 0; local
998 max_pages = min_t(unsigned int, fc->max_pages,
1014 if (nr_pages > max_pages)
1015 nr_pages = max_pages;
1187 unsigned int max_pages)
1253 ap->num_pages < max_pages && offset == 0);
1259 unsigned int max_pages)
1264 max_pages);
1285 fc->max_pages);
1184 fuse_fill_write_pages(struct fuse_io_args *ia, struct address_space *mapping, struct iov_iter *ii, loff_t pos, unsigned int max_pages) argument
1258 fuse_wr_pages(loff_t pos, size_t len, unsigned int max_pages) argument
1472 fuse_get_user_pages(struct fuse_args_pages *ap, struct iov_iter *ii, size_t *nbytesp, int write, unsigned int max_pages) argument
1550 unsigned int max_pages; local
2119 unsigned int max_pages; member in struct:fuse_fill_wb_data
[all...]
H A Dfuse_i.h38 /** Maximum of max_pages received in init_out */
631 unsigned int max_pages; member in struct:fuse_conn
633 /** Constrain ->max_pages to this value during feature negotiation */
H A Ddev.c1688 num_pages = min(num_pages, fc->max_pages);
/linux-master/fs/ceph/
H A Daddr.c170 unsigned long max_pages = inode->i_sb->s_bdi->ra_pages; local
179 max_pages = 0;
181 max_pages = priv->file_ra_pages;
186 if (!max_pages)
189 max_len = max_pages << PAGE_SHIFT;
1018 unsigned i, nr_folios, max_pages, locked_pages = 0; local
1025 max_pages = wsize >> PAGE_SHIFT;
1033 for (i = 0; i < nr_folios && locked_pages < max_pages; i++) {
1119 max_pages = calc_pages_for(0, (u64)len);
1120 pages = kmalloc_array(max_pages,
[all...]
/linux-master/fs/smb/client/
H A Dfile.c2724 int max_pages,
2761 if (nr_pages > max_pages) {
2786 max_pages -= nr_pages;
2793 if (max_pages <= 0 || *_len >= max_len || *_count <= 0)
2899 int max_pages = INT_MAX; local
2903 max_pages = server->smbd_conn->max_frmr_depth;
2905 max_pages -= folio_nr_pages(folio);
2907 if (max_pages > 0)
2909 max_pages, max_len, &len);
2720 cifs_extend_writeback(struct address_space *mapping, struct xa_state *xas, long *_count, loff_t start, int max_pages, loff_t max_len, size_t *_len) argument
/linux-master/fs/cramfs/
H A Dinode.c350 unsigned int pages, max_pages, offset; local
369 max_pages = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT;
371 if (pgoff >= max_pages)
373 pages = min(vma_pages(vma), max_pages - pgoff);
385 if (pgoff + pages == max_pages && cramfs_last_page_is_shared(inode)) {
450 unsigned int pages, block_pages, max_pages, offset; local
453 max_pages = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT;
454 if (pgoff >= max_pages || pages > max_pages - pgoff)
/linux-master/drivers/scsi/
H A Dst.c4879 const unsigned int max_pages, unsigned long uaddr,
4894 if (nr_pages > max_pages)
4901 pages = kmalloc_array(max_pages, sizeof(*pages), GFP_KERNEL);
4863 sgl_map_user_pages(struct st_buffer *STbp, const unsigned int max_pages, unsigned long uaddr, size_t count, int rw) argument
/linux-master/fs/f2fs/
H A Ddata.c2963 unsigned int max_pages = F2FS_ONSTACK_PAGES; local
2978 max_pages = 1 << cc.log_cluster_size;
3027 if (++nr_pages == max_pages) {
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_mr.c188 int rxe_mr_init_fast(int max_pages, struct rxe_mr *mr) argument
195 err = rxe_mr_alloc(mr, max_pages);
H A Drxe_loc.h64 int rxe_mr_init_fast(int max_pages, struct rxe_mr *mr);
/linux-master/arch/x86/xen/
H A Dsetup.c513 unsigned long max_pages, limit; local
518 max_pages = limit;
532 max_pages = ret;
535 return min(max_pages, limit);
692 unsigned long max_pages; local
750 max_pages = xen_get_max_pages();
753 max_pages += xen_foreach_remap_area(max_pfn, xen_count_remap_pages);
755 if (max_pages > max_pfn)
756 extra_pages += max_pages - max_pfn;
762 * Make sure we have no memory above max_pages, a
[all...]
/linux-master/include/uapi/linux/
H A Dfuse.h161 * - add FUSE_MAX_PAGES, add max_pages to init_out
398 * FUSE_MAX_PAGES: init_out.max_pages contains the max number of req pages
892 uint16_t max_pages; member in struct:fuse_init_out
/linux-master/include/linux/
H A Dmemory.h34 * @s.max_pages: Valid with &memory_group.is_dynamic == false. The maximum
59 unsigned long max_pages; member in struct:memory_group::__anon689::__anon690
167 extern int memory_group_register_static(int nid, unsigned long max_pages);
/linux-master/fs/nfs/
H A Dpnfs.c1091 size_t max_pages = max_response_pages(server); local
1102 if (npages < max_pages)
1103 max_pages = npages;
1106 lgp->args.layout.pages = nfs4_alloc_pages(max_pages, gfp_flags);
1111 lgp->args.layout.pglen = max_pages * PAGE_SIZE;
1143 size_t max_pages = lgp->args.layout.pglen / PAGE_SIZE; local
1145 nfs4_free_pages(lgp->args.layout.pages, max_pages);
/linux-master/tools/testing/selftests/mm/
H A Dvm_util.c42 arg.max_pages = 0;
/linux-master/mm/
H A Dswap_state.c574 int max_pages,
600 if (pages > max_pages)
601 pages = max_pages;
614 unsigned int hits, pages, max_pages; local
617 max_pages = 1 << READ_ONCE(page_cluster);
618 if (max_pages <= 1)
623 max_pages,
571 __swapin_nr_pages(unsigned long prev_offset, unsigned long offset, int hits, int max_pages, int prev_win) argument
H A Dreadahead.c312 unsigned long max_pages, index; local
322 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages);
323 nr_to_read = min_t(unsigned long, nr_to_read, max_pages);
550 unsigned long max_pages = ra->ra_pages; local
560 if (req_size > max_pages && bdi->io_pages > max_pages)
561 max_pages = min(req_size, bdi->io_pages);
577 ra->size = get_next_ra_size(ra, max_pages);
593 max_pages);
596 if (!start || start - index > max_pages)
[all...]
H A Dmemory_hotplug.c968 unsigned long online_pages = 0, max_pages, end_pfn; local
975 max_pages = group->s.max_pages;
982 max_pages = nr_pages;
984 max_pages = group->d.unit_pages;
1009 nr_pages = max_pages - online_pages;
/linux-master/kernel/module/
H A Dinternal.h79 unsigned int max_pages; member in struct:load_info
/linux-master/fs/proc/
H A Dtask_mmu.c2078 total_pages > p->arg.max_pages) {
2079 size_t n_too_much = total_pages - p->arg.max_pages;
2370 if (!arg->max_pages)
2371 arg->max_pages = ULONG_MAX;
2487 if (p.arg.vec_len == 0 || p.found_pages == p.arg.max_pages)
/linux-master/fs/nilfs2/
H A Dsegbuf.c25 int max_pages; member in struct:nilfs_write_info
357 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks);
367 wi->max_pages = BIO_MAX_VECS;
368 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks);

Completed in 309 milliseconds

123