Lines Matching refs:dma_list
236 static void genwqe_unmap_pages(struct genwqe_dev *cd, dma_addr_t *dma_list, in genwqe_unmap_pages() argument
242 for (i = 0; (i < num_pages) && (dma_list[i] != 0x0); i++) { in genwqe_unmap_pages()
243 pci_unmap_page(pci_dev, dma_list[i], in genwqe_unmap_pages()
245 dma_list[i] = 0x0; in genwqe_unmap_pages()
251 dma_addr_t *dma_list) in genwqe_map_pages() argument
260 dma_list[i] = 0x0; in genwqe_map_pages()
273 dma_list[i] = daddr; in genwqe_map_pages()
278 genwqe_unmap_pages(cd, dma_list, num_pages); in genwqe_map_pages()
382 dma_addr_t *dma_list) in genwqe_setup_sgl() argument
417 daddr = dma_list[p] + map_offs; in genwqe_setup_sgl()
607 m->dma_list = (dma_addr_t *)(m->page_list + m->nr_pages); in genwqe_user_vmap()
624 rc = genwqe_map_pages(cd, m->page_list, m->nr_pages, m->dma_list); in genwqe_user_vmap()
636 m->dma_list = NULL; in genwqe_user_vmap()
659 if (m->dma_list) in genwqe_user_vunmap()
660 genwqe_unmap_pages(cd, m->dma_list, m->nr_pages); in genwqe_user_vunmap()
667 m->dma_list = NULL; in genwqe_user_vunmap()