Lines Matching refs:pages
92 u64 *pages; in mlx4_ib_umem_write_mtt() local
99 pages = (u64 *) __get_free_page(GFP_KERNEL); in mlx4_ib_umem_write_mtt()
100 if (!pages) in mlx4_ib_umem_write_mtt()
108 pages[i++] = sg_dma_address(sg) + in mlx4_ib_umem_write_mtt()
116 i, pages); in mlx4_ib_umem_write_mtt()
126 err = mlx4_write_mtt(dev->dev, mtt, n, i, pages); in mlx4_ib_umem_write_mtt()
129 free_page((unsigned long) pages); in mlx4_ib_umem_write_mtt()
289 mr->pages = PTR_ALIGN(mr->pages_alloc, MLX4_MR_PAGES_ALIGN); in mlx4_alloc_priv_pages()
291 mr->page_map = dma_map_single(device->dma_device, mr->pages, in mlx4_alloc_priv_pages()
309 if (mr->pages) { in mlx4_free_priv_pages()
316 mr->pages = NULL; in mlx4_free_priv_pages()
546 mr->pages[mr->npages++] = cpu_to_be64(addr | MLX4_MTT_FLAG_PRESENT); in mlx4_set_page()