/linux-master/kernel/module/ |
H A D | internal.h | 79 unsigned int max_pages; member in struct:load_info
|
H A D | decompress.c | 21 new_pages = kvmalloc_array(info->max_pages + extent, 26 memcpy(new_pages, info->pages, info->max_pages * sizeof(info->pages)); 29 info->max_pages += extent; 39 if (info->max_pages == info->used_pages) { 344 info->max_pages = info->used_pages = 0;
|
/linux-master/fs/nilfs2/ |
H A D | segbuf.c | 25 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);
|
/linux-master/drivers/md/ |
H A D | dm-writecache.c | 1835 unsigned int max_pages; local 1842 max_pages = e->wc_list_contiguous; 1844 bio = bio_alloc_bioset(wc->dev->bdev, max_pages, REQ_OP_WRITE, 1851 if (unlikely(max_pages > WB_LIST_INLINE)) 1852 wb->wc_list = kmalloc_array(max_pages, sizeof(struct wc_entry *), 1856 if (likely(max_pages <= WB_LIST_INLINE) || unlikely(!wb->wc_list)) { 1858 max_pages = WB_LIST_INLINE; 1866 while (wbl->size && wb->wc_list_n < max_pages) {
|
/linux-master/drivers/gpu/drm/i915/selftests/ |
H A D | intel_memory_region.c | 60 unsigned long max_pages; local 66 max_pages = div64_u64(total, page_size); 69 for_each_prime_number_from(page_num, 1, max_pages) {
|
H A D | i915_gem_gtt.c | 416 const unsigned long max_pages = local 418 const unsigned long max_step = max(int_sqrt(max_pages), 2UL); 431 for (npages = 1; npages <= max_pages; npages *= prime) { 638 const unsigned long max_pages = local 652 for_each_prime_number_from(size, 1, max_pages) {
|
/linux-master/include/uapi/linux/ |
H A D | fs.h | 375 * @max_pages: Optional limit for number of returned pages (0 = disabled) 389 __u64 max_pages; member in struct:pm_scan_arg
|
/linux-master/drivers/md/bcache/ |
H A D | bcache.h | 772 unsigned int n, max_pages; local 774 max_pages = min_t(unsigned int, 779 if (n > max_pages) 780 n = max_pages;
|
/linux-master/crypto/ |
H A D | algif_hash.c | 70 size_t len, max_pages, npages; local 74 max_pages = min_t(size_t, ALG_MAX_PAGES, 111 npages = iov_iter_npages(&msg->msg_iter, max_pages);
|
/linux-master/fs/netfs/ |
H A D | iterator.c | 43 unsigned int max_pages; local 53 max_pages = iov_iter_npages(orig, INT_MAX); 54 bv_size = array_size(max_pages, sizeof(*bv)); 63 pg_size = array_size(max_pages, sizeof(*pages)); 66 while (count && npages < max_pages) { 68 max_pages - npages, extraction_flags, 84 if (npages + cur_npages > max_pages) { 86 npages + cur_npages, max_pages);
|
/linux-master/drivers/gpu/drm/imagination/ |
H A D | pvr_rogue_fwif_check.h | 431 OFFSET_CHECK(struct rogue_fwif_freelist, max_pages, 20);
|
H A D | pvr_rogue_fwif.h | 2061 u32 max_pages; member in struct:rogue_fwif_freelist
|
H A D | pvr_free_list.h | 75 /** @max_pages: Maximum number of pages in free list. */ 76 u32 max_pages; member in struct:pvr_free_list
|
H A D | pvr_free_list.c | 91 free_list->max_pages = args->max_num_pages; 179 fw_data->max_pages = free_list->max_pages; 188 ((fw_data->max_pages - fw_data->current_pages) * 280 start_page = free_list->max_pages - free_list->current_pages -
|
/linux-master/fs/squashfs/ |
H A D | file.c | 549 unsigned int max_pages = 1UL << shift; local 553 pages = kmalloc_array(max_pages, sizeof(void *), GFP_KERNEL); 568 max_pages = (expected + PAGE_SIZE - 1) >> PAGE_SHIFT; 570 nr_pages = __readahead_batch(ractl, pages, max_pages);
|
H A D | page_actor.c | 65 int max_pages = (actor->length + PAGE_SIZE - 1) >> PAGE_SHIFT; local 67 if (actor->returned_pages == max_pages)
|
/linux-master/include/drm/ |
H A D | drm_prime.h | 109 int max_pages); 111 int max_pages);
|
/linux-master/drivers/iommu/iommufd/ |
H A D | pages.c | 315 static int __batch_init(struct pfn_batch *batch, size_t max_pages, void *backup, argument 319 size_t size = max_pages * elmsz; 332 static int batch_init(struct pfn_batch *batch, size_t max_pages) argument 334 return __batch_init(batch, max_pages, NULL, 0); 337 static void batch_init_backup(struct pfn_batch *batch, size_t max_pages, argument 340 __batch_init(batch, max_pages, backup, backup_len);
|
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | umr.c | 733 size_t max_pages = ib_umem_odp_num_pages(odp) - idx; local 735 pages_to_map = min_t(size_t, pages_to_map, max_pages);
|
/linux-master/drivers/infiniband/core/ |
H A D | rw.c | 63 u32 max_pages; local 66 max_pages = dev->attrs.max_pi_fast_reg_page_list_len; 68 max_pages = dev->attrs.max_fast_reg_page_list_len; 71 return min_t(u32, max_pages, 256);
|
/linux-master/fs/nfs/ |
H A D | pnfs_dev.c | 105 int max_pages; local 116 max_pages = nfs_page_array_len(0, max_resp_sz); 117 dprintk("%s: server %p max_resp_sz %u max_pages %d\n", 118 __func__, server, max_resp_sz, max_pages); 124 pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); 128 for (i = 0; i < max_pages; i++) {
|
/linux-master/drivers/infiniband/hw/mlx4/ |
H A D | mlx4_ib.h | 139 u32 max_pages; member in struct:mlx4_ib_mr
|
/linux-master/fs/fuse/ |
H A D | ioctl.c | 75 u32 max = fc->max_pages << PAGE_SHIFT; 181 unsigned int in_iovs = 0, out_iovs = 0, max_pages; local 204 ap.pages = fuse_pages_alloc(fm->fc->max_pages, GFP_KERNEL, &ap.descs); 209 fuse_page_descs_length_init(ap.descs, 0, fm->fc->max_pages); 241 max_pages = DIV_ROUND_UP(max(in_size, out_size), PAGE_SIZE); 245 if (max_pages > fm->fc->max_pages) 247 while (ap.num_pages < max_pages) {
|
/linux-master/drivers/scsi/be2iscsi/ |
H A D | be_cmds.c | 694 static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, argument 700 buf_pages = min(PAGES_4K_SPANNED(mem->va, mem->size), max_pages);
|
/linux-master/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.c | 820 static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, argument 823 int i, buf_pages = min(PAGES_4K_SPANNED(mem->va, mem->size), max_pages);
|