Lines Matching refs:npages
98 int *start_index, int *npages) in mlx4_ib_umem_write_mtt_block() argument
127 pages[*npages] = cur_start_addr + (mtt_size * k); in mlx4_ib_umem_write_mtt_block()
128 (*npages)++; in mlx4_ib_umem_write_mtt_block()
133 if (*npages == PAGE_SIZE / sizeof(u64)) { in mlx4_ib_umem_write_mtt_block()
135 *npages, pages); in mlx4_ib_umem_write_mtt_block()
139 (*start_index) += *npages; in mlx4_ib_umem_write_mtt_block()
140 *npages = 0; in mlx4_ib_umem_write_mtt_block()
192 int npages = 0; in mlx4_ib_umem_write_mtt() local
218 &npages); in mlx4_ib_umem_write_mtt()
235 &start_index, &npages); in mlx4_ib_umem_write_mtt()
240 if (npages) in mlx4_ib_umem_write_mtt()
241 err = mlx4_write_mtt(dev->dev, mtt, start_index, npages, pages); in mlx4_ib_umem_write_mtt()
736 int npages, u64 iova) in mlx4_ib_map_phys_fmr() argument
741 return mlx4_map_phys_fmr(dev->dev, &ifmr->mfmr, page_list, npages, iova, in mlx4_ib_map_phys_fmr()
798 if (unlikely(mr->npages == mr->max_pages)) in mlx4_set_page()
801 mr->pages[mr->npages++] = cpu_to_be64(addr | MLX4_MTT_FLAG_PRESENT); in mlx4_set_page()
812 mr->npages = 0; in mlx4_ib_map_mr_sg()