Home
last modified time | relevance | path

Searched refs:max_pages (Results 1 – 21 of 21) sorted by relevance

/drivers/gpu/drm/
Dati_pcigart.c62 int max_pages; in drm_ati_pcigart_cleanup() local
72 max_pages = (gart_info->table_size / sizeof(u32)); in drm_ati_pcigart_cleanup()
73 pages = (entry->pages <= max_pages) in drm_ati_pcigart_cleanup()
74 ? entry->pages : max_pages; in drm_ati_pcigart_cleanup()
/drivers/staging/crystalhd/
Dcrystalhd_misc.c716 if (nr_pages > dio->max_pages) { in crystalhd_map_dio()
718 dio->max_pages, nr_pages); in crystalhd_map_dio()
862 int crystalhd_create_dio_pool(struct crystalhd_adp *adp, uint32_t max_pages) in crystalhd_create_dio_pool() argument
868 if (!adp || !max_pages) { in crystalhd_create_dio_pool()
882 asz = (sizeof(*dio->pages) * max_pages) + in crystalhd_create_dio_pool()
883 (sizeof(*dio->sg) * max_pages) + sizeof(*dio); in crystalhd_create_dio_pool()
886 BC_LINK_SG_POOL_SZ, max_pages, asz, adp->fill_byte_pool); in crystalhd_create_dio_pool()
898 temp += (sizeof(*dio->pages) * max_pages); in crystalhd_create_dio_pool()
900 dio->max_pages = max_pages; in crystalhd_create_dio_pool()
Dcrystalhd_misc.h82 uint32_t max_pages; member
/drivers/net/wireless/iwmc3200wifi/
Dtx.c95 spool_pages = spool->max_pages - spool->alloc_pages + in iwm_tx_credit_get()
98 return min(pool->max_pages - pool->alloc_pages, spool_pages); in iwm_tx_credit_get()
152 (pool->alloc_pages < pool->max_pages / 2)) { in iwm_tx_credit_inc()
270 iwm->tx_credit.pools[i].max_pages = GET_VAL32(page_grp_state, in iwm_tx_credit_init_pools()
278 if (iwm->tx_credit.spools[sid].max_pages == 0) { in iwm_tx_credit_init_pools()
280 iwm->tx_credit.spools[sid].max_pages = in iwm_tx_credit_init_pools()
294 iwm->tx_credit.pools[i].max_pages, in iwm_tx_credit_init_pools()
Diwm.h106 int max_pages; /* max capacity in pages */ member
113 int max_pages; member
Ddebugfs.c227 credit->pools[i].max_pages); in iwm_debugfs_tx_credit_read()
245 credit->spools[i].max_pages); in iwm_debugfs_tx_credit_read()
/drivers/infiniband/core/
Dfmr_pool.c87 int max_pages; member
281 pool->max_pages = params->max_pages_per_fmr; in ib_create_fmr_pool()
303 .max_pages = params->max_pages_per_fmr, in ib_create_fmr_pool()
445 if (list_len < 1 || list_len > pool->max_pages) in ib_fmr_pool_map_phys()
/drivers/net/ethernet/mellanox/mlx4/
Dmr.c718 if (npages > fmr->max_pages) in mlx4_check_fmr()
787 int mlx4_fmr_alloc(struct mlx4_dev *dev, u32 pd, u32 access, int max_pages, in mlx4_fmr_alloc() argument
801 if (max_pages * sizeof *fmr->mtts > PAGE_SIZE) in mlx4_fmr_alloc()
805 fmr->max_pages = max_pages; in mlx4_fmr_alloc()
809 err = mlx4_mr_alloc(dev, pd, 0, 0, access, max_pages, in mlx4_fmr_alloc()
/drivers/gpu/drm/radeon/
Dr600_blit_kms.c648 unsigned max_pages; in r600_blit_create_rect() local
669 max_pages = (max_dim * h) / (RECT_UNIT_W * RECT_UNIT_H); in r600_blit_create_rect()
670 if (pages > max_pages) in r600_blit_create_rect()
671 pages = max_pages; in r600_blit_create_rect()
Dr600_cp.c153 int max_pages; in r600_page_table_cleanup() local
161 max_pages = (gart_info->table_size / sizeof(u64)); in r600_page_table_cleanup()
162 pages = (entry->pages <= max_pages) in r600_page_table_cleanup()
163 ? entry->pages : max_pages; in r600_page_table_cleanup()
/drivers/infiniband/hw/ipath/
Dipath_mr.c295 m = (fmr_attr->max_pages + IPATH_SEGSZ - 1) / IPATH_SEGSZ; in ipath_alloc_fmr()
326 fmr->mr.max_segs = fmr_attr->max_pages; in ipath_alloc_fmr()
/drivers/infiniband/hw/qib/
Dqib_mr.c362 m = (fmr_attr->max_pages + QIB_SEGSZ - 1) / QIB_SEGSZ; in qib_alloc_fmr()
394 fmr->mr.max_segs = fmr_attr->max_pages; in qib_alloc_fmr()
/drivers/gpu/drm/ttm/
Dttm_page_alloc.c792 int ttm_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages) in ttm_page_alloc_init() argument
812 _manager->options.max_size = max_pages; in ttm_page_alloc_init()
Dttm_page_alloc_dma.c1053 int ttm_dma_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages) in ttm_dma_page_alloc_init() argument
1068 _manager->options.max_size = max_pages; in ttm_dma_page_alloc_init()
/drivers/infiniband/hw/mthca/
Dmthca_mr.c574 int list_len = mr->attr.max_pages; in mthca_fmr_alloc()
583 mr->attr.max_pages * sizeof *mr->mem.arbel.mtts > PAGE_SIZE) in mthca_fmr_alloc()
694 if (list_len > fmr->attr.max_pages) in mthca_check_fmr()
/drivers/infiniband/hw/mlx4/
Dmr.c280 fmr_attr->max_pages, fmr_attr->max_maps, in mlx4_ib_fmr_alloc()
/drivers/scsi/be2iscsi/
Dbe_cmds.c464 static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, in be_cmd_page_addrs_prepare() argument
470 buf_pages = min(PAGES_4K_SPANNED(mem->va, mem->size), max_pages); in be_cmd_page_addrs_prepare()
/drivers/media/video/
Domap24xxcam.c288 int max_pages, err = 0, i = 0; in omap24xxcam_vbq_alloc_mmap_buffer() local
295 max_pages = vb->bsize >> PAGE_SHIFT; in omap24xxcam_vbq_alloc_mmap_buffer()
296 dma->sglist = kcalloc(max_pages, sizeof(*dma->sglist), GFP_KERNEL); in omap24xxcam_vbq_alloc_mmap_buffer()
/drivers/infiniband/hw/ehca/
Dehca_mrmw.c799 if ((fmr_attr->max_pages == 0) || (fmr_attr->max_maps == 0)) { in ehca_alloc_fmr()
802 fmr_attr->max_pages, fmr_attr->max_maps, in ehca_alloc_fmr()
831 fmr_attr->max_pages * (1 << fmr_attr->page_shift), in ehca_alloc_fmr()
842 e_fmr->fmr_max_pages = fmr_attr->max_pages; in ehca_alloc_fmr()
/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c459 static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, in be_cmd_page_addrs_prepare() argument
462 int i, buf_pages = min(PAGES_4K_SPANNED(mem->va, mem->size), max_pages); in be_cmd_page_addrs_prepare()
/drivers/scsi/
Dst.c4564 const unsigned int max_pages, unsigned long uaddr, in sgl_map_user_pages() argument
4579 if (nr_pages > max_pages) in sgl_map_user_pages()
4586 if ((pages = kmalloc(max_pages * sizeof(*pages), GFP_KERNEL)) == NULL) in sgl_map_user_pages()