| /linux/fs/netfs/ |
| H A D | iterator.c | 43 unsigned int max_pages; in netfs_extract_user_iter() local 53 max_pages = iov_iter_npages(orig, INT_MAX); in netfs_extract_user_iter() 54 bv_size = array_size(max_pages, sizeof(*bv)); in netfs_extract_user_iter() 63 pg_size = array_size(max_pages, sizeof(*pages)); in netfs_extract_user_iter() 66 while (count && npages < max_pages) { in netfs_extract_user_iter() 68 max_pages - npages, extraction_flags, in netfs_extract_user_iter() 83 if (WARN(cur_npages > max_pages - npages, in netfs_extract_user_iter() 85 __func__, npages + cur_npages, max_pages)) { in netfs_extract_user_iter()
|
| /linux/fs/fuse/ |
| H A D | ioctl.c | 78 u32 max = fc->max_pages << PAGE_SHIFT; in fuse_verify_ioctl_iov() 231 unsigned int in_iovs = 0, out_iovs = 0, max_pages; in fuse_do_ioctl() local 254 ap.folios = fuse_folios_alloc(fm->fc->max_pages, GFP_KERNEL, &ap.descs); in fuse_do_ioctl() 259 fuse_folio_descs_length_init(ap.descs, 0, fm->fc->max_pages); in fuse_do_ioctl() 303 max_pages = DIV_ROUND_UP(max(in_size, out_size), PAGE_SIZE); in fuse_do_ioctl() 307 if (max_pages > fm->fc->max_pages) in fuse_do_ioctl() 309 while (ap.num_folios < max_pages) { in fuse_do_ioctl()
|
| H A D | file.c | 913 nr_pages = min(fc->max_pages, readahead_count(rac)); in fuse_handle_readahead() 1329 unsigned int max_pages) in fuse_wr_pages() argument 1334 return min(pages, max_pages); in fuse_wr_pages() 1355 fc->max_pages); in fuse_perform_write() 1550 unsigned int max_pages, in fuse_get_user_pages() argument 1589 struct page **pages = kzalloc(max_pages * sizeof(struct page *), in fuse_get_user_pages() 1596 while (nbytes < *nbytesp && nr_pages < max_pages) { in fuse_get_user_pages() 1602 max_pages - nr_pages, in fuse_get_user_pages() 1664 unsigned int max_pages; in fuse_direct_io() local 1667 max_pages = iov_iter_npages(iter, fc->max_pages); in fuse_direct_io() [all …]
|
| /linux/include/linux/ |
| H A D | swap_cgroup.h | 12 extern int swap_cgroup_swapon(int type, unsigned long max_pages); 35 swap_cgroup_swapon(int type, unsigned long max_pages) in swap_cgroup_swapon() argument
|
| /linux/arch/x86/xen/ |
| H A D | setup.c | 512 unsigned long max_pages, limit; in xen_get_max_pages() local 517 max_pages = limit; in xen_get_max_pages() 531 max_pages = ret; in xen_get_max_pages() 534 return min(max_pages, limit); in xen_get_max_pages() 801 unsigned long max_pages; in xen_memory_setup() local 881 max_pages = xen_get_max_pages(); in xen_memory_setup() 884 max_pages += xen_foreach_remap_area(xen_count_remap_pages); in xen_memory_setup() 886 if (max_pages > ini_nr_pages) in xen_memory_setup() 887 extra_pages += max_pages - ini_nr_pages; in xen_memory_setup() 897 extra_pages = min3(maxmem_pages, extra_pages, max_pages - ini_nr_pages); in xen_memory_setup()
|
| /linux/fs/nfs/ |
| H A D | pnfs_dev.c | 105 int max_pages; in nfs4_get_device_info() local 113 max_pages = nfs_page_array_len(0, max_resp_sz); in nfs4_get_device_info() 115 __func__, server, max_resp_sz, max_pages); in nfs4_get_device_info() 121 pages = kzalloc_objs(struct page *, max_pages, gfp_flags); in nfs4_get_device_info() 125 for (i = 0; i < max_pages; i++) { in nfs4_get_device_info()
|
| /linux/fs/iomap/ |
| H A D | swapfile.c | 31 unsigned long max_pages; in iomap_swapfile_add_extent() local 39 max_pages = isi->sis->max - isi->nr_pages; in iomap_swapfile_add_extent() 53 nr_pages = min(nr_pages, max_pages); in iomap_swapfile_add_extent()
|
| /linux/mm/ |
| H A D | swap_state.c | 622 int max_pages, in __swapin_nr_pages() argument 648 if (pages > max_pages) in __swapin_nr_pages() 649 pages = max_pages; in __swapin_nr_pages() 662 unsigned int hits, pages, max_pages; in swapin_nr_pages() local 665 max_pages = 1 << READ_ONCE(page_cluster); in swapin_nr_pages() 666 if (max_pages <= 1) in swapin_nr_pages() 671 max_pages, in swapin_nr_pages()
|
| H A D | memory_hotplug.c | 961 unsigned long online_pages = 0, max_pages, end_pfn; in auto_movable_zone_for_pfn() local 968 max_pages = group->s.max_pages; in auto_movable_zone_for_pfn() 975 max_pages = nr_pages; in auto_movable_zone_for_pfn() 977 max_pages = group->d.unit_pages; in auto_movable_zone_for_pfn() 1002 nr_pages = max_pages - online_pages; in auto_movable_zone_for_pfn()
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_free_list.c | 91 free_list->max_pages = args->max_num_pages; in free_list_create_kernel_structure() 179 fw_data->max_pages = free_list->max_pages; in free_list_fw_init() 188 ((fw_data->max_pages - fw_data->current_pages) * in free_list_fw_init() 279 start_page = free_list->max_pages - free_list->current_pages - in pvr_free_list_insert_node_locked()
|
| H A D | pvr_free_list.h | 76 u32 max_pages; member
|
| /linux/fs/squashfs/ |
| H A D | page_actor.c | 70 int max_pages = (actor->length + PAGE_SIZE - 1) >> PAGE_SHIFT; in handle_next_page() local 72 if (actor->returned_pages == max_pages) in handle_next_page()
|
| H A D | file.c | 587 unsigned int max_pages = 1UL << shift; in squashfs_readahead() local 591 pages = kmalloc_array(max_pages, sizeof(void *), GFP_KERNEL); in squashfs_readahead() 605 max_pages = (expected + PAGE_SIZE - 1) >> PAGE_SHIFT; in squashfs_readahead() 607 nr_pages = __readahead_batch(ractl, pages, max_pages); in squashfs_readahead()
|
| /linux/net/rds/ |
| H A D | ib_rdma.c | 180 iinfo->rdma_mr_size = pool_1m->max_pages; in rds_ib_get_mr_info() 190 iinfo6->rdma_mr_size = pool_1m->max_pages; in rds6_ib_get_mr_info() 664 pool->max_pages = RDS_MR_1M_MSG_SIZE + 1; in rds_ib_create_mr_pool() 668 pool->max_pages = RDS_MR_8K_MSG_SIZE + 1; in rds_ib_create_mr_pool() 672 pool->max_free_pinned = pool->max_items * pool->max_pages / 4; in rds_ib_create_mr_pool()
|
| H A D | ib_frmr.c | 79 pool->max_pages); in rds_ib_alloc_frmr() 247 if (frmr->dma_npages > ibmr->pool->max_pages) { in rds_ib_map_frmr()
|
| /linux/drivers/md/bcache/ |
| H A D | bcache.h | 780 unsigned int n, max_pages; in meta_bucket_pages() local 782 max_pages = min_t(unsigned int, in meta_bucket_pages() 787 if (n > max_pages) in meta_bucket_pages() 788 n = max_pages; in meta_bucket_pages()
|
| /linux/crypto/ |
| H A D | algif_hash.c | 70 size_t len, max_pages, npages; in hash_sendmsg() local 74 max_pages = min_t(size_t, ALG_MAX_PAGES, in hash_sendmsg() 111 npages = iov_iter_npages(&msg->msg_iter, max_pages); in hash_sendmsg()
|
| /linux/fs/ceph/ |
| H A D | addr.c | 174 unsigned long max_pages = inode->i_sb->s_bdi->ra_pages; in ceph_netfs_expand_readahead() local 183 max_pages = 0; in ceph_netfs_expand_readahead() 185 max_pages = priv->file_ra_pages; in ceph_netfs_expand_readahead() 190 if (!max_pages) in ceph_netfs_expand_readahead() 193 max_len = max_pages << PAGE_SHIFT; in ceph_netfs_expand_readahead() 606 unsigned int max_pages; member 1052 ceph_wbc->max_pages = 0; in ceph_init_writeback_ctl() 1144 ceph_wbc->locked_pages < ceph_wbc->max_pages; in can_next_page_be_processed() 1201 unsigned int max_pages) in __ceph_allocate_page_array() argument 1203 ceph_wbc->pages = kmalloc_objs(*ceph_wbc->pages, max_pages, GFP_NOFS); in __ceph_allocate_page_array() [all …]
|
| /linux/drivers/infiniband/hw/vmw_pvrdma/ |
| H A D | pvrdma_mr.c | 257 mr->max_pages = max_num_sg; in pvrdma_alloc_mr() 311 if (mr->npages == mr->max_pages) in pvrdma_set_page()
|
| /linux/drivers/base/ |
| H A D | memory.c | 1113 int memory_group_register_static(int nid, unsigned long max_pages) in memory_group_register_static() argument 1118 .max_pages = max_pages, in memory_group_register_static() 1122 if (!max_pages) in memory_group_register_static()
|
| /linux/io_uring/ |
| H A D | memmap.c | 287 unsigned max_pages) in io_region_mmap() argument 289 unsigned long nr_pages = min(mr->nr_pages, max_pages); in io_region_mmap()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | pagemap_ioctl.c | 45 int max_pages, long required_mask, long anyof_mask, long excluded_mask, in pagemap_ioctl() argument 56 arg.max_pages = max_pages; in pagemap_ioctl() 66 int max_pages, long required_mask, long anyof_mask, long excluded_mask, in pagemap_ioc() argument 78 arg.max_pages = max_pages; in pagemap_ioc() 354 /* 5. Repeated pattern of written and non-written pages max_pages */ in sanity_tests_sd() 372 "%s Repeated pattern of written and non-written pages max_pages\n", in sanity_tests_sd() 483 ksft_test_result(total_pages == mem_size/(page_size*2), "%s Smaller max_pages\n", __func__); in sanity_tests_sd() 1325 arg.max_pages in get_dirty_pages_reset() [all...] |
| /linux/drivers/infiniband/core/ |
| H A D | rw.c | 64 u32 max_pages; in rdma_rw_fr_page_list_len() local 67 max_pages = dev->attrs.max_pi_fast_reg_page_list_len; in rdma_rw_fr_page_list_len() 69 max_pages = dev->attrs.max_fast_reg_page_list_len; in rdma_rw_fr_page_list_len() 72 return min_t(u32, max_pages, 256); in rdma_rw_fr_page_list_len()
|
| /linux/tools/include/uapi/linux/ |
| H A D | fs.h | 408 __u64 max_pages; member
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_gem_gtt.c | 417 const unsigned long max_pages = in fill_hole() local 419 const unsigned long max_step = max(int_sqrt(max_pages), 2UL); in fill_hole() 432 for (npages = 1; npages <= max_pages; npages *= prime) { in fill_hole() 640 const unsigned long max_pages = in walk_hole() local 654 for_each_prime_number_from(size, 1, max_pages) { in walk_hole()
|