Lines Matching refs:page_list
240 struct page **page_list, int num_pages, in genwqe_map_pages() argument
251 daddr = pci_map_page(pci_dev, page_list[i], in genwqe_map_pages()
526 static int genwqe_free_user_pages(struct page **page_list, in genwqe_free_user_pages() argument
532 if (page_list[i] != NULL) { in genwqe_free_user_pages()
534 set_page_dirty_lock(page_list[i]); in genwqe_free_user_pages()
535 put_page(page_list[i]); in genwqe_free_user_pages()
587 m->page_list = kcalloc(m->nr_pages, in genwqe_user_vmap()
590 if (!m->page_list) { in genwqe_user_vmap()
597 m->dma_list = (dma_addr_t *)(m->page_list + m->nr_pages); in genwqe_user_vmap()
603 m->page_list); /* ptrs to pages */ in genwqe_user_vmap()
609 genwqe_free_user_pages(m->page_list, rc, m->write); in genwqe_user_vmap()
614 rc = genwqe_map_pages(cd, m->page_list, m->nr_pages, m->dma_list); in genwqe_user_vmap()
621 genwqe_free_user_pages(m->page_list, m->nr_pages, m->write); in genwqe_user_vmap()
624 kfree(m->page_list); in genwqe_user_vmap()
625 m->page_list = NULL; in genwqe_user_vmap()
652 if (m->page_list) { in genwqe_user_vunmap()
653 genwqe_free_user_pages(m->page_list, m->nr_pages, m->write); in genwqe_user_vunmap()
655 kfree(m->page_list); in genwqe_user_vunmap()
656 m->page_list = NULL; in genwqe_user_vunmap()