/drivers/gpu/drm/ |
H A D | ati_pcigart.c | 64 int max_pages; local 74 max_pages = (gart_info->table_size / sizeof(u32)); 75 pages = (entry->pages <= max_pages) 76 ? entry->pages : max_pages;
|
H A D | drm_prime.c | 700 * @max_pages: size of both the passed-in arrays 706 dma_addr_t *addrs, int max_pages) 722 if (WARN_ON(pg_index >= max_pages)) 705 drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, dma_addr_t *addrs, int max_pages) argument
|
/drivers/staging/lustre/lustre/llite/ |
H A D | rw26.c | 190 int *max_pages) 200 *max_pages = (user_addr + size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; 201 *max_pages -= user_addr >> PAGE_CACHE_SHIFT; 203 OBD_ALLOC_LARGE(*pages, *max_pages * sizeof(**pages)); 205 result = get_user_pages_fast(user_addr, *max_pages, 208 OBD_FREE_LARGE(*pages, *max_pages * sizeof(**pages)); 188 ll_get_user_pages(int rw, unsigned long user_addr, size_t size, struct page ***pages, int *max_pages) argument
|
H A D | dir.c | 155 int max_pages = ll_i2sbi(inode)->ll_md_brw_size >> PAGE_CACHE_SHIFT; local 164 LASSERT(max_pages > 0 && max_pages <= MD_MAX_BRW_PAGES); 166 page_pool = kzalloc(sizeof(page) * max_pages, GFP_NOFS); 171 max_pages = 1; 173 for (npages = 1; npages < max_pages; npages++) { 239 OBD_FREE(page_pool, sizeof(struct page *) * max_pages);
|
/drivers/infiniband/core/ |
H A D | fmr_pool.c | 87 int max_pages; member in struct:ib_fmr_pool 280 pool->max_pages = params->max_pages_per_fmr; 302 .max_pages = params->max_pages_per_fmr, 444 if (list_len < 1 || list_len > pool->max_pages)
|
/drivers/staging/lustre/lustre/osc/ |
H A D | osc_cache.c | 599 int max_pages; /* max_pages_per_rpc */ local 620 max_pages = cli->cl_max_pages_per_rpc; 621 LASSERT((max_pages & ~chunk_mask) == 0); 622 max_end = index - (index % max_pages) + max_pages - 1; 635 cur->oe_mppr = max_pages; 640 LASSERTF((max_end - cur->oe_start) < max_pages, EXTSTR, EXTPARA(cur)); 1771 int *pc, unsigned int *max_pages) 1778 *max_pages = max(ext->oe_mppr, *max_pages); 1769 try_to_add_extent_for_io(struct client_obd *cli, struct osc_extent *ext, struct list_head *rpclist, int *pc, unsigned int *max_pages) argument 1823 unsigned int max_pages = cli->cl_max_pages_per_rpc; local 1960 unsigned int max_pages = cli->cl_max_pages_per_rpc; local [all...] |
H A D | osc_io.c | 117 int max_pages; local 125 max_pages = cli->cl_max_pages_per_rpc; 173 if (++queued == max_pages) {
|
/drivers/infiniband/hw/qib/ |
H A D | qib_mr.c | 388 m = (fmr_attr->max_pages + QIB_SEGSZ - 1) / QIB_SEGSZ; 393 rval = init_qib_mregion(&fmr->mr, pd, fmr_attr->max_pages); 411 fmr->mr.max_segs = fmr_attr->max_pages;
|
/drivers/staging/lustre/lustre/libcfs/ |
H A D | tracefile.h | 65 int cfs_tracefile_init(int max_pages);
|
H A D | tracefile.c | 1130 int cfs_tracefile_init(int max_pages) argument 1151 tcd->tcd_max_pages = (max_pages * factor) / 100;
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_mr.c | 290 m = (fmr_attr->max_pages + IPATH_SEGSZ - 1) / IPATH_SEGSZ; 321 fmr->mr.max_segs = fmr_attr->max_pages;
|
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mr.c | 985 if (npages > fmr->max_pages) 1054 int mlx4_fmr_alloc(struct mlx4_dev *dev, u32 pd, u32 access, int max_pages, argument 1067 if (max_pages * sizeof *fmr->mtts > PAGE_SIZE) 1071 fmr->max_pages = max_pages; 1075 err = mlx4_mr_alloc(dev, pd, 0, 0, access, max_pages,
|
/drivers/gpu/drm/ttm/ |
H A D | ttm_page_alloc.c | 808 int ttm_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages) argument 828 _manager->options.max_size = max_pages;
|
H A D | ttm_page_alloc_dma.c | 1073 int ttm_dma_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages) argument 1088 _manager->options.max_size = max_pages;
|
/drivers/infiniband/hw/mthca/ |
H A D | mthca_mr.c | 574 int list_len = mr->attr.max_pages; 583 mr->attr.max_pages * sizeof *mr->mem.arbel.mtts > PAGE_SIZE) 694 if (list_len > fmr->attr.max_pages)
|
/drivers/staging/media/omap24xx/ |
H A D | omap24xxcam.c | 288 int max_pages, err = 0, i = 0; local 295 max_pages = vb->bsize >> PAGE_SHIFT; 296 dma->sglist = kcalloc(max_pages, sizeof(*dma->sglist), GFP_KERNEL);
|
/drivers/gpu/drm/radeon/ |
H A D | r600_cp.c | 154 int max_pages; local 162 max_pages = (gart_info->table_size / sizeof(u64)); 163 pages = (entry->pages <= max_pages) 164 ? entry->pages : max_pages;
|
/drivers/infiniband/hw/ehca/ |
H A D | ehca_mrmw.c | 799 if ((fmr_attr->max_pages == 0) || (fmr_attr->max_maps == 0)) { 800 ehca_err(pd->device, "bad input values: fmr_attr->max_pages=%x " 802 fmr_attr->max_pages, fmr_attr->max_maps, 831 fmr_attr->max_pages * (1 << fmr_attr->page_shift), 842 e_fmr->fmr_max_pages = fmr_attr->max_pages;
|
/drivers/infiniband/hw/mlx4/ |
H A D | mr.c | 445 fmr_attr->max_pages, fmr_attr->max_maps,
|
/drivers/scsi/be2iscsi/ |
H A D | be_cmds.c | 767 static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, argument 773 buf_pages = min(PAGES_4K_SPANNED(mem->va, mem->size), max_pages);
|
/drivers/scsi/ |
H A D | st.c | 4531 const unsigned int max_pages, unsigned long uaddr, 4546 if (nr_pages > max_pages) 4553 if ((pages = kmalloc(max_pages * sizeof(*pages), GFP_KERNEL)) == NULL) 4514 sgl_map_user_pages(struct st_buffer *STbp, const unsigned int max_pages, unsigned long uaddr, size_t count, int rw) argument
|
/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.c | 716 static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, argument 719 int i, buf_pages = min(PAGES_4K_SPANNED(mem->va, mem->size), max_pages);
|