Lines Matching refs:qpl
787 struct gve_queue_page_list *qpl = &priv->qpls[id]; in gve_alloc_queue_page_list() local
799 qpl->id = id; in gve_alloc_queue_page_list()
800 qpl->num_entries = 0; in gve_alloc_queue_page_list()
801 qpl->pages = kvcalloc(pages, sizeof(*qpl->pages), GFP_KERNEL); in gve_alloc_queue_page_list()
803 if (!qpl->pages) in gve_alloc_queue_page_list()
805 qpl->page_buses = kvcalloc(pages, sizeof(*qpl->page_buses), GFP_KERNEL); in gve_alloc_queue_page_list()
807 if (!qpl->page_buses) in gve_alloc_queue_page_list()
811 err = gve_alloc_page(priv, &priv->pdev->dev, &qpl->pages[i], in gve_alloc_queue_page_list()
812 &qpl->page_buses[i], in gve_alloc_queue_page_list()
817 qpl->num_entries++; in gve_alloc_queue_page_list()
835 struct gve_queue_page_list *qpl = &priv->qpls[id]; in gve_free_queue_page_list() local
838 if (!qpl->pages) in gve_free_queue_page_list()
840 if (!qpl->page_buses) in gve_free_queue_page_list()
843 for (i = 0; i < qpl->num_entries; i++) in gve_free_queue_page_list()
844 gve_free_page(&priv->pdev->dev, qpl->pages[i], in gve_free_queue_page_list()
845 qpl->page_buses[i], gve_qpl_dma_dir(priv, id)); in gve_free_queue_page_list()
847 kvfree(qpl->page_buses); in gve_free_queue_page_list()
849 kvfree(qpl->pages); in gve_free_queue_page_list()
850 priv->num_registered_pages -= qpl->num_entries; in gve_free_queue_page_list()