/drivers/gpu/drm/ |
D | ati_pcigart.c | 62 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/ |
D | crystalhd_misc.c | 716 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()
|
D | crystalhd_misc.h | 82 uint32_t max_pages; member
|
/drivers/net/wireless/iwmc3200wifi/ |
D | tx.c | 95 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()
|
D | iwm.h | 106 int max_pages; /* max capacity in pages */ member 113 int max_pages; member
|
D | debugfs.c | 227 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/ |
D | fmr_pool.c | 87 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/ |
D | mr.c | 718 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/ |
D | r600_blit_kms.c | 648 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()
|
D | r600_cp.c | 153 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/ |
D | ipath_mr.c | 295 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/ |
D | qib_mr.c | 362 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/ |
D | ttm_page_alloc.c | 792 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()
|
D | ttm_page_alloc_dma.c | 1053 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/ |
D | mthca_mr.c | 574 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/ |
D | mr.c | 280 fmr_attr->max_pages, fmr_attr->max_maps, in mlx4_ib_fmr_alloc()
|
/drivers/scsi/be2iscsi/ |
D | be_cmds.c | 464 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/ |
D | omap24xxcam.c | 288 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/ |
D | ehca_mrmw.c | 799 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/ |
D | be_cmds.c | 459 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/ |
D | st.c | 4564 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()
|