Lines Matching refs:dma_list
229 static void genwqe_unmap_pages(struct genwqe_dev *cd, dma_addr_t *dma_list, in genwqe_unmap_pages() argument
235 for (i = 0; (i < num_pages) && (dma_list[i] != 0x0); i++) { in genwqe_unmap_pages()
236 dma_unmap_page(&pci_dev->dev, dma_list[i], PAGE_SIZE, in genwqe_unmap_pages()
238 dma_list[i] = 0x0; in genwqe_unmap_pages()
244 dma_addr_t *dma_list) in genwqe_map_pages() argument
253 dma_list[i] = 0x0; in genwqe_map_pages()
266 dma_list[i] = daddr; in genwqe_map_pages()
271 genwqe_unmap_pages(cd, dma_list, num_pages); in genwqe_map_pages()
375 dma_addr_t *dma_list) in genwqe_setup_sgl() argument
410 daddr = dma_list[p] + map_offs; in genwqe_setup_sgl()
578 m->dma_list = (dma_addr_t *)(m->page_list + m->nr_pages); in genwqe_user_vmap()
595 rc = genwqe_map_pages(cd, m->page_list, m->nr_pages, m->dma_list); in genwqe_user_vmap()
607 m->dma_list = NULL; in genwqe_user_vmap()
630 if (m->dma_list) in genwqe_user_vunmap()
631 genwqe_unmap_pages(cd, m->dma_list, m->nr_pages); in genwqe_user_vunmap()
638 m->dma_list = NULL; in genwqe_user_vunmap()