Lines Matching defs:pages
97 u64 cur_start_addr, u64 *pages,
127 pages[*npages] = cur_start_addr + (mtt_size * k);
135 *npages, pages);
185 u64 *pages;
196 pages = (u64 *) __get_free_page(GFP_KERNEL);
197 if (!pages)
217 pages, &start_index,
234 cur_start_addr, pages,
241 err = mlx4_write_mtt(dev->dev, mtt, start_index, npages, pages);
244 free_page((unsigned long) pages);
249 * Calculate optimal mtt size based on contiguous pages.
250 * Function will return also the number of pages that are not aligned to the
251 * calculated mtt_size to be added to total number of pages. For that we should
279 * current_block_start - block means contiguous pages.
376 * Force registering the memory as writable if the underlying pages
564 mr->pages = (__be64 *)get_zeroed_page(GFP_KERNEL);
565 if (!mr->pages)
568 mr->page_map = dma_map_single(device->dev.parent, mr->pages,
579 free_page((unsigned long)mr->pages);
586 if (mr->pages) {
591 free_page((unsigned long)mr->pages);
592 mr->pages = NULL;
695 mr->pages[mr->npages++] = cpu_to_be64(addr | MLX4_MTT_FLAG_PRESENT);